diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-06-04 22:11:43 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-06-04 22:11:43 -0300 |
commit | abe199b3899f9326a57ba77f93aaf9bf5eabfc49 (patch) | |
tree | cea601536325a9b51ef669a6455473568f9f82c3 | |
parent | aefe1ef0e409ad23b4a970a8577b86fc9767716c (diff) | |
parent | ebd806cf4bcfabae7cabfa23bb64916e607dd41c (diff) | |
download | rails-abe199b3899f9326a57ba77f93aaf9bf5eabfc49.tar.gz rails-abe199b3899f9326a57ba77f93aaf9bf5eabfc49.tar.bz2 rails-abe199b3899f9326a57ba77f93aaf9bf5eabfc49.zip |
Merge pull request #20429 from repinel/improve-bug-report-template
[ci skip] Use inline Gemfile dependency when reporting bugs
-rw-r--r-- | guides/bug_report_templates/action_controller_master.rb | 17 | ||||
-rw-r--r-- | guides/bug_report_templates/active_record_master.rb | 19 | ||||
-rw-r--r-- | guides/bug_report_templates/generic_master.rb | 15 |
3 files changed, 18 insertions, 33 deletions
diff --git a/guides/bug_report_templates/action_controller_master.rb b/guides/bug_report_templates/action_controller_master.rb index 9be8130884..1a5cb4dd4e 100644 --- a/guides/bug_report_templates/action_controller_master.rb +++ b/guides/bug_report_templates/action_controller_master.rb @@ -1,15 +1,10 @@ -unless File.exist?('Gemfile') - File.write('Gemfile', <<-GEMFILE) - source 'https://rubygems.org' - gem 'rails', github: 'rails/rails' - gem 'arel', github: 'rails/arel' - GEMFILE - - system 'bundle' -end +require 'bundler/inline' -require 'bundler' -Bundler.setup(:default) +gemfile(true) do + source 'https://rubygems.org' + gem 'rails', github: 'rails/rails' + gem 'arel', github: 'rails/arel' +end require 'rails' require 'action_controller/railtie' diff --git a/guides/bug_report_templates/active_record_master.rb b/guides/bug_report_templates/active_record_master.rb index 9557f0b7c5..c69b041ba8 100644 --- a/guides/bug_report_templates/active_record_master.rb +++ b/guides/bug_report_templates/active_record_master.rb @@ -1,16 +1,11 @@ -unless File.exist?('Gemfile') - File.write('Gemfile', <<-GEMFILE) - source 'https://rubygems.org' - gem 'rails', github: 'rails/rails' - gem 'arel', github: 'rails/arel' - gem 'sqlite3' - GEMFILE - - system 'bundle' -end +require 'bundler/inline' -require 'bundler' -Bundler.setup(:default) +gemfile(true) do + source 'https://rubygems.org' + gem 'rails', github: 'rails/rails' + gem 'arel', github: 'rails/arel' + gem 'sqlite3' +end require 'active_record' require 'minitest/autorun' diff --git a/guides/bug_report_templates/generic_master.rb b/guides/bug_report_templates/generic_master.rb index d930482d4e..4ed34e15a2 100644 --- a/guides/bug_report_templates/generic_master.rb +++ b/guides/bug_report_templates/generic_master.rb @@ -1,16 +1,11 @@ -unless File.exist?('Gemfile') - File.write('Gemfile', <<-GEMFILE) - source 'https://rubygems.org' - gem 'rails', github: 'rails/rails' - gem 'arel', github: 'rails/arel' - GEMFILE +require 'bundler/inline' - system 'bundle' +gemfile(true) do + source 'https://rubygems.org' + gem 'rails', github: 'rails/rails' + gem 'arel', github: 'rails/arel' end -require 'bundler' -Bundler.setup(:default) - require 'active_support' require 'active_support/core_ext/object/blank' require 'minitest/autorun' |