Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Merge #7357
Browse files Browse the repository at this point in the history
7357: Release 2.1.0.pre.2 r=hsbt a=deivid-rodriguez

This is the 2.1.0.pre.2 release branch, generated using `bin/rake release:prepare_patch`.

Co-authored-by: Bundlerbot <bot@bundler.io>
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
  • Loading branch information
bundlerbot and deivid-rodriguez committed Sep 15, 2019
2 parents 35781bb + 6e9774b commit b0dcf5f
Show file tree
Hide file tree
Showing 768 changed files with 544 additions and 475 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ notifications:
- secure: JxBi7DDJGkIF/7f/FSN/HUHpvV4EKfQccZHTPd1b2pNJn3GXo6u+tNVbAw2WjxYzPyPQI3ZcYBCU9SEXp/i7VmG8uMzh8Kyildw+miSKYKVb90uYqcsXWzbxwyNBgJLvyDkzST45H5lgnyAicee3WkFes/WDZikIajbH7ztdb04=

rvm:
- 2.6.3
- 2.5.5
- 2.4.6
- 2.6.4
- 2.5.6
- 2.4.7

stages:
- linting
Expand All @@ -44,7 +44,7 @@ env:

jobs:
include:
- rvm: 2.6.3
- rvm: 2.6.4
script: rake rubocop
stage: linting
# Ruby 2.3 also tested in 2.x mode
Expand All @@ -55,11 +55,11 @@ jobs:
env: RGV=v3.0.6
stage: test
# Ruby 2.5, Rubygems 2.7
- rvm: 2.5.5
- rvm: 2.5.6
env: RGV=v2.7.10
stage: test
# Ruby 2.4, Rubygems 2.6
- rvm: 2.4.6
- rvm: 2.4.7
env: RGV=v2.6.14
stage: test
# Ruby 2.3, Rubygems 2.5
Expand Down
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
## 2.1.0.pre.1
## 2.1.0.pre.2

Bugfixes:

