bundler 2.2.24 → 2.2.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +149 -1
  3. data/README.md +1 -1
  4. data/lib/bundler/build_metadata.rb +2 -2
  5. data/lib/bundler/cli/cache.rb +1 -1
  6. data/lib/bundler/cli/doctor.rb +4 -3
  7. data/lib/bundler/cli/exec.rb +1 -6
  8. data/lib/bundler/cli/gem.rb +90 -10
  9. data/lib/bundler/cli/info.rb +16 -4
  10. data/lib/bundler/cli/install.rb +4 -17
  11. data/lib/bundler/cli/issue.rb +4 -3
  12. data/lib/bundler/cli/list.rb +7 -1
  13. data/lib/bundler/cli/open.rb +1 -2
  14. data/lib/bundler/cli/remove.rb +1 -2
  15. data/lib/bundler/cli/update.rb +3 -3
  16. data/lib/bundler/cli.rb +16 -10
  17. data/lib/bundler/compact_index_client/updater.rb +0 -5
  18. data/lib/bundler/compact_index_client.rb +2 -2
  19. data/lib/bundler/definition.rb +84 -150
  20. data/lib/bundler/digest.rb +71 -0
  21. data/lib/bundler/dsl.rb +32 -4
  22. data/lib/bundler/environment_preserver.rb +4 -1
  23. data/lib/bundler/errors.rb +19 -3
  24. data/lib/bundler/fetcher.rb +2 -1
  25. data/lib/bundler/friendly_errors.rb +5 -30
  26. data/lib/bundler/gem_helper.rb +6 -17
  27. data/lib/bundler/installer/gem_installer.rb +3 -16
  28. data/lib/bundler/installer/standalone.rb +13 -8
  29. data/lib/bundler/installer.rb +0 -1
  30. data/lib/bundler/lazy_specification.rb +17 -1
  31. data/lib/bundler/lockfile_parser.rb +2 -0
  32. data/lib/bundler/man/bundle-add.1 +1 -1
  33. data/lib/bundler/man/bundle-binstubs.1 +1 -1
  34. data/lib/bundler/man/bundle-cache.1 +1 -1
  35. data/lib/bundler/man/bundle-check.1 +1 -1
  36. data/lib/bundler/man/bundle-clean.1 +1 -1
  37. data/lib/bundler/man/bundle-config.1 +3 -3
  38. data/lib/bundler/man/bundle-config.1.ronn +2 -2
  39. data/lib/bundler/man/bundle-doctor.1 +1 -1
  40. data/lib/bundler/man/bundle-exec.1 +1 -1
  41. data/lib/bundler/man/bundle-gem.1 +14 -1
  42. data/lib/bundler/man/bundle-gem.1.ronn +16 -0
  43. data/lib/bundler/man/bundle-info.1 +1 -1
  44. data/lib/bundler/man/bundle-init.1 +1 -1
  45. data/lib/bundler/man/bundle-inject.1 +1 -1
  46. data/lib/bundler/man/bundle-install.1 +1 -1
  47. data/lib/bundler/man/bundle-list.1 +1 -1
  48. data/lib/bundler/man/bundle-lock.1 +1 -1
  49. data/lib/bundler/man/bundle-open.1 +1 -1
  50. data/lib/bundler/man/bundle-outdated.1 +1 -1
  51. data/lib/bundler/man/bundle-platform.1 +1 -1
  52. data/lib/bundler/man/bundle-pristine.1 +1 -1
  53. data/lib/bundler/man/bundle-remove.1 +1 -1
  54. data/lib/bundler/man/bundle-show.1 +1 -1
  55. data/lib/bundler/man/bundle-update.1 +1 -1
  56. data/lib/bundler/man/bundle-viz.1 +1 -1
  57. data/lib/bundler/man/bundle.1 +1 -1
  58. data/lib/bundler/man/gemfile.5 +27 -1
  59. data/lib/bundler/man/gemfile.5.ronn +8 -0
  60. data/lib/bundler/plugin/api/source.rb +1 -0
  61. data/lib/bundler/plugin/installer.rb +2 -0
  62. data/lib/bundler/plugin.rb +23 -6
  63. data/lib/bundler/resolver.rb +8 -17
  64. data/lib/bundler/rubygems_ext.rb +4 -0
  65. data/lib/bundler/rubygems_gem_installer.rb +25 -5
  66. data/lib/bundler/rubygems_integration.rb +28 -9
  67. data/lib/bundler/runtime.rb +17 -8
  68. data/lib/bundler/settings.rb +13 -1
  69. data/lib/bundler/setup.rb +2 -2
  70. data/lib/bundler/shared_helpers.rb +2 -10
  71. data/lib/bundler/source/git/git_proxy.rb +8 -6
  72. data/lib/bundler/source/git.rb +22 -4
  73. data/lib/bundler/source/rubygems.rb +70 -81
  74. data/lib/bundler/source/rubygems_aggregate.rb +4 -0
  75. data/lib/bundler/source.rb +4 -0
  76. data/lib/bundler/source_list.rb +22 -31
  77. data/lib/bundler/spec_set.rb +14 -36
  78. data/lib/bundler/templates/Executable.bundler +6 -6
  79. data/lib/bundler/templates/newgem/Gemfile.tt +5 -2
  80. data/lib/bundler/templates/newgem/Rakefile.tt +5 -1
  81. data/lib/bundler/templates/newgem/github/workflows/main.yml.tt +13 -2
  82. data/lib/bundler/templates/newgem/newgem.gemspec.tt +16 -14
  83. data/lib/bundler/templates/newgem/sig/newgem.rbs.tt +8 -0
  84. data/lib/bundler/templates/newgem/standard.yml.tt +2 -0
  85. data/lib/bundler/vendor/.document +1 -0
  86. data/lib/bundler/vendor/connection_pool/LICENSE +20 -0
  87. data/lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb +19 -21
  88. data/lib/bundler/vendor/connection_pool/lib/connection_pool/version.rb +1 -1
  89. data/lib/bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb +57 -0
  90. data/lib/bundler/vendor/connection_pool/lib/connection_pool.rb +39 -74
  91. data/lib/bundler/vendor/fileutils/LICENSE.txt +22 -0
  92. data/lib/bundler/vendor/molinillo/LICENSE +9 -0
  93. data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +2 -2
  94. data/lib/bundler/vendor/net-http-persistent/README.rdoc +82 -0
  95. data/lib/bundler/vendor/thor/LICENSE.md +20 -0
  96. data/lib/bundler/vendor/tsort/LICENSE.txt +22 -0
  97. data/lib/bundler/vendor/tsort/lib/tsort.rb +453 -0
  98. data/lib/bundler/vendor/uri/LICENSE.txt +22 -0
  99. data/lib/bundler/vendored_tsort.rb +4 -0
  100. data/lib/bundler/version.rb +1 -1
  101. data/lib/bundler/worker.rb +19 -4
  102. data/lib/bundler.rb +13 -22
  103. metadata +20 -7
  104. data/lib/bundler/vendor/connection_pool/lib/connection_pool/monotonic_time.rb +0 -66
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.24
4
+ version: 2.2.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Arko
@@ -19,10 +19,10 @@ authors:
19
19
  - Terence Lee
