summaryrefslogtreecommitdiff
path: root/doc/contributing
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2017-08-03 12:25:55 +0000
committerThe Bundler Bot <bot@bundler.io>2017-08-03 12:25:55 +0000
commit536e2e927f39ed0688b942f1e2f6cba10fb2104a (patch)
treeddab861fb64d3cf8100bbf2390a78489ce69e717 /doc/contributing
parentc4ae85f01edca72d48c617be07440c2cd600ab4f (diff)
parentfb57f7ddae528edaae561485fa554b9330f00ad5 (diff)
downloadbundler-536e2e927f39ed0688b942f1e2f6cba10fb2104a.tar.gz
Auto merge of #5919 - koic:fix_template_of_gemsrb, r=colby-swandale
Fix the tempalte of gems.rb ### What was the end-user problem that led to this PR? Building from source using `rake bundler_2:install`. (#5901) ```console % bundle version 2.0.0.dev (2017-08-02 commit f184adfc1)% cd /tmp % bundle init Writing new gems.rb to /private/tmp/gems.rb % cat gems.rb # frozen_string_literal: true # A sample gems.rb source "https://rubygems.org" git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } # gems "rails" ``` Editing the comment out of `# gems "rails"` and executing it resulted in an error. ```console % bundle install [!] There was an error parsing `gems.rb`: Undefined local variable or method `gems' for Gemfile. Bundler cannot continue. # from /private/tmp/gems.rb:8 # ------------------------------------------- # > gems "rails" # ------------------------------------------- ``` ### What was your diagnosis of the problem? [Like the Gemfile](https://github.com/bundler/bundler/blob/c4ae85f01edca72d48c617be07440c2cd600ab4f/lib/bundler/templates/Gemfile#L7), use `gem` method. ### What is your fix for the problem, implemented in this PR? Use `gem` method instead of `gems` method.
Diffstat (limited to 'doc/contributing')
0 files changed, 0 insertions, 0 deletions