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

Commit 683fe97

Browse files
Merge #7479
7479: Get ready for 2.1.0 release r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was we want to release bundler 2.1.0 before ruby 2.7.0 ships, so that bundler 2.1.0 can be included with ruby 2.7.0. ### What is your fix for the problem, implemented in this PR? My fix is to get ready for the release. Co-authored-by: Bundlerbot <[email protected]> Co-authored-by: David Rodríguez <[email protected]>
2 parents 9e06edc + c40d5e1 commit 683fe97

File tree

158 files changed

+4824
-565
lines changed

Some content is hidden

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

158 files changed

+4824
-565
lines changed

.rspec_parallel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
--format progress
12
--format ParallelTests::RSpec::RuntimeLogger --out tmp/parallel_runtime_rspec.log
23
--require spec_helper
34
--require support/parallel.rb

.rubocop.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Lint/DuplicateCaseCondition:
5555
Lint/DuplicateMethods:
5656
Enabled: true
5757

58-
Lint/DuplicatedKey:
58+
Lint/DuplicateHashKey:
5959
Enabled: true
6060

6161
Lint/EachWithObjectArgument:
@@ -106,7 +106,7 @@ Lint/LiteralInInterpolation:
106106
Lint/Loop:
107107
Enabled: true
108108

109-
Lint/MultipleCompare:
109+
Lint/MultipleComparison:
110110
Enabled: true
111111

112112
Lint/NestedPercentLiteral:
@@ -171,7 +171,7 @@ Lint/ShadowedArgument:
171171
Lint/ShadowingOuterLocalVariable:
172172
Enabled: true
173173

174-
Lint/StringConversionInInterpolation:
174+
Lint/RedundantStringCoercion:
175175
Enabled: true
176176

177177
Lint/Syntax:
@@ -183,15 +183,6 @@ Lint/UnderscorePrefixedVariableName:
183183
Lint/UnifiedInteger:
184184
Enabled: true
185185

186-
Lint/UnneededCopDisableDirective:
187-
Enabled: true
188-
189-
Lint/UnneededCopEnableDirective:
190-
Enabled: true
191-
192-
Lint/UnneededSplatExpansion:
193-
Enabled: true
194-
195186
Lint/UnreachableCode:
196187
Enabled: true
197188

@@ -222,10 +213,10 @@ Layout/AccessModifierIndentation:
222213
Enabled: true
223214
EnforcedStyle: outdent
224215

225-
Layout/AlignArray:
216+
Layout/ArrayAlignment:
226217
Enabled: true
227218

228-
Layout/AlignParameters:
219+
Layout/ParameterAlignment:
229220
Enabled: true
230221
EnforcedStyle: with_fixed_indentation
231222

@@ -301,18 +292,18 @@ Layout/EndOfLine:
301292
Layout/ExtraSpacing:
302293
Enabled: true
303294

304-
Layout/IndentAssignment:
295+
Layout/AssignmentIndentation:
305296
Enabled: true
306297

307-
Layout/IndentFirstArrayElement:
298+
Layout/FirstArrayElementIndentation:
308299
Enabled: true
309300
EnforcedStyle: consistent
310301

311-
Layout/IndentFirstHashElement:
302+
Layout/FirstHashElementIndentation:
312303
Enabled: true
313304
EnforcedStyle: special_inside_parentheses
314305

315-
Layout/IndentFirstArgument:
306+
Layout/FirstArgumentIndentation:
316307
Enabled: true
317308

318309
Layout/IndentationConsistency:
@@ -324,7 +315,7 @@ Layout/IndentationWidth:
324315
Layout/InitialIndentation:
325316
Enabled: true
326317

327-
Layout/LeadingBlankLines:
318+
Layout/LeadingEmptyLines:
328319
Enabled: true
329320

330321
Layout/LeadingCommentSpace:
@@ -395,7 +386,7 @@ Layout/SpaceInsideStringInterpolation:
395386
Layout/Tab:
396387
Enabled: true
397388

