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

Commit 14c5584

Browse files
Merge #7532
7532: Release 2.1.3 r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was we should release more bug fixes. ### What is your fix for the problem, implemented in this PR? My fix is to prepare 2.1.3. Co-authored-by: Bundlerbot <[email protected]> Co-authored-by: David Rodríguez <[email protected]>
2 parents 4da3289 + 784c368 commit 14c5584

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+190
-149
lines changed

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ before_script:
55
- travis_retry gem install rake:"~> 12.0"
66
- travis_retry bin/rake override_version
77
- travis_retry bin/rake spec:deps
8-
- bin/rake man:check
98
- if [ "$BUNDLER_SPEC_SUB_VERSION" = "" ];
109
then
1110
travis_retry sudo apt-get install graphviz -y;
@@ -55,10 +54,7 @@ env:
5554
jobs:
5655
include:
5756
- rvm: 2.6.5
58-
script: bin/rake rubocop
59-
stage: linting
60-
- rvm: 2.6.5
61-
script: bin/rake check_rvm_integration
57+
script: bin/rake rubocop check_rvm_integration man:check
6258
stage: linting
6359
# Ruby 2.3 also tested in 2.x mode
6460
- rvm: 2.3.8

CHANGELOG.md

Lines changed: 9 additions & 0 deletions

lib/bundler/cli/install.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def run
3838
if Bundler.feature_flag.deployment_means_frozen?
3939
Bundler.settings.set_command_option :deployment, true
4040
else
41-
Bundler.settings.set_command_option :frozen, true
41+
Bundler.settings.set_command_option :deployment, true if options[:deployment]
42+
Bundler.settings.set_command_option :frozen, true if options[:frozen]
4243
end
4344
end
4445

@@ -169,7 +170,7 @@ def normalize_groups
169170
def normalize_settings
170171
Bundler.settings.set_command_option :path, nil if options[:system]
171172
Bundler.settings.temporary(:path_relative_to_cwd => false) do
172-
Bundler.settings.set_command_option :path, "vendor/bundle" if options[:deployment]
173+
Bundler.settings.set_command_option :path, "vendor/bundle" if Bundler.settings[:deployment] && Bundler.settings[:path].nil?
173174
end
174175
Bundler.settings.set_command_option_if_given :path, options[:path]
175176
Bundler.settings.temporary(:path_relative_to_cwd => false) do

lib/bundler/gem_helper.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def install
7373

7474
def build_gem
7575
file_name = nil
76-
sh("#{gem_command} build -V #{spec_path}".shellsplit) do
76+
sh("#{gem_command} build -V #{spec_path.shellescape}".shellsplit) do
7777
file_name = File.basename(built_gem_path)
7878
SharedHelpers.filesystem_access(File.join(base, "pkg")) {|p| FileUtils.mkdir_p(p) }
7979
FileUtils.mv(built_gem_path, "pkg")
@@ -130,9 +130,8 @@ def gem_push_host
130130

131131
def perform_git_push(options = "")
132132
cmd = "git push #{options}"
133-
out, status = sh_with_status(cmd)
133+
out, status = sh_with_status(cmd.shellsplit)
134134
return if status.success?
135-
cmd = cmd.shelljoin if cmd.respond_to?(:shelljoin)
136135
raise "Couldn't git push. `#{cmd}' failed with the following output:\n\n#{out}\n"
137136
end
138137

lib/bundler/rubygems_integration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
require "rubygems"
3+
require "rubygems" unless defined?(Gem)
44

55
module Bundler
66
class RubygemsIntegration

lib/bundler/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: false
22

33
module Bundler
4-
VERSION = "2.1.2".freeze
4+
VERSION = "2.1.3".freeze
55

66
def self.bundler_major_version
77
@bundler_major_version ||= VERSION.split(".").first.to_i

man/bundle-add.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.\" generated with Ronn/v0.7.3
22
.\" http://github.com/rtomayko/ronn/tree/0.7.3
33
.
4-
.TH "BUNDLE\-ADD" "1" "December 2019" "" ""
4+
.TH "BUNDLE\-ADD" "1" "January 2020" "" ""
55
.
66
.SH "NAME"
77
\fBbundle\-add\fR \- Add gem to the Gemfile and run bundle install

man/bundle-add.1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ OPTIONS
5555

5656

5757

58-
December 2019 BUNDLE-ADD(1)
58+
January 2020 BUNDLE-ADD(1)

man/bundle-binstubs.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.\" generated with Ronn/v0.7.3
22
.\" http://github.com/rtomayko/ronn/tree/0.7.3
33
.
4-
.TH "BUNDLE\-BINSTUBS" "1" "December 2019" "" ""
4+
.TH "BUNDLE\-BINSTUBS" "1" "January 2020" "" ""
55
.
66
.SH "NAME"
77
\fBbundle\-binstubs\fR \- Install the binstubs of the listed gems

man/bundle-binstubs.1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ BUNDLE INSTALL --BINSTUBS
4545

4646

4747

48-
December 2019 BUNDLE-BINSTUBS(1)
48+
January 2020 BUNDLE-BINSTUBS(1)

0 commit comments

Comments
 (0)