20
20
  - Carl Lerche
21
21
  - Yehuda Katz
22
- autorequire:
22
+ autorequire:
23
23
  bindir: exe
24
24
  cert_chain: []
25
- date: 2021-07-15 00:00:00.000000000 Z
25
+ date: 2021-12-07 00:00:00.000000000 Z
26
26
  dependencies: []
27
27
  description: Bundler manages an application's dependencies through its entire life,
28
28
  across many machines, systematically and repeatably
@@ -83,6 +83,7 @@ files:
83
83
  - lib/bundler/dependency.rb
84
84
  - lib/bundler/deployment.rb
85
85
  - lib/bundler/deprecate.rb
86
+ - lib/bundler/digest.rb
86
87
  - lib/bundler/dsl.rb
87
88
  - lib/bundler/endpoint_specification.rb
88
89
  - lib/bundler/env.rb
@@ -234,8 +235,10 @@ files:
234
235
  - lib/bundler/templates/newgem/newgem.gemspec.tt
235
236
  - lib/bundler/templates/newgem/rspec.tt
236
237
  - lib/bundler/templates/newgem/rubocop.yml.tt
238
+ - lib/bundler/templates/newgem/sig/newgem.rbs.tt
237
239
  - lib/bundler/templates/newgem/spec/newgem_spec.rb.tt
238
240
  - lib/bundler/templates/newgem/spec/spec_helper.rb.tt
241
+ - lib/bundler/templates/newgem/standard.yml.tt
239
242
  - lib/bundler/templates/newgem/test/minitest/newgem_test.rb.tt
240
243
  - lib/bundler/templates/newgem/test/minitest/test_helper.rb.tt
241
244
  - lib/bundler/templates/newgem/test/test-unit/newgem_test.rb.tt
@@ -246,11 +249,15 @@ files:
246
249
  - lib/bundler/ui/shell.rb
247
250
  - lib/bundler/ui/silent.rb
248
251
  - lib/bundler/uri_credentials_filter.rb
252
+ - lib/bundler/vendor/.document
253
+ - lib/bundler/vendor/connection_pool/LICENSE
249
254
  - lib/bundler/vendor/connection_pool/lib/connection_pool.rb
250
- - lib/bundler/vendor/connection_pool/lib/connection_pool/monotonic_time.rb
251
255
  - lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb
252
256
  - lib/bundler/vendor/connection_pool/lib/connection_pool/version.rb
257
+ - lib/bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb
258
+ - lib/bundler/vendor/fileutils/LICENSE.txt
253
259
  - lib/bundler/vendor/fileutils/lib/fileutils.rb
