Rakefile in assassin-0.4.2 vs Rakefile in assassin-1.4.2
- old
+ new
@@ -2,11 +2,11 @@
This.author = "Ara T. Howard"
This.email = "ara.t.howard@gmail.com"
This.homepage = "https://github.com/ahoward/#{ This.lib }"
task :license do
- open('LICENSE', 'w'){|fd| fd.puts "same as ruby's"}
+ open('LICENSE', 'w'){|fd| fd.puts "Ruby"}
end
task :default do
puts((Rake::Task.tasks.map{|task| task.name.gsub(/::/,':')} - ['default']).sort)
end
@@ -91,11 +91,11 @@
executables = shiteless[Dir::glob("bin/*")].map{|exe| File.basename(exe)}
#has_rdoc = true #File.exist?('doc')
test_files = "test/#{ lib }.rb" if File.file?("test/#{ lib }.rb")
summary = object.respond_to?(:summary) ? object.summary : "summary: #{ lib } kicks the ass"
description = object.respond_to?(:description) ? object.description : "description: #{ lib } kicks the ass"
- license = object.respond_to?(:license) ? object.license : "same as ruby's"
+ license = object.respond_to?(:license) ? object.license : "Ruby"
if This.extensions.nil?
This.extensions = []
extensions = This.extensions
%w( Makefile configure extconf.rb ).each do |ext|
@@ -295,10 +295,10 @@
abort('no lib') unless This.lib
abort('no version') unless This.version
# discover full path to this ruby executable
#
- c = Config::CONFIG
+ c = RbConfig::CONFIG
bindir = c["bindir"] || c['BINDIR']
ruby_install_name = c['ruby_install_name'] || c['RUBY_INSTALL_NAME'] || 'ruby'
ruby_ext = c['EXEEXT'] || ''
ruby = File.join(bindir, (ruby_install_name + ruby_ext))
This.ruby = ruby