Rakefile in sappy-0.1.5 vs Rakefile in sappy-0.1.6
- old
+ new
@@ -9,16 +9,17 @@
gemspec.email = ["dylanegan@gmail.com", "tim@spork.in"]
gemspec.homepage = "http://github.com/abcde/sappy"
gemspec.authors = ["Dylan Egan", "Tim Carey-Smith"]
# reject people's local copies of credentials
project_files = Dir.glob("{lib,spec}/**/*").reject { |file| file =~ %r!spec/credentials.rb! }
+
gemspec.files = %w(README.markdown Rakefile VERSION) + project_files
gemspec.rubyforge_project = 'abcde'
- manifest = Bundler::Environment.load(File.dirname(__FILE__) + '/Gemfile')
- manifest.dependencies.each do |d|
- next unless d.only && d.only.include?('release')
- gemspec.add_dependency(d.name, d.version)
- end
+
+ bundle = Bundler::Definition.from_gemfile("Gemfile")
+ bundle.dependencies.
+ select { |d| d.groups.include?(:runtime) }.
+ each { |d| gemspec.add_dependency(d.name, d.version_requirements.to_s) }
end
Jeweler::RubyforgeTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install jeweler"