tasks/gem.rake in uuidtools-2.1.5 vs tasks/gem.rake in uuidtools-2.2.0
- old
+ new
@@ -8,10 +8,11 @@
GEM_SPEC = Gem::Specification.new do |s|
s.name = PKG_NAME
s.version = PKG_VERSION
s.summary = PKG_SUMMARY
s.description = PKG_DESCRIPTION
+ s.licenses = ["Apache-2.0"]
s.files = PKG_FILES.to_a
s.extra_rdoc_files = %w( README.md )
s.rdoc_options.concat ["--main", "README.md"]
@@ -41,17 +42,11 @@
desc "Generates .gemspec file"
task :gemspec do
spec_string = GEM_SPEC.to_ruby
- begin
- Thread.new { eval("$SAFE = 3\n#{spec_string}", binding) }.join
- rescue
- abort "unsafe gemspec: #{$!}"
- else
- File.open("#{GEM_SPEC.name}.gemspec", 'w') do |file|
- file.write spec_string
- end
+ File.open("#{GEM_SPEC.name}.gemspec", "w") do |file|
+ file.write spec_string
end
end
desc "Show information about the gem"
task :debug do