1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00
thoughtbot--shoulda-matchers/Appraisals

86 lines
1.8 KiB
Text
Raw Normal View History

ruby_version = Gem::Version.new(RUBY_VERSION + '')
rails_3 = proc do
gem 'strong_parameters'
end
rails_3_1 = proc do
instance_eval(&rails_3)
gem 'rails', '~> 3.1.8'
gem 'bcrypt-ruby', '~> 3.0.0'
2013-12-01 17:57:03 -05:00
gem 'jquery-rails'
gem 'sass-rails', '~> 3.1.5'
gem 'coffee-rails', '~> 3.1.1'
gem 'uglifier', '>= 1.0.3'
end
rails_4 = proc do
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 1.2'
gem 'sdoc'
2013-12-01 17:57:03 -05:00
gem 'activeresource', '4.0.0'
# Test suite makes heavy use of attr_accessible
gem 'protected_attributes'
end
#---
if Gem::Requirement.new('< 2').satisfied_by?(ruby_version)
appraise '3.0' do
instance_eval(&rails_3)
gem 'rails', '~> 3.0.17'
end
if Gem::Requirement.new('= 1.9.2').satisfied_by?(ruby_version)
appraise '3.1-1.9.2' do
instance_eval(&rails_3_1)
gem 'turn', '0.8.2'
end
else
appraise '3.1' do
instance_eval(&rails_3_1)
gem 'turn', '~> 0.8.3'
end
end
end
2012-03-09 10:53:23 -05:00
appraise '3.2' do
instance_eval(&rails_3)
gem 'rails', '~> 3.2.13'
2013-08-18 13:17:19 -04:00
gem 'bcrypt-ruby', '~> 3.0.0'
2012-03-09 10:53:23 -05:00
gem 'jquery-rails'
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
if Gem::Requirement.new('> 1.9.2').satisfied_by?(ruby_version)
appraise '4.0.0' do
instance_eval(&rails_4)
gem 'rails', '4.0.0'
gem 'sass-rails', '~> 4.0.0'
gem 'bcrypt-ruby', '~> 3.0.0'
end
appraise '4.0.1' do
instance_eval(&rails_4)
gem 'rails', '4.0.1'
gem 'sass-rails', '~> 4.0.0'
gem 'bcrypt-ruby', '~> 3.1.2'
end
2013-12-31 14:54:21 -05:00
appraise '4.1' do
instance_eval(&rails_4)
gem 'rails', '~> 4.1.0'
gem 'jbuilder', '~> 2.0'
gem 'sass-rails', '~> 4.0.3'
gem 'sdoc', '~> 0.4.0'
gem 'bcrypt', '~> 3.1.7'
gem 'protected_attributes', "~> 1.0.6"
gem 'spring'
end
2013-12-31 14:54:21 -05:00
end