398-
Layout/TrailingBlankLines:
389+
Layout/TrailingEmptyLines:
399390
Enabled: true
400391

401392
Layout/TrailingWhitespace:
@@ -424,7 +415,7 @@ Naming/HeredocDelimiterCase:
424415
Naming/MethodName:
425416
Enabled: true
426417

427-
Naming/UncommunicativeBlockParamName:
418+
Naming/BlockParameterName:
428419
Enabled: true
429420

430421
Naming/VariableName:
@@ -705,9 +696,18 @@ Style/RedundantBegin:
705696
Style/RedundantConditional:
706697
Enabled: true
707698

699+
Lint/RedundantCopDisableDirective:
700+
Enabled: true
701+
702+
Lint/RedundantCopEnableDirective:
703+
Enabled: true
704+
708705
Style/RedundantException:
709706
Enabled: true
710707

708+
Style/RedundantInterpolation:
709+
Enabled: true
710+
711711
Style/RedundantParentheses:
712712
Enabled: true
713713

@@ -717,6 +717,9 @@ Style/RedundantSelf:
717717
Style/RedundantSortBy:
718718
Enabled: true
719719

720+
Lint/RedundantSplatExpansion:
721+
Enabled: true
722+
720723
Style/RegexpLiteral:
721724
Enabled: true
722725

@@ -798,9 +801,6 @@ Style/TrailingCommaInHashLiteral:
798801
Style/TrailingMethodEndStatement:
799802
Enabled: true
800803

801-
Style/UnneededInterpolation:
802-
Enabled: true
803-
804804
Style/UnlessElse:
805805
Enabled: true
806806

