mirror of
https://github.com/activerecord-hackery/ransack.git
synced 2022-11-09 13:47:45 -05:00
Merge pull request #1072 from deivid-rodriguez/fix_dev_env_over_a_rails_repo_clone
Fix running tests against a Rails clone
This commit is contained in:
commit
f04fa76daa
1 changed files with 12 additions and 1 deletions
13
Gemfile
13
Gemfile
|
@ -5,8 +5,17 @@ gem 'rake'
|
||||||
|
|
||||||
rails = ENV['RAILS'] || '6-0-stable'
|
rails = ENV['RAILS'] || '6-0-stable'
|
||||||
|
|
||||||
|
rails_version = case rails
|
||||||
|
when /\// # A path
|
||||||
|
File.read(File.join(rails, "RAILS_VERSION"))
|
||||||
|
when /^v/ # A tagged version
|
||||||
|
rails.gsub(/^v/, '')
|
||||||
|
else
|
||||||
|
rails
|
||||||
|
end
|
||||||
|
|
||||||
gem 'faker', '~> 0.9.5'
|
gem 'faker', '~> 0.9.5'
|
||||||
gem 'sqlite3', ::Gem::Version.new(rails.gsub(/^v/, '')) >= ::Gem::Version.new('6-0-stable') ? '~> 1.4.1' : '~> 1.3.3'
|
gem 'sqlite3', ::Gem::Version.new(rails_version) >= ::Gem::Version.new('6-0-stable') ? '~> 1.4.1' : '~> 1.3.3'
|
||||||
gem 'pg', '~> 1.0'
|
gem 'pg', '~> 1.0'
|
||||||
gem 'pry', '0.10'
|
gem 'pry', '0.10'
|
||||||
gem 'byebug'
|
gem 'byebug'
|
||||||
|
@ -14,8 +23,10 @@ gem 'byebug'
|
||||||
case rails
|
case rails
|
||||||
when /\// # A path
|
when /\// # A path
|
||||||
gem 'activesupport', path: "#{rails}/activesupport"
|
gem 'activesupport', path: "#{rails}/activesupport"
|
||||||
|
gem 'activemodel', path: "#{rails}/activemodel"
|
||||||
gem 'activerecord', path: "#{rails}/activerecord", require: false
|
gem 'activerecord', path: "#{rails}/activerecord", require: false
|
||||||
gem 'actionpack', path: "#{rails}/actionpack"
|
gem 'actionpack', path: "#{rails}/actionpack"
|
||||||
|
gem 'actionview', path: "#{rails}/actionview"
|
||||||
when /^v/ # A tagged version
|
when /^v/ # A tagged version
|
||||||
git 'https://github.com/rails/rails.git', :tag => rails do
|
git 'https://github.com/rails/rails.git', :tag => rails do
|
||||||
gem 'activesupport'
|
gem 'activesupport'
|
||||||
|
|
Loading…
Reference in a new issue