Rakefile in sekrets-1.9.1 vs Rakefile in sekrets-1.10.0

- old
+ new

@@ -88,10 +88,11 @@ executables = shiteless[Dir::glob("bin/*")].map{|exe| File.basename(exe)} #has_rdoc = true #File.exist?('doc') test_files = test(?e, "test/#{ lib }.rb") ? "test/#{ lib }.rb" : nil 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 : "BSD-2-Clause" if This.extensions.nil? This.extensions = [] extensions = This.extensions %w( Makefile configure extconf.rb ).each do |ext| @@ -116,38 +117,42 @@ if test(?e, 'gemspec.erb') Template{ IO.read('gemspec.erb') } else Template { <<-__ - ## <%= lib %>.gemspec + # DO NOT EDIT - This file is automatically generated + # Make changes to Rakefile and regenerate with `rake gemspec` + ## #{ lib }.gemspec # Gem::Specification::new do |spec| - spec.name = <%= lib.inspect %> - spec.version = <%= version.inspect %> + spec.name = #{ lib.inspect } + spec.version = #{ version.inspect } spec.platform = Gem::Platform::RUBY - spec.summary = <%= lib.inspect %> - spec.description = <%= description.inspect %> - spec.license = "Same as Ruby's" + spec.summary = #{ summary.inspect } + spec.description = #{ description.inspect } + spec.license = #{ license.inspect } - spec.files =\n<%= files.sort.pretty_inspect %> - spec.executables = <%= executables.inspect %> - + spec.files =\n#{ files.sort.pretty_inspect } + spec.executables = #{ executables.inspect } + spec.require_path = "lib" - spec.test_files = <%= test_files.inspect %> + spec.test_files = #{ test_files.inspect } <% dependencies.each do |lib_version| %> spec.add_dependency(*<%= Array(lib_version).flatten.inspect %>) <% end %> - spec.extensions.push(*<%= extensions.inspect %>) + spec.extensions.push(*#{ extensions.inspect }) - spec.rubyforge_project = <%= This.rubyforge_project.inspect %> - spec.author = <%= This.author.inspect %> - spec.email = <%= This.email.inspect %> - spec.homepage = <%= This.homepage.inspect %> + spec.rubyforge_project = #{ This.rubyforge_project.inspect } + spec.author = #{ This.author.inspect } + spec.email = #{ This.email.inspect } + spec.homepage = #{ This.homepage.inspect } + + spec.required_ruby_version = '>= 1.9' end __ } end @@ -292,10 +297,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