summaryrefslogtreecommitdiffstats
path: root/ext/mkrf_conf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mkrf_conf.rb')
-rw-r--r--ext/mkrf_conf.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/mkrf_conf.rb b/ext/mkrf_conf.rb
new file mode 100644
index 00000000..8e7bf466
--- /dev/null
+++ b/ext/mkrf_conf.rb
@@ -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