summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Make sure we run the correct ronn with a binstubcommit_docs_to_source_controlDavid Rodríguez2019-08-102-1/+13
|
* Use a newer debugging gem in docsDavid Rodríguez2019-08-103-3/+3
| | | | So that the examples work in currently supported rubies.
* Remove unexistent file from exemptionsDavid Rodríguez2019-08-101-1/+1
|
* Remove unexistent folder from exemptionsDavid Rodríguez2019-08-101-1/+1
|
* Commit man pages to source controlDavid Rodríguez2019-08-1058-29/+6385
| | | | | | | | | | | | | | This has the benefit that: * Allows the installation of bundler as a default gem from rubygems to include man pages. * Removes the need to build man pages during our tests. * Makes working with the manifest easier, because we only have source controlled files, and not a mix of source control and generated files. To make sure they never fall out of sync, we replace the previous `man:build` CI task with a `man:check` task that makes sure the generated man pages are up to date.
* Remove unexistent folder from gitignoreDavid Rodríguez2019-08-101-1/+0
|
* Remove misleading comment in GemfileDavid Rodríguez2019-08-101-4/+1
| | | | | Since we no longer use `git` to find out the list of files, the comment is misleading.
* Remove unnecessary taskDavid Rodríguez2019-08-103-6/+1
| | | | The build task does not generate any files at `lib/bundler/generated`.
* Merge #7287Bundlerbot2019-08-101-1/+1
|\ | | | | | | | | | | | | | | | | 7287: Fix typo in comment: attibutes -> attributes r=hsbt a=ohbarye Let me skip answering questions in the pull request template since it's obviously just fixing a typo! Co-authored-by: Masato Ohba <masato.ohba@quipper.com>
| * Fix typo in comment: attibutes -> attributesMasato Ohba2019-08-101-1/+1
|/
* Merge #7286Bundlerbot2019-08-098-10/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7286: Fix documents to refer to URLs with https r=deivid-rodriguez a=giraffate ### What was the end-user problem that led to this PR? End-users experience 301 redirect, or unintentionally visit URL with http and may send email. ### What was your diagnosis of the problem? I noticed the problem when I was reading codes. Following are some examples using curl to explain this problem. ``` curl -I http://slack.bundler.io/ HTTP/1.1 200 OK Server: Cowboy Connection: keep-alive X-Powered-By: Express Content-Type: text/html; charset=utf-8 Content-Length: 3726 Etag: W/"3Shz0DQR5y/DyBrYbyUBAQ==" Date: Fri, 09 Aug 2019 14:16:23 GMT Via: 1.1 vegur ``` ``` curl -I http://contributor-covenant.org HTTP/1.1 301 Moved Permanently Cache-Control: public, max-age=0, must-revalidate Content-Length: 49 Content-Type: text/plain Date: Sun, 04 Aug 2019 09:47:02 GMT Location: https://contributor-covenant.org/ Age: 448201 Connection: keep-alive Server: Netlify X-NF-Request-ID: 3de60b71-391e-4a6e-8cd4-74a12f217c80-14980829 ``` ### What is your fix for the problem, implemented in this PR? My fix is to replace http URLs with https URLs. ### Why did you choose this fix out of the possible options? It's because this fix is simple and easy. Co-authored-by: Takayuki Nakata <f.seasons017@gmail.com>
| * Fix documents to refer to URLs with httpsTakayuki Nakata2019-08-098-10/+10
|/
* Merge #7285Bundlerbot2019-08-081-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7285: Bump rspec dependency to 3.8 r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that tests fail using rspec 3.7 or older. ### What was your diagnosis of the problem? My diagnosis was that we're using `config.bisect_runner` which is only available from 3.8. ### What is your fix for the problem, implemented in this PR? My fix is to bump the requirement. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * Bump rspec dependency to 3.8bump_rspec_dev_dependencyDavid Rodríguez2019-08-081-1/+1
|/ | | | | Because we're using `config.bisect_runner` which is only available from 3.8.
* Merge #7283Bundlerbot2019-08-083-12/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7283: Fix spec working by chance r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that this particular spec is like a nightmare that keeps on failing whenever we make changes to bundler, and we keep adding workarounds to it. ### What was your diagnosis of the problem? My diagnosis was that I should investigate closer what's going on with this spec, and fix it in a better way. ### What is your fix for the problem, implemented in this PR? My fix is to fix several issues with the spec, and to essentially revert it back to the way it looked before https://github.com/bundler/bundler/commit/e63e844bc7444c6a489fcde0dc7011c6c4807edd. See each commit for more details. ### Why did you choose this fix out of the possible options? I chose this fix because it should make it less painful to keep CI green as we make changes to bundler. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * Revert "make system_bundle_bin_path helper and resolve failing tests for ↵fix_spec_working_by_chanceDavid Rodríguez2019-08-073-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | ruby < 2.6" This reverts commit e63e844bc7444c6a489fcde0dc7011c6c4807edd. It was introduced to resolve some failing tests at the cost of making the intention of the spec much less clear. Thanks to the previous fixes we have added to this spec, we can revert that patch now.
| * Make sure spec fails if `bundle install` failsDavid Rodríguez2019-08-071-1/+1
| |
| * Fix installation of system bundlerDavid Rodríguez2019-08-071-3/+2
| | | | | | | | | | | | | | | | Previously it was being installed to the :bundle_path (`/tmp/bundled_app/.bundle`), but the `bundle` helper uses the `system_gem_path("bin/bundle")`. That means the first `bundle install`in the spec was actually failing, but not affecting the test status because of not being called as `bundle!`.
| * Use non deprecated way of setting bundler pathDavid Rodríguez2019-08-071-1/+2
| |
| * Clarify spec descriptionDavid Rodríguez2019-08-071-2/+2
|/
* Merge #7280Bundlerbot2019-08-071-7/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7280: Improve load path order spec r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was for a while I've had a spec failing locally and that's annoying. ### What was your diagnosis of the problem? My diagnosis was that if you install a development version of bundler in your system (through `bin/rake install:local`), this spec starts failing with: ``` $ bin/rspec -e "orders the load pa" Run options: include {:full_description=>/orders\ the\ load\ pa/} Randomized with seed 55764 Bundler.setup load order $ /home/deivid/.rbenv/versions/2.6.3/bin/ruby \ -I/home/deivid/Code/bundler/lib:/home/deivid/Code/bundler/spec -rsupport/hax \ -r/home/deivid/Code/bundler/spec/support/artifice/fail /home/deivid/Code/bundler/exe/bundle \ install --retry 0 Fetching source index from file:///home/deivid/Code/bundler/tmp/gems/remote1/ Resolving dependencies... Fetching rake 12.3.2 Installing rake 12.3.2 Fetching activesupport 2.3.2 Installing activesupport 2.3.2 Fetching actionmailer 2.3.2 Installing actionmailer 2.3.2 Fetching actionpack 2.3.2 Installing actionpack 2.3.2 Fetching activerecord 2.3.2 Installing activerecord 2.3.2 Fetching activeresource 2.3.2 Installing activeresource 2.3.2 Using bundler 2.1.0.pre.1 Fetching rails 2.3.2 Installing rails 2.3.2 Bundle complete! 1 Gemfile dependency, 8 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. # $? => 0 $ /home/deivid/.rbenv/versions/2.6.3/bin/ruby -I/home/deivid/Code/bundler/lib -e \ <<EOS require 'rubygems' require 'bundler' Bundler.setup puts $LOAD_PATH EOS /home/deivid/Code/bundler/lib /home/deivid/.rbenv/rbenv.d/exec/gem-rehash /home/deivid/Code/bundler/tmp/gems/system/gems/rails-2.3.2/lib /home/deivid/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.1.0.pre.1/lib /home/deivid/Code/bundler/tmp/gems/system/gems/activeresource-2.3.2/lib /home/deivid/Code/bundler/tmp/gems/system/gems/activerecord-2.3.2/lib /home/deivid/Code/bundler/tmp/gems/system/gems/actionpack-2.3.2/lib /home/deivid/Code/bundler/tmp/gems/system/gems/actionmailer-2.3.2/lib /home/deivid/Code/bundler/tmp/gems/system/gems/activesupport-2.3.2/lib /home/deivid/Code/bundler/tmp/gems/system/gems/rake-12.3.2/lib /home/deivid/.rbenv/versions/2.6.3/lib/ruby/site_ruby/2.6.0 /home/deivid/.rbenv/versions/2.6.3/lib/ruby/site_ruby/2.6.0/x86_64-linux /home/deivid/.rbenv/versions/2.6.3/lib/ruby/site_ruby /home/deivid/.rbenv/versions/2.6.3/lib/ruby/vendor_ruby/2.6.0 /home/deivid/.rbenv/versions/2.6.3/lib/ruby/vendor_ruby/2.6.0/x86_64-linux /home/deivid/.rbenv/versions/2.6.3/lib/ruby/vendor_ruby /home/deivid/.rbenv/versions/2.6.3/lib/ruby/2.6.0 /home/deivid/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux # $? => 0 $ /home/deivid/.rbenv/versions/2.6.3/bin/ruby -I/home/deivid/Code/bundler/lib -e puts\ \$LOAD_PATH /home/deivid/Code/bundler/lib /home/deivid/.rbenv/rbenv.d/exec/gem-rehash /home/deivid/.rbenv/versions/2.6.3/lib/ruby/site_ruby/2.6.0 /home/deivid/.rbenv/versions/2.6.3/lib/ruby/site_ruby/2.6.0/x86_64-linux /home/deivid/.rbenv/versions/2.6.3/lib/ruby/site_ruby /home/deivid/.rbenv/versions/2.6.3/lib/ruby/vendor_ruby/2.6.0 /home/deivid/.rbenv/versions/2.6.3/lib/ruby/vendor_ruby/2.6.0/x86_64-linux /home/deivid/.rbenv/versions/2.6.3/lib/ruby/vendor_ruby /home/deivid/.rbenv/versions/2.6.3/lib/ruby/2.6.0 /home/deivid/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux # $? => 0 orders the load path correctly when there are dependencies (FAILED - 1) Retried examples: 0 Failures: 1) Bundler.setup load order orders the load path correctly when there are dependencies Failure/Error: expect(load_path).to start_with( "/gems/rails-2.3.2/lib", "/gems/activeresource-2.3.2/lib", "/gems/activerecord-2.3.2/lib", "/gems/actionpack-2.3.2/lib", "/gems/actionmailer-2.3.2/lib", "/gems/activesupport-2.3.2/lib", "/gems/rake-12.3.2/lib" ) expected ["/gems/rails-2.3.2/lib", "/home/deivid/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.1.0.....3.2/lib", "/gems/actionmailer-2.3.2/lib", "/gems/activesupport-2.3.2/lib", "/gems/rake-12.3.2/lib"] to start with "/gems/rails-2.3.2/lib", "/gems/activeresource-2.3.2/lib", "/gems/activerecord-2.3.2/lib", "/gems/actionpack-2.3.2/lib", "/gems/actionmailer-2.3.2/lib", "/gems/activesupport-2.3.2/lib", and "/gems/rake-12.3.2/lib" Commands: $ /home/deivid/.rbenv/versions/2.6.3/bin/ruby \ -I/home/deivid/Code/bundler/lib:/home/deivid/Code/bundler/spec -rsupport/hax \ -r/home/deivid/Code/bundler/spec/support/artifice/fail /home/deivid/Code/bundler/exe/bundle \ install --retry 0 Fetching source index from file:///home/deivid/Code/bundler/tmp/gems/remote1/ Resolving dependencies... Fetching rake 12.3.2 Installing rake 12.3.2 Fetching activesupport 2.3.2 Installing activesupport 2.3.2 Fetching actionmailer 2.3.2 Installing actionmailer 2.3.2 Fetching actionpack 2.3.2 Installing actionpack 2.3.2 Fetching activerecord 2.3.2 Installing activerecord 2.3.2 Fetching activeresource 2.3.2 Installing activeresource 2.3.2 Using bundler 2.1.0.pre.1 Fetching rails 2.3.2 Installing rails 2.3.2 Bundle complete! 1 Gemfile dependency, 8 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. # $? => 0 $ /home/deivid/.rbenv/versions/2.6.3/bin/ruby -I/home/deivid/Code/bundler/lib -e \ <<EOS require 'rubygems' require 'bundler' Bundler.setup puts $LOAD_PATH EOS /home/deivid/Code/bundler/lib /home/deivid/.rbenv/rbenv.d/exec/gem-rehash /home/deivid/Code/bundler/tmp/gems/system/gems/rails-2.3.2/lib /home/deivid/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.1.0.pre.1/lib /home/deivid/Code/bundler/tmp/gems/system/gems/activeresource-2.3.2/lib /home/deivid/Code/bundler/tmp/gems/system/gems/activerecord-2.3.2/lib /home/deivid/Code/bundler/tmp/gems/system/gems/actionpack-2.3.2/lib /home/deivid/Code/bundler/tmp/gems/system/gems/actionmailer-2.3.2/lib /home/deivid/Code/bundler/tmp/gems/system/gems/activesupport-2.3.2/lib /home/deivid/Code/bundler/tmp/gems/system/gems/rake-12.3.2/lib /home/deivid/.rbenv/versions/2.6.3/lib/ruby/site_ruby/2.6.0 /home/deivid/.rbenv/versions/2.6.3/lib/ruby/site_ruby/2.6.0/x86_64-linux /home/deivid/.rbenv/versions/2.6.3/lib/ruby/site_ruby /home/deivid/.rbenv/versions/2.6.3/lib/ruby/vendor_ruby/2.6.0 /home/deivid/.rbenv/versions/2.6.3/lib/ruby/vendor_ruby/2.6.0/x86_64-linux /home/deivid/.rbenv/versions/2.6.3/lib/ruby/vendor_ruby /home/deivid/.rbenv/versions/2.6.3/lib/ruby/2.6.0 /home/deivid/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux # $? => 0 $ /home/deivid/.rbenv/versions/2.6.3/bin/ruby -I/home/deivid/Code/bundler/lib -e puts\ \$LOAD_PATH /home/deivid/Code/bundler/lib /home/deivid/.rbenv/rbenv.d/exec/gem-rehash /home/deivid/.rbenv/versions/2.6.3/lib/ruby/site_ruby/2.6.0 /home/deivid/.rbenv/versions/2.6.3/lib/ruby/site_ruby/2.6.0/x86_64-linux /home/deivid/.rbenv/versions/2.6.3/lib/ruby/site_ruby /home/deivid/.rbenv/versions/2.6.3/lib/ruby/vendor_ruby/2.6.0 /home/deivid/.rbenv/versions/2.6.3/lib/ruby/vendor_ruby/2.6.0/x86_64-linux /home/deivid/.rbenv/versions/2.6.3/lib/ruby/vendor_ruby /home/deivid/.rbenv/versions/2.6.3/lib/ruby/2.6.0 /home/deivid/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux # $? => 0 # ./spec/runtime/setup_spec.rb:164:in `block (3 levels) in <top (required)>' # ./spec/spec_helper.rb:127:in `block (2 levels) in <top (required)>' # ./spec/spec_helper.rb:96:in `block (2 levels) in <top (required)>' # ./spec/support/rubygems_ext.rb:43:in `load' # ./spec/support/rubygems_ext.rb:43:in `gem_load' Finished in 0.82951 seconds (files took 1.17 seconds to load) 1 example, 1 failure Failed examples: rspec ./spec/runtime/setup_spec.rb:149 # Bundler.setup load order orders the load path correctly when there are dependencies Randomized with seed 55764 ``` This is because the development version of bundler installed gets activated and that messes up the load path assertion. ### What is your fix for the problem, implemented in this PR? My fix is to build the development bundler gem, install it to `tmp/system` and make sure that version gets activated. And include that in the test assertion. ### Why did you choose this fix out of the possible options? I chose this fix because it makes the spec independent from the developer's environment. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * Make spec pass more resilientlyimprove_load_path_order_specDavid Rodríguez2019-08-061-1/+4
| | | | | | | | | | | | Previously, if bundler-2.1.0.pre.1 would be installed globally, it would fail. Now we force that a locally installed version of bundler is used, so it always passed regardless of which bundler is installed globally.
| * Remove unnecessary exclusionsDavid Rodríguez2019-08-061-6/+1
| |
* | Merge #7281Bundlerbot2019-08-074-9/+7
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7281: Bump test deps r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that some test dependencies, sinatra and rack in particular, were outdated. ### What was your diagnosis of the problem? My diagnosis was that we should use the latest versions. ### What is your fix for the problem, implemented in this PR? My fix is to upgrade them. Both of them seem 100% compatible with respect to our test suite because there seems to be now failures, even though there was a note suggesting the opposite. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * Bump rack and sinatra to latest versionsbump_test_depsDavid Rodríguez2019-08-064-6/+6
| |
| * Normalize style with other artifice filesDavid Rodríguez2019-08-061-4/+2
|/
* Merge #7277Bundlerbot2019-08-05706-325/+444
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7277: Rerecord cassettes r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that we have not rerecorded cassettes in a while. ### What was your diagnosis of the problem? My diagnosis was that it's a good practice to rerecord cassettes once in a while. ### What is your fix for the problem, implemented in this PR? My fix is to rerecord the cassettes. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * Rerecord cassettesrerecord_cassettesrerecord_cassetesDavid Rodríguez2019-08-05706-325/+444
| | | | | | | | Don't think it will make a difference, but I'll try.
* | Merge #7264Bundlerbot2019-08-052-9/+58
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7264: Consistent lockfiles r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that when a Gemfile would specify path sources with paths starting with "./", the generated lockfile would be inconsistent on `bundle install` and `bundle update`. ### What was your diagnosis of the problem? My diagnosis was that when running `bundle update`, the bundle would be unlocked, and bundler would order the path sources according to the path present in the Gemfile ("./aaa" for example). On the other hand, when running `bundle install`, bundler would read the relative paths from the lockfile, where they are normalized ("aaa" for example). ### What is your fix for the problem, implemented in this PR? My fix is to normalize relative paths when creating the source list, so that "aaa" is always used over "./aaa". ### Why did you choose this fix out of the possible options? I chose this fix because it fixes the problem and it's backwards compatible (as in, it doesn't break any specs that assert for specific lockfiles). Fixes #7262. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * | Fix inconsistent lockfile orderconsistent_lockfilesDavid Rodríguez2019-07-242-1/+50
| | | | | | | | | | | | | | | | | | When Gemfile would specify path sources as relative paths starting with "./", the lockfile would have inconsistent order on `bundle install` and `bundle update`.
| * | Indentation tweakDavid Rodríguez2019-07-241-6/+6
| | |
| * | Reuse `root` methodDavid Rodríguez2019-07-241-2/+2
| | |
* | | Merge #7275Bundlerbot2019-08-054-35/+14
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7275: Use the standard RUBY_ENGINE_VERSION instead of JRUBY_VERSION r=deivid-rodriguez a=eregon * RUBY_ENGINE and RUBY_ENGINE_VERSION are defined on every modern Ruby. * There is no such constant as TRUFFLERUBY_VERSION or RBX_VERSION. This blocks https://github.com/rubygems/rubygems/pull/2797. Also see https://github.com/rubygems/rubygems/pull/2864 Co-authored-by: Benoit Daloze <eregontp@gmail.com>
| * | | Use the standard RUBY_ENGINE_VERSION instead of JRUBY_VERSIONBenoit Daloze2019-08-044-35/+14
| | |/ | |/| | | | | | | | | | * RUBY_ENGINE and RUBY_ENGINE_VERSION are defined on every modern Ruby. * There is no such constant as TRUFFLERUBY_VERSION or RBX_VERSION.
* | | Merge #7276Bundlerbot2019-08-051-1/+1
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7276: Enable retries on flaky spec r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that master is unstable right now, and build fails a number of times. That makes merging PRs annoying because they have to be retried many times. ### What was your diagnosis of the problem? I'm currently investigating what's going on and found the first root cause. Sometimes specs end up falling back to the old dependency API, and we have no recorded cassettes for those request, so specs fail because those never recorded specs are not allowed to be performed. I'm now invetigating the cause for that and I have a hypothesis: previous specs are sometimes messing up the test user home, and that's why we're falling back. I yet need to validate this hypothesis and find a fix, but I discovered that we have a mechanism in place for retrying failed specs. ### What is your fix for the problem, implemented in this PR? My fix is to enable the mechanism for the time being to reduce flakyness of our CI and unblock other PRs ### Why did you choose this fix out of the possible options? I chose this fix because I don't want other finished PRs to have to wait for me fixing this, or to have to be retried many times so that they can be merged. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * | Enable retries on flaky specretry_failing_specDavid Rodríguez2019-08-051-1/+1
|/ /
* | Merge #7267Bundlerbot2019-08-023-7/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7267: Use RbConfig::CONFIG directly instead of Gem::ConfigMap. r=deivid-rodriguez a=hsbt ### What was the end-user problem that led to this PR? When we try to remove `Gem::ConfigMap` on rubygems repository, It breaks the bundler examples. https://github.com/rubygems/rubygems/pull/2848#issuecomment-515726585 ### What was your diagnosis of the problem? Gem::ConfigMap is compatibility code for the old Ruby like 1.8/1.9. ### What is your fix for the problem, implemented in this PR? Use RbConfig instead of `Gem::ConfigMap` directly. It was always provided after the Ruby 2.x. Co-authored-by: Hiroshi SHIBATA <hsbt@ruby-lang.org>
| * | Remove Bundler.rubygems.config_map because it was deprecated.remove-gem-configmapHiroshi SHIBATA2019-08-012-5/+1
| | |
| * | The keys for RbConfig::CONFIG was String.Hiroshi SHIBATA2019-08-011-2/+2
| | |
| * | Use RbConfig::CONFIG directly instead of Gem::ConfigMap.Hiroshi SHIBATA2019-07-282-3/+4
| | | | | | | | | | | | Gem::ConfigMap is compatibility code for the old Ruby like 1.8/1.9.
* | | Merge #7269Bundlerbot2019-08-014-4/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7269: Bump rubocop to 0.74.0 r=hsbt a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that we are using an outdated rubocop version. ### What was your diagnosis of the problem? My diagnosis was that we should upgrade, specially because the newest version fixes an issue that made us disable a cop under some situations. ### What is your fix for the problem, implemented in this PR? My fix is to upgrade rubocop and remove the now unneeded exclusions. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * | | Bump rubocop to 0.74.0bump_rubocopDavid Rodríguez2019-07-314-4/+4
|/ / / | | | | | | | | | | | | And reenable exclusion because the bug why we added them has been fixed. See https://github.com/rubocop-hq/rubocop/issues/6861.
* | | Merge #7123Bundlerbot2019-07-312-101/+83
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7123: Refactors to `bundle outdated` r=deivid-rodriguez a=ryanfox1985 ### What was the end-user problem that led to this PR? Code in `bundle outdated` code be simpler and more readable. ### What is your fix for the problem, implemented in this PR? My fix is to refactor the command. Co-authored-by: Guillermo Guerrero <wolf.fox1985@gmail.com> Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * | | Add exclamation mark to methodDavid Rodríguez2019-07-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | To indicate that it can raise. Co-authored-by: Guillermo Guerrero <wolf.fox1985@gmail.com> Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * | | Move `strict` to an attributeDavid Rodríguez2019-07-241-8/+8
| | | | | | | | | | | | | | | | | | | | Co-authored-by: Guillermo Guerrero <wolf.fox1985@gmail.com> Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * | | Extract some methodsDavid Rodríguez2019-07-241-19/+31
| | | | | | | | | | | | | | | | | | | | Co-authored-by: Guillermo Guerrero <wolf.fox1985@gmail.com> Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * | | Unfold message to single line for readabilityDavid Rodríguez2019-07-241-2/+1
| | | |
| * | | Extract a `print_gems` methodGuillermo Guerrero2019-07-241-16/+13
| | | |
| * | | Less complexityGuillermo Guerrero2019-07-241-15/+8
| | | |
| * | | Move more locals to attributesDavid Rodríguez2019-07-241-10/+11
| | | | | | | | | | | | | | | | | | | | Co-authored-by: Guillermo Guerrero <wolf.fox1985@gmail.com> Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>