Rakefile in sinatra_warden-0.1.5 vs Rakefile in sinatra_warden-0.1.5.1

- old
+ new

@@ -1,7 +1,5 @@ -require File.join(File.expand_path(File.dirname(__FILE__)), 'vendor', 'gems', 'environment') -Bundler.require_env require 'rake' require 'bundler' begin require 'jeweler' @@ -11,16 +9,14 @@ gem.description = %Q{basic helpers and authentication methods for using warden with sinatra also providing some hooks into Rack::Flash} gem.email = "justin.smestad@gmail.com" gem.homepage = "http://github.com/jsmestad/sinatra_warden" gem.authors = ["Justin Smestad", "Daniel Neighman"] - manifest = Bundler::Environment.load(File.dirname(__FILE__) + '/Gemfile') - manifest.dependencies.each do |d| - next if d.only - gem.add_dependency(d.name, d.version) + bundle = Bundler::Definition.from_gemfile('Gemfile') + bundle.dependencies.each do |dep| + next unless dep.groups.include?(:runtime) + gem.add_dependency(dep.name, dep.version_requirements.to_s) end - - gem.executables = nil end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" end