CHANGELOG.md

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
## 2.1.0 (December 15, 2019)
2+
3+
Features:
4+
5+
- Add support for new default gems. In particular,
6+
7+
* `open3` [#7455](https://github.com/bundler/bundler/pull/7455)
8+
* `cgi`: [#7456](https://github.com/bundler/bundler/pull/7456)
9+
* `uri` [#7460](https://github.com/bundler/bundler/pull/7460)
10+
11+
plus other PRs removing or lazily loading usages of these gems from other places to not interfere with user's choice, such as [#7471](https://github.com/bundler/bundler/pull/7471) or [#7473](https://github.com/bundler/bundler/pull/7473)
12+
13+
Bugfixes:
14+
15+
- Fix `bundle exec rake install` failing [#7474](https://github.com/bundler/bundler/pull/7474)
16+
- Fix `bundle exec`'ing to rubygems being silent [#7442](https://github.com/bundler/bundler/pull/7442)
17+
- Restore previous `BUNDLE_GEMFILE` in `bundler/inline` [#7418](https://github.com/bundler/bundler/pull/7418)
18+
- Fix error when using `gem` DSL's `:glob` option for selecting gemspecs from a specific source [#7419](https://github.com/bundler/bundler/pull/7419)
19+
20+
Changes:
21+
22+
- `bundle config` no longer warns when using "old interface" (might be deprecated again in the future) [#7475](https://github.com/bundler/bundler/pull/7475)
23+
- `bundle update` no longer warns when used without arguments (might be deprecated again in the future) [#7475](https://github.com/bundler/bundler/pull/7475)
24+
125
## 2.1.0.pre.3 (November 12, 2019)
226

327
Features:
@@ -20,13 +44,13 @@ Bugfixes:
2044
Bugfixes:
2145

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

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

2751
One of the biggest changes in bundler 2.1.0 is that deprecations for upcoming
2852
breaking changes in bundler 3 will be turned on by default. We do this to grab
29-
feedback and comunicate early to our users the kind of changes we're intending
53+
feedback and communicate early to our users the kind of changes we're intending
3054
to ship with bundler 3. See
3155
[#6965](https://github.com/bundler/bundler/pull/6965).
3256

@@ -89,7 +113,7 @@ Bugfixes:
89113
- Warn about situations where multiple gems provide the same executable ([#7075](https://github.com/bundler/bundler/pull/7075))
90114
- Ignore `frozen` setting in inline mode ([#7125](https://github.com/bundler/bundler/pull/7125))
91115
- Fix incorrect "bundler attempted to update GEM but version stayed the same" message when updating git sourced gems ([#6325](https://github.com/bundler/bundler/pull/6325))
92-
- Don't check for existance of a writable home directory if `BUNDLE_USER_HOME` is set ([#6885](https://github.com/bundler/bundler/pull/6885))
116+
- Don't check for existence of a writable home directory if `BUNDLE_USER_HOME` is set ([#6885](https://github.com/bundler/bundler/pull/6885))
93117
- Fix error message when server would respond to a bad username/password requiest with a 401 ([#6928](https://github.com/bundler/bundler/pull/6928))
94118
- Fix `bundle outdated` pluralization when multiple groups are requested ([#7063](https://github.com/bundler/bundler/pull/7063))
95119
- Fix `bundle install` not updating conservatively when gemspec is changed ([#7143](https://github.com/bundler/bundler/pull/7143))

Rakefile

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,6 @@ rescue Gem::LoadError => e
222222

223223
desc "Vendor a specific version of net-http-persistent"
224224
task(:"net-http-persistent") { abort msg }
225-
226-
desc "Vendor a specific version of connection_pool"
227-
task(:connection_pool) { abort msg }
228225
end
229226
else
230227
desc "Vendor a specific version of molinillo"
@@ -254,30 +251,31 @@ else
254251
lib.vendor_lib = "lib/bundler/vendor/fileutils"
255252
end
256253

257-
# Currently `net-http-persistent` and it's dependency `connection_pool` are
258-
# vendored separately, but `connection_pool` references inside the vendored
259-
# copy of `net-http-persistent` are not properly updated to refer to the
260-
# vendored copy of `connection_pool`, so they need to be manually updated.
261-
# This will be automated once https://github.com/segiddins/automatiek/pull/3
262-
# is included in `automatiek` and we start using the new API for vendoring
263-
# subdependencies.
264-
# Besides that, we currently cherry-pick changes to use `require_relative`
265-
# internally instead of regular `require`. They are pending review at
254+
# We currently cherry-pick changes to use `require_relative` internally
255+
# instead of regular `require`. They are pending review at
266256
# https://github.com/drbrain/net-http-persistent/pull/106
267257
desc "Vendor a specific version of net-http-persistent"
268258
Automatiek::RakeTask.new("net-http-persistent") do |lib|
269259
lib.download = { :github => "https://github.com/drbrain/net-http-persistent" }
270260
lib.namespace = "Net::HTTP::Persistent"
271261
lib.prefix = "Bundler::Persistent"
272262
lib.vendor_lib = "lib/bundler/vendor/net-http-persistent"
273-
end
274263

275-
desc "Vendor a specific version of connection_pool"
276-
Automatiek::RakeTask.new("connection_pool") do |lib|
277-
lib.download = { :github => "https://github.com/mperham/connection_pool" }
278-
lib.namespace = "ConnectionPool"
279-
lib.prefix = "Bundler"
280-
lib.vendor_lib = "lib/bundler/vendor/connection_pool"
264+
lib.dependency("connection_pool") do |sublib|
265+
sublib.version = "v2.2.2"
266+
sublib.download = { :github => "https://github.com/mperham/connection_pool" }
267+
sublib.namespace = "ConnectionPool"
268+
sublib.prefix = "Bundler"
269+
sublib.vendor_lib = "lib/bundler/vendor/connection_pool"
270+
end
271+
272+
lib.dependency("uri") do |sublib|
273+
sublib.version = "master"
274+
sublib.download = { :github => "https://github.com/ruby/uri" }
275+
sublib.namespace = "URI"
276+
sublib.prefix = "Bundler"
277+
sublib.vendor_lib = "lib/bundler/vendor/uri"
278+
end
281279
end
282280
end
283281

azure-pipelines.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
trigger:
2+
branches:
3+
include:
4+
- master
5+
- staging
6+
- trying
7+
- /.+-dev$/
8+
- /.+-stable$/
9+
110
jobs:
211
- job: Windows
312
pool:

doc/development/SETUP.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ Bundler doesn't use a Gemfile to list development dependencies, because when we
2424

2525
$ bin/rake spec
2626

27-
6. Set up a shell alias to run Bundler from your clone, e.g. a Bash alias ([follow these instructions](https://www.moncefbelyamani.com/create-aliases-in-bash-profile-to-assign-shortcuts-for-common-terminal-commands/) for adding aliases to your `~/.bashrc` profile):
27+
6. Optionally, you can run the test suite in parallel:
28+
29+
$ bin/parallel_rspec spec
30+
31+
7. Set up a shell alias to run Bundler from your clone, e.g. a Bash alias ([follow these instructions](https://www.moncefbelyamani.com/create-aliases-in-bash-profile-to-assign-shortcuts-for-common-terminal-commands/) for adding aliases to your `~/.bashrc` profile):
2832

2933
$ alias dbundle='/path/to/bundler/repo/bin/bundle'
3034

lib/bundler.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ module Bundler
5050
autoload :FeatureFlag, File.expand_path("bundler/feature_flag", __dir__)
5151
autoload :GemHelper, File.expand_path("bundler/gem_helper", __dir__)
5252
autoload :GemHelpers, File.expand_path("bundler/gem_helpers", __dir__)
53-
autoload :GemRemoteFetcher, File.expand_path("bundler/gem_remote_fetcher", __dir__)
5453
autoload :GemVersionPromoter, File.expand_path("bundler/gem_version_promoter", __dir__)
5554
autoload :Graph, File.expand_path("bundler/graph", __dir__)
5655
autoload :Index, File.expand_path("bundler/index", __dir__)

lib/bundler/cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ def warn_on_outdated_bundler
783783
return unless SharedHelpers.md5_available?
784784

785785
latest = Fetcher::CompactIndex.
786-
new(nil, Source::Rubygems::Remote.new(URI("https://rubygems.org")), nil).
786+
new(nil, Source::Rubygems::Remote.new(Bundler::URI("https://rubygems.org")), nil).
787787
send(:compact_index_client).
788788
instance_variable_get(:@cache).
789789
dependencies("bundler").

lib/bundler/cli/config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def base(name = nil, *value)
2525
["config", "get", ARGV[1]]
2626
end
2727

28-
SharedHelpers.major_deprecation 2,
28+
SharedHelpers.major_deprecation 3,
2929
"Using the `config` command without a subcommand [list, get, set, unset] is deprecated and will be removed in the future. Use `bundle #{new_args.join(" ")}` instead."
3030

3131
Base.new(options, name, value, self).run

lib/bundler/cli/exec.rb

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ def run
2525
SharedHelpers.set_bundle_environment
2626
if bin_path = Bundler.which(cmd)
2727
if !Bundler.settings[:disable_exec_load] && ruby_shebang?(bin_path)
28-
return kernel_load(bin_path, *args)
28+
return with_verbose_rubygems { kernel_load(bin_path, *args) }
2929
end
30-
kernel_exec(bin_path, *args)
30+
with_verbose_rubygems { kernel_exec(bin_path, *args) }
3131
else
3232
# exec using the given command
33-
kernel_exec(cmd, *args)
33+
with_verbose_rubygems { kernel_exec(cmd, *args) }
3434
end
3535
end
3636

@@ -89,5 +89,14 @@ def ruby_shebang?(file)
8989
first_line = File.open(file, "rb") {|f| f.read(possibilities.map(&:size).max) }
9090
possibilities.any? {|shebang| first_line.start_with?(shebang) }
9191
end
92+
93+
def with_verbose_rubygems
94+
old_ui = Gem::DefaultUserInteraction.ui
95+
Gem::DefaultUserInteraction.ui = nil
96+
97+
yield
98+
ensure
99+
Gem::DefaultUserInteraction.ui = old_ui
100+
end
92101
end
93102
end

0 commit comments

Comments
 (0)