Skip to content

Commit 6a55a6b

Browse files
committed
Adjust removal of rails from example app Gemfile
Rails went with double quotes: ```ruby gem "rails", "~> 7.0.0.alpha2" ``` and this was causing Bundler to complain: ``` [!] There was an error parsing `Gemfile`: [!] There was an error parsing `Gemfile-rails-dependencies`: You cannot specify the same gem twice with different version requirements. You specified: rails (~> 7.0.0.alpha2) and rails (>= 0). Bundler cannot continue. # from /Users/pirj/source/rspec-dev/repos/rspec-rails/Gemfile-rails-dependencies:5 # ------------------------------------------- # when /master/ > gem "rails", :git => "https://github.com/rails/rails.git" # gem "activerecord-deprecated_finders", :git => "https://github.com/rails/activerecord-deprecated_finders.git" # ------------------------------------------- . Bundler cannot continue. # from /Users/pirj/source/rspec-dev/repos/rspec-rails/tmp/example_app/Gemfile:63 # ------------------------------------------- # eval_gemfile '/Users/pirj/source/rspec-dev/repos/rspec-rails/Gemfile-rspec-dependencies' > eval_gemfile '/Users/pirj/source/rspec-dev/repos/rspec-rails/Gemfile-rails-dependencies' # ------------------------------------------- ```
1 parent a1061e6 commit 6a55a6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example_app_generator/generate_app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# Remove the existing rails version so we can properly use main or other
2020
# edge branches
21-
gsub_file 'Gemfile', /^.*\bgem 'rails.*$/, ''
21+
gsub_file 'Gemfile', /^.*\bgem ['"]rails.*$/, ''
2222
gsub_file "Gemfile", /.*web-console.*/, ''
2323
gsub_file "Gemfile", /.*debugger.*/, ''
2424
gsub_file "Gemfile", /.*puma.*/, ''

0 commit comments

Comments
 (0)