Fix gemspec

Reference:
16ead977fa
This commit is contained in:
Junegunn Choi 2014-03-14 18:25:55 +09:00
parent 2c8a256b13
commit 1ba50eba98
2 changed files with 10 additions and 1 deletions

9
ext/mkrf_conf.rb Normal file
View File

@ -0,0 +1,9 @@
require 'rubygems/dependency_installer'
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.1.0')
Gem::DependencyInstaller.new.install 'curses', '~> 1.0'
end
File.open(File.expand_path('../Rakefile', __FILE__), 'w') do |f|
f.puts 'task :default'
end

View File

@ -13,5 +13,5 @@ Gem::Specification.new do |spec|
spec.files = %w[fzf.gemspec]
spec.executables = 'fzf'
spec.add_runtime_dependency 'curses', '~> 1.0.0'
spec.extensions += ['ext/mkrf_conf.rb']
end