Rakefile in dionysus-0.3.1 vs Rakefile in dionysus-0.3.2
- old
+ new
@@ -1,23 +1,26 @@
require 'rubygems'
+require 'bundler'
+begin
+ Bundler.setup(:default, :development)
+rescue Bundler::BundlerError => e
+ $stderr.puts e.message
+ $stderr.puts "Run `bundle install` to install missing gems"
+ exit e.status_code
+end
require 'rake'
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "dionysus"
- gem.summary = %Q{A helpful set of utility classes, generators, and command-line tools.}
- gem.email = "warlickt@operissystems.com"
- gem.homepage = "http://github.com/tekwiz/dionysus"
- gem.authors = ["Travis D. Warlick, Jr."]
- gem.add_dependency 'activesupport', '~> 3.0.0'
- gem.add_development_dependency "rspec", ">= 1.2.9"
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
+require 'jeweler'
+Jeweler::Tasks.new do |gem|
+ gem.name = "dionysus"
+ gem.summary = %Q{A helpful set of utility classes, generators, and command-line tools.}
+ gem.email = "warlickt@operissystems.com"
+ gem.homepage = "http://github.com/tekwiz/dionysus"
+ gem.authors = ["Travis D. Warlick, Jr."]
+ gem.add_bundler_dependencies(:default, :development)
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
+Jeweler::GemcutterTasks.new
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_files = FileList['spec/**/*_spec.rb']