Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moved dependency management totally into Gemfile.

  • Loading branch information...
commit 6dbd4e22ab60023f841becb05e063d50186190d5 1 parent e73d62d
@baldowl authored
Showing with 21 additions and 13 deletions.
  1. +10 −6 Gemfile
  2. +11 −7 Rakefile
View
16 Gemfile
@@ -1,8 +1,12 @@
source 'http://rubygems.org'
-gem 'rack'
-gem 'rack-test'
-gem 'rspec'
-gem 'cucumber'
-gem 'rdoc'
-gem 'jeweler'
+gem 'rack', '>= 0.9'
+
+group :development do
+ gem 'bundler', '>= 1.0.0'
+ gem 'cucumber', '>= 1.1.1'
+ gem 'rack-test'
+ gem 'rspec', '>= 2.0.0'
+ gem 'rdoc', '>= 2.4.2'
+ gem 'jeweler'
+end
View
18 Rakefile
@@ -1,3 +1,13 @@
+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/clean'
require 'cucumber/rake/task'
require 'rspec/core/rake_task'
@@ -5,11 +15,9 @@ require 'rdoc/task'
require 'jeweler'
Cucumber::Rake::Task.new :features
-task :features => :check_dependencies
task :default => :features
RSpec::Core::RakeTask.new :spec
-task :spec => :check_dependencies
task :default => :spec
version = File.exists?('VERSION') ? File.read('VERSION').strip : ''
@@ -31,11 +39,7 @@ Jeweler::Tasks.new do |gem|
gem.email = 'emanuele.vicentini@gmail.com'
gem.homepage = 'https://github.com/baldowl/rack_csrf'
gem.rubyforge_project = 'rackcsrf'
- gem.add_dependency 'rack', '>= 0.9'
- gem.add_development_dependency 'cucumber', '>= 1.1.1'
- gem.add_development_dependency 'rack-test'
- gem.add_development_dependency 'rspec', '>= 2.0.0'
- gem.add_development_dependency 'rdoc', '>= 2.4.2'
+ # dependencies defined in Gemfile
gem.rdoc_options << '--line-numbers' << '--inline-source' << '--title' <<
"Rack::Csrf #{version}" << '--main' << 'README.rdoc'
gem.test_files.clear
Please sign in to comment.
Something went wrong with that request. Please try again.