diff --git a/.gitignore b/.gitignore index 95fbdb9..ea0dbff 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,6 @@ pkg .rvmrc ## PROJECT::SPECIFIC -Gemfile.lock \ No newline at end of file +Gemfile.lock +*.gem +gemfiles/*.lock diff --git a/Rakefile b/Rakefile index a9353ba..c32ff2d 100644 --- a/Rakefile +++ b/Rakefile @@ -1,6 +1,6 @@ require 'rubygems' require 'rake' -require 'bundler' +require 'bundler/setup' require 'rspec/core/rake_task' desc "Run RSpec" @@ -8,4 +8,4 @@ RSpec::Core::RakeTask.new do |t| t.verbose = false end -task :default => :spec +task :default => :spec \ No newline at end of file diff --git a/gemfiles/Gemfile.rails-3.2.x b/gemfiles/Gemfile.rails-3.2.x index 379cc19..efd4cc4 100644 --- a/gemfiles/Gemfile.rails-3.2.x +++ b/gemfiles/Gemfile.rails-3.2.x @@ -4,5 +4,8 @@ gem 'coveralls', :require => false gem 'simplecov', :require => false gem 'rails', '~> 3.2.22' +if RUBY_VERSION < "2.2.0" + gem 'rack', '<= 1.6.0' +end gemspec :path => '..' \ No newline at end of file diff --git a/gemfiles/Gemfile.rails-4.0.x b/gemfiles/Gemfile.rails-4.0.x index 3b38b15..205e291 100644 --- a/gemfiles/Gemfile.rails-4.0.x +++ b/gemfiles/Gemfile.rails-4.0.x @@ -4,5 +4,8 @@ gem 'coveralls', :require => false gem 'simplecov', :require => false gem 'rails', '~> 4.0.0' +if RUBY_VERSION < "2.2.0" + gem 'rack', '1.6.0' +end gemspec :path => '..' \ No newline at end of file diff --git a/gemfiles/Gemfile.rails-4.1.x b/gemfiles/Gemfile.rails-4.1.x index 844c853..6a321e8 100644 --- a/gemfiles/Gemfile.rails-4.1.x +++ b/gemfiles/Gemfile.rails-4.1.x @@ -4,5 +4,8 @@ gem 'coveralls', :require => false gem 'simplecov', :require => false gem 'rails', '~> 4.1.0' +if RUBY_VERSION < "2.2.0" + gem 'rack', '1.6.0' +end gemspec :path => '..' \ No newline at end of file diff --git a/gemfiles/Gemfile.rails-4.2.x b/gemfiles/Gemfile.rails-4.2.x index 8041530..26f0339 100644 --- a/gemfiles/Gemfile.rails-4.2.x +++ b/gemfiles/Gemfile.rails-4.2.x @@ -4,5 +4,8 @@ gem 'coveralls', :require => false gem 'simplecov', :require => false gem 'rails', '~> 4.2.0' +if RUBY_VERSION < "2.2.0" + gem 'rack', '1.6.0' +end gemspec :path => '..' \ No newline at end of file