diff options
author | akihiro17 <coolwizard11@gmail.com> | 2015-06-06 22:32:28 +0900 |
---|---|---|
committer | akihiro17 <coolwizard11@gmail.com> | 2015-06-06 23:09:46 +0900 |
commit | b07483490fe84b3be9f9681df3439adf7311f831 (patch) | |
tree | d9e339e55b49d6558347ab4a2236510d08e071f3 /guides/bug_report_templates/active_record_gem.rb | |
parent | 10d0c43c7937f65b2fc6fb87a87b1023bbd85674 (diff) | |
download | rails-b07483490fe84b3be9f9681df3439adf7311f831.tar.gz rails-b07483490fe84b3be9f9681df3439adf7311f831.tar.bz2 rails-b07483490fe84b3be9f9681df3439adf7311f831.zip |
Output an error message and raise an error if bundler 1.10.x is not installed when reporting bugs
Diffstat (limited to 'guides/bug_report_templates/active_record_gem.rb')
-rw-r--r-- | guides/bug_report_templates/active_record_gem.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/guides/bug_report_templates/active_record_gem.rb b/guides/bug_report_templates/active_record_gem.rb index 5b27f76244..09d6e7b331 100644 --- a/guides/bug_report_templates/active_record_gem.rb +++ b/guides/bug_report_templates/active_record_gem.rb @@ -1,4 +1,9 @@ -require 'bundler/inline' +begin + require 'bundler/inline' +rescue LoadError => e + $stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' + raise e +end gemfile(true) do source 'https://rubygems.org' |