260
+ - lib/bundler/vendor/molinillo/LICENSE
254
261
  - lib/bundler/vendor/molinillo/lib/molinillo.rb
255
262
  - lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb
256
263
  - lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb
@@ -271,10 +278,12 @@ files:
271
278
  - lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb
272
279
  - lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
273
280
  - lib/bundler/vendor/molinillo/lib/molinillo/state.rb
281
+ - lib/bundler/vendor/net-http-persistent/README.rdoc
274
282
  - lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb
275
283
  - lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/connection.rb
276
284
  - lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/pool.rb
277
285
  - lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/timed_stack_multi.rb
286
+ - lib/bundler/vendor/thor/LICENSE.md
278
287
  - lib/bundler/vendor/thor/lib/thor.rb
279
288
  - lib/bundler/vendor/thor/lib/thor/actions.rb
280
289
  - lib/bundler/vendor/thor/lib/thor/actions/create_file.rb
@@ -307,6 +316,9 @@ files:
307
316
  - lib/bundler/vendor/thor/lib/thor/util.rb
308
317
  - lib/bundler/vendor/thor/lib/thor/version.rb
309
318
  - lib/bundler/vendor/tmpdir/lib/tmpdir.rb
319
+ - lib/bundler/vendor/tsort/LICENSE.txt
320
+ - lib/bundler/vendor/tsort/lib/tsort.rb
321
+ - lib/bundler/vendor/uri/LICENSE.txt
310
322
  - lib/bundler/vendor/uri/lib/uri.rb
311
323
  - lib/bundler/vendor/uri/lib/uri/common.rb
312
324
  - lib/bundler/vendor/uri/lib/uri/file.rb
@@ -325,6 +337,7 @@ files:
325
337
  - lib/bundler/vendored_persistent.rb
326
338
  - lib/bundler/vendored_thor.rb
327
339
  - lib/bundler/vendored_tmpdir.rb
340
+ - lib/bundler/vendored_tsort.rb
328
341
  - lib/bundler/vendored_uri.rb
329
342
  - lib/bundler/version.rb
330
343
  - lib/bundler/version_ranges.rb
@@ -339,7 +352,7 @@ metadata:
339
352
  changelog_uri: https://github.com/rubygems/rubygems/blob/master/bundler/CHANGELOG.md
340
353
  homepage_uri: https://bundler.io/
341
354
  source_code_uri: https://github.com/rubygems/rubygems/
342
- post_install_message:
355
+ post_install_message:
343
356
  rdoc_options: []
344
357
  require_paths:
345
358
  - lib
@@ -354,8 +367,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
354
367
  - !ruby/object:Gem::Version
355
368
  version: 2.5.2
356
369
  requirements: []
357
- rubygems_version: 3.2.24
358
- signing_key:
370
+ rubygems_version: 3.2.33
371
+ signing_key:
359
372
  specification_version: 4
360
373
  summary: The best way to manage your application's dependencies
361
374
  test_files: []
@@ -1,66 +0,0 @@
1
- # Global monotonic clock from Concurrent Ruby 1.0.
2
- # Copyright (c) Jerry D'Antonio -- released under the MIT license.
3
- # Slightly modified; used with permission.
4
- # https://github.com/ruby-concurrency/concurrent-ruby
5
-
6
- require 'thread'
7
-
8
- class Bundler::ConnectionPool
9
-
10
- class_definition = Class.new do
11
-
12
- if defined?(Process::CLOCK_MONOTONIC)
13
-
14
- # @!visibility private
15
- def get_time
16
- Process.clock_gettime(Process::CLOCK_MONOTONIC)
17
- end
18
-
19
- elsif defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
20
-
21
- # @!visibility private
22
- def get_time
23
- java.lang.System.nanoTime() / 1_000_000_000.0
24
- end
25
-
26
- else
27
-
28
- # @!visibility private
29
- def initialize
30
- @mutex = Mutex.new
31
- @last_time = Time.now.to_f
32
- end
33
-
34
- # @!visibility private
35
- def get_time
36
- @mutex.synchronize do
37
- now = Time.now.to_f
38
- if @last_time < now
39
- @last_time = now
40
- else # clock has moved back in time
41
- @last_time += 0.000_001
42
- end
43
- end
44
- end
45
- end
46
- end
47
-
48
- ##
49
- # Clock that cannot be set and represents monotonic time since
50
- # some unspecified starting point.
51
- #
52
- # @!visibility private
53
- GLOBAL_MONOTONIC_CLOCK = class_definition.new
54
- private_constant :GLOBAL_MONOTONIC_CLOCK
55
-
56
- class << self
57
- ##
58
- # Returns the current time a tracked by the application monotonic clock.
59
- #
60
- # @return [Float] The current monotonic time when `since` not given else
61
- # the elapsed monotonic time between `since` and the current time
62
- def monotonic_time
63
- GLOBAL_MONOTONIC_CLOCK.get_time
64
- end
65
- end
66
- end