- Fix `bundle clean` trying to delete non-existent directory ([#7340](https://github.com/bundler/bundler/pull/7340))
- Fix warnings about keywork argument separation on ruby 2.7 ([#7337](https://github.com/bundler/bundler/pull/7337))

## 2.1.0.pre.1 (August 28, 2019)

One of the biggest changes in bundler 2.1.0 is that deprecations for upcoming
breaking changes in bundler 3 will be turned on by default. We do this to grab
Expand Down
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ namespace :man do
Spec::Rubygems.gem_require("ronn")
rescue Gem::LoadError => e
task(:build) { abort "We couln't activate ronn (#{e.requirement}). Try `gem install ronn:'#{e.requirement}'` to be able to build the help pages" }
task(:check) { abort "We couln't activate ronn (#{e.requirement}). Try `gem install ronn:'#{e.requirement}'` to be able to build the help pages" }
else
directory "man"

Expand Down
29 changes: 18 additions & 11 deletions doc/playbooks/RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ using:
$ git cherry-pick -m 1 dd6aef9
```

The `rake release:patch` command will automatically handle cherry-picking, and is further detailed below.
The `rake release:prepare_patch` command will automatically handle
cherry-picking, and is further detailed below.

## Changelog

Expand Down Expand Up @@ -128,16 +129,22 @@ per bug fixed. Then run `rake release` from the `-stable` branch,
and pour yourself a tasty drink!

PRs containing regression fixes for a patch release of the current minor version
are merged to master. These commits are then cherry-picked from master onto the
minor branch (`1-12-stable`).

There is a `rake release:patch` rake task that automates creating a patch release.
It takes a single argument, the _exact_ patch release being made (e.g. `1.12.3`),
and checks out the appropriate stable branch (`1-12-stable`), grabs the `1.12.3`
milestone from GitHub, ensures all PRs are closed, and then cherry-picks those changes
(and only those changes) to the stable branch. The task then bumps the version in the
version file, prompts you to update the `CHANGELOG.md`, then will commit those changes
and run `rake release`!
are merged to master. These commits need to be cherry-picked from master onto
the minor branch (`1-12-stable`).

There is a `rake release:prepare_patch` rake task that helps with creating a patch
release. It takes a single argument, the _exact_ patch release being made (e.g.
`1.12.3`), but if not given it will bump the tiny version number by one. This
task checks out the appropriate stable branch (`1-12-stable`), grabs the
`1.12.3` milestone from GitHub, ensures all PRs are closed, and then
cherry-picks those changes (and only those changes) to a new branch based off
the stable branch. Then bumps the version in the version file and commits that
change on top of the cherry-picks.

Now you have a release branch ready to be merged into the stable branch. You'll
want to open a PR from this branch into the stable branch and provided CI is
green, you can go ahead, merge the PR and run `rake release` from the updated
stable branch.

## Beta testing

Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def has_local_dependencies?
end

def spec_git_paths
sources.git_sources.map {|s| File.realpath(s.path) }
sources.git_sources.map {|s| File.realpath(s.path) if File.exist?(s.path) }.compact
end

def groups
Expand Down
1 change: 1 addition & 0 deletions lib/bundler/resolver/spec_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def ==(other)
end

def eql?(other)
return unless other.is_a?(SpecGroup)
name.eql?(other.name) &&
version.eql?(other.version) &&
source.eql?(other.source)
Expand Down
7 changes: 6 additions & 1 deletion lib/bundler/vendor/thor/lib/thor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,14 @@ def long_desc(long_description, options = {})
# ==== Parameters
# Hash[String|Array => Symbol]:: Maps the string or the strings in the array to the given command.
#
def map(mappings = nil)
def map(mappings = nil, **kw)
@map ||= from_superclass(:map, {})

if mappings && !kw.empty?
mappings = kw.merge!(mappings)
else
mappings ||= kw
end
if mappings
mappings.each do |key, value|
if key.respond_to?(:each)
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/version.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: false

module Bundler
VERSION = "2.1.0.pre.1".freeze
VERSION = "2.1.0.pre.2".freeze

def self.bundler_major_version
@bundler_major_version ||= VERSION.split(".").first.to_i
Expand Down
2 changes: 1 addition & 1 deletion man/bundle-add.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-ADD" "1" "August 2019" "" ""
.TH "BUNDLE\-ADD" "1" "September 2019" "" ""
.
.SH "NAME"
\fBbundle\-add\fR \- Add gem to the Gemfile and run bundle install
Expand Down
2 changes: 1 addition & 1 deletion man/bundle-add.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ OPTIONS



August 2019 BUNDLE-ADD(1)
September 2019 BUNDLE-ADD(1)
2 changes: 1 addition & 1 deletion man/bundle-binstubs.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-BINSTUBS" "1" "August 2019" "" ""
.TH "BUNDLE\-BINSTUBS" "1" "September 2019" "" ""
.
.SH "NAME"
\fBbundle\-binstubs\fR \- Install the binstubs of the listed gems
Expand Down
2 changes: 1 addition & 1 deletion man/bundle-binstubs.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ BUNDLE INSTALL --BINSTUBS



August 2019 BUNDLE-BINSTUBS(1)
September 2019 BUNDLE-BINSTUBS(1)
2 changes: 1 addition & 1 deletion man/bundle-check.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-CHECK" "1" "August 2019" "" ""
.TH "BUNDLE\-CHECK" "1" "September 2019" "" ""
.
.SH "NAME"
\fBbundle\-check\fR \- Verifies if dependencies are satisfied by installed gems
Expand Down
2 changes: 1 addition & 1 deletion man/bundle-check.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ OPTIONS



August 2019 BUNDLE-CHECK(1)
September 2019 BUNDLE-CHECK(1)
2 changes: 1 addition & 1 deletion man/bundle-clean.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-CLEAN" "1" "August 2019" "" ""
.TH "BUNDLE\-CLEAN" "1" "September 2019" "" ""
.
.SH "NAME"
\fBbundle\-clean\fR \- Cleans up unused gems in your bundler directory
Expand Down
2 changes: 1 addition & 1 deletion man/bundle-clean.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ OPTIONS



August 2019 BUNDLE-CLEAN(1)
September 2019 BUNDLE-CLEAN(1)
2 changes: 1 addition & 1 deletion man/bundle-config.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-CONFIG" "1" "August 2019" "" ""
.TH "BUNDLE\-CONFIG" "1" "September 2019" "" ""
.
.SH "NAME"
\fBbundle\-config\fR \- Set bundler configuration options
Expand Down
2 changes: 1 addition & 1 deletion man/bundle-config.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -525,4 +525,4 @@ CONFIGURE BUNDLER DIRECTORIES



August 2019 BUNDLE-CONFIG(1)
September 2019 BUNDLE-CONFIG(1)
2 changes: 1 addition & 1 deletion man/bundle-doctor.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-DOCTOR" "1" "August 2019" "" ""
.TH "BUNDLE\-DOCTOR" "1" "September 2019" "" ""
.
.SH "NAME"
\fBbundle\-doctor\fR \- Checks the bundle for common problems
Expand Down
2 changes: 1 addition & 1 deletion man/bundle-doctor.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ OPTIONS



August 2019 BUNDLE-DOCTOR(1)
September 2019 BUNDLE-DOCTOR(1)
4 changes: 2 additions & 2 deletions man/bundle-exec.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-EXEC" "1" "August 2019" "" ""
.TH "BUNDLE\-EXEC" "1" "September 2019" "" ""
.
.SH "NAME"
\fBbundle\-exec\fR \- Execute a command in the context of the bundle
Expand Down Expand Up @@ -155,7 +155,7 @@ You can find a list of all the gems containing gem plugins by running
.
.nf

ruby \-rubygems \-e "puts Gem\.find_files(\'rubygems_plugin\.rb\')"
ruby \-rrubygems \-e "puts Gem\.find_files(\'rubygems_plugin\.rb\')"
.
.fi
.
Expand Down
4 changes: 2 additions & 2 deletions man/bundle-exec.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ RUBYGEMS PLUGINS



ruby -rubygems -e "puts Gem.find_files('rubygems_plugin.rb')"
ruby -rrubygems -e "puts Gem.find_files('rubygems_plugin.rb')"



Expand All @@ -175,4 +175,4 @@ RUBYGEMS PLUGINS



August 2019 BUNDLE-EXEC(1)
September 2019 BUNDLE-EXEC(1)
2 changes: 1 addition & 1 deletion man/bundle-exec.ronn
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ their plugins.
You can find a list of all the gems containing gem plugins
by running

ruby -rubygems -e "puts Gem.find_files('rubygems_plugin.rb')"
ruby -rrubygems -e "puts Gem.find_files('rubygems_plugin.rb')"

At the very least, you should remove all but the newest
version of each gem plugin, and also remove all gem plugins
Expand Down
2 changes: 1 addition & 1 deletion man/bundle-gem.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-GEM" "1" "August 2019" "" ""
.TH "BUNDLE\-GEM" "1" "September 2019" "" ""
.
.SH "NAME"
\fBbundle\-gem\fR \- Generate a project skeleton for creating a rubygem
Expand Down
2 changes: 1 addition & 1 deletion man/bundle-gem.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ SEE ALSO



August 2019 BUNDLE-GEM(1)
September 2019 BUNDLE-GEM(1)
2 changes: 1 addition & 1 deletion man/bundle-info.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-INFO" "1" "August 2019" "" ""
.TH "BUNDLE\-INFO" "1" "September 2019" "" ""
.
.SH "NAME"
\fBbundle\-info\fR \- Show information for the given gem in your bundle
Expand Down
2 changes: 1 addition & 1 deletion man/bundle-info.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ OPTIONS



August 2019 BUNDLE-INFO(1)
September 2019 BUNDLE-INFO(1)
2 changes: 1 addition & 1 deletion man/bundle-init.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-INIT" "1" "August 2019" "" ""
.TH "BUNDLE\-INIT" "1" "September 2019" "" ""
.
.SH "NAME"
\fBbundle\-init\fR \- Generates a Gemfile into the current working directory
Expand Down
2 changes: 1 addition & 1 deletion man/bundle-init.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ SEE ALSO



August 2019 BUNDLE-INIT(1)
September 2019 BUNDLE-INIT(1)
2 changes: 1 addition & 1 deletion man/bundle-inject.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-INJECT" "1" "August 2019" "" ""
.TH "BUNDLE\-INJECT" "1" "September 2019" "" ""
.
.SH "NAME"
\fBbundle\-inject\fR \- Add named gem(s) with version requirements to Gemfile
Expand Down
2 changes: 1 addition & 1 deletion man/bundle-inject.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ DESCRIPTION



August 2019 BUNDLE-INJECT(1)
September 2019 BUNDLE-INJECT(1)
2 changes: 1 addition & 1 deletion man/bundle-install.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-INSTALL" "1" "August 2019" "" ""
.TH "BUNDLE\-INSTALL" "1" "September 2019" "" ""
.
.SH "NAME"
\fBbundle\-install\fR \- Install the dependencies specified in your Gemfile
Expand Down
2 changes: 1 addition & 1 deletion man/bundle-install.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -398,4 +398,4 @@ SEE ALSO



August 2019 BUNDLE-INSTALL(1)
September 2019 BUNDLE-INSTALL(1)
2 changes: 1 addition & 1 deletion man/bundle-list.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-LIST" "1" "August 2019" "" ""
.TH "BUNDLE\-LIST" "1" "September 2019" "" ""
.
.SH "NAME"
\fBbundle\-list\fR \- List all the gems in the bundle
Expand Down
2 changes: 1 addition & 1 deletion man/bundle-list.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ OPTIONS



August 2019 BUNDLE-LIST(1)
September 2019 BUNDLE-LIST(1)
2 changes: 1 addition & 1 deletion man/bundle-lock.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-LOCK" "1" "August 2019" "" ""
.TH "BUNDLE\-LOCK" "1" "September 2019" "" ""
.
.SH "NAME"
\fBbundle\-lock\fR \- Creates / Updates a lockfile without installing
Expand Down
2 changes: 1 addition & 1 deletion man/bundle-lock.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ PATCH LEVEL OPTIONS



August 2019 BUNDLE-LOCK(1)
September 2019 BUNDLE-LOCK(1)
2 changes: 1 addition & 1 deletion man/bundle-open.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BUNDLE\-OPEN" "1" "August 2019" "" ""
.TH "BUNDLE\-OPEN" "1" "September 2019" "" ""
.
.SH "NAME"
\fBbundle\-open\fR \- Opens the source directory for a gem in your bundle
Expand Down
2 changes: 1 addition & 1 deletion man/bundle-open.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ DESCRIPTION



August 2019 BUNDLE-OPEN(1)
September 2019 BUNDLE-OPEN(1)
Loading

0 comments on commit b0dcf5f

Please sign in to comment.