bundler 2.2.29 → 2.2.30
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bundler might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -1
- data/README.md +1 -1
- data/lib/bundler/build_metadata.rb +2 -2
- data/lib/bundler/cli/info.rb +11 -4
- data/lib/bundler/cli/issue.rb +4 -3
- data/lib/bundler/compact_index_client.rb +2 -2
- data/lib/bundler/definition.rb +10 -6
- data/lib/bundler/digest.rb +71 -0
- data/lib/bundler/errors.rb +18 -2
- data/lib/bundler/fetcher.rb +2 -1
- data/lib/bundler/friendly_errors.rb +5 -30
- data/lib/bundler/gem_helper.rb +5 -16
- data/lib/bundler/rubygems_ext.rb +4 -0
- data/lib/bundler/rubygems_gem_installer.rb +20 -4
- data/lib/bundler/rubygems_integration.rb +26 -9
- data/lib/bundler/runtime.rb +1 -1
- data/lib/bundler/source/git.rb +3 -1
- data/lib/bundler/source/rubygems.rb +35 -71
- data/lib/bundler/vendor/connection_pool/LICENSE +20 -0
- data/lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb +19 -21
- data/lib/bundler/vendor/connection_pool/lib/connection_pool/version.rb +1 -1
- data/lib/bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb +57 -0
- data/lib/bundler/vendor/connection_pool/lib/connection_pool.rb +39 -74
- data/lib/bundler/vendor/fileutils/LICENSE.txt +22 -0
- data/lib/bundler/vendor/molinillo/LICENSE +9 -0
- data/lib/bundler/vendor/net-http-persistent/README.rdoc +82 -0
- data/lib/bundler/vendor/thor/LICENSE.md +20 -0
- data/lib/bundler/vendor/uri/LICENSE.txt +22 -0
- data/lib/bundler/version.rb +1 -1
- data/lib/bundler/worker.rb +2 -2
- data/lib/bundler.rb +2 -1
- metadata +14 -7
- data/lib/bundler/vendor/connection_pool/lib/connection_pool/monotonic_time.rb +0 -66
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2008 Yehuda Katz, Eric Hodel, et al.
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (C) 1993-2013 Yukihiro Matsumoto. All rights reserved.
|
2
|
+
|
3
|
+
Redistribution and use in source and binary forms, with or without
|
4
|
+
modification, are permitted provided that the following conditions
|
5
|
+
are met:
|
6
|
+
1. Redistributions of source code must retain the above copyright
|
7
|
+
notice, this list of conditions and the following disclaimer.
|
8
|
+
2. Redistributions in binary form must reproduce the above copyright
|
9
|
+
notice, this list of conditions and the following disclaimer in the
|
10
|
+
documentation and/or other materials provided with the distribution.
|
11
|
+
|
12
|
+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
13
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
14
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
15
|
+
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
16
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
17
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
18
|
+
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
19
|
+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
20
|
+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
21
|
+
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
22
|
+
SUCH DAMAGE.
|
data/lib/bundler/version.rb
CHANGED
data/lib/bundler/worker.rb
CHANGED
@@ -21,8 +21,8 @@ module Bundler
|
|
21
21
|
# @param func [Proc] job to run in inside the worker pool
|
22
22
|
def initialize(size, name, func)
|
23
23
|
@name = name
|
24
|
-
@request_queue = Queue.new
|
25
|
-
@response_queue = Queue.new
|
24
|
+
@request_queue = Thread::Queue.new
|
25
|
+
@response_queue = Thread::Queue.new
|
26
26
|
@func = func
|
27
27
|
@size = size
|
28
28
|
@threads = nil
|
data/lib/bundler.rb
CHANGED
@@ -37,12 +37,13 @@ module Bundler
|
|
37
37
|
environment_preserver = EnvironmentPreserver.from_env
|
38
38
|
ORIGINAL_ENV = environment_preserver.restore
|
39
39
|
environment_preserver.replace_with_backup
|
40
|
-
SUDO_MUTEX = Mutex.new
|
40
|
+
SUDO_MUTEX = Thread::Mutex.new
|
41
41
|
|
42
42
|
autoload :Definition, File.expand_path("bundler/definition", __dir__)
|
43
43
|
autoload :Dependency, File.expand_path("bundler/dependency", __dir__)
|
44
44
|
autoload :DepProxy, File.expand_path("bundler/dep_proxy", __dir__)
|
45
45
|
autoload :Deprecate, File.expand_path("bundler/deprecate", __dir__)
|
46
|
+
autoload :Digest, File.expand_path("bundler/digest", __dir__)
|
46
47
|
autoload :Dsl, File.expand_path("bundler/dsl", __dir__)
|
47
48
|
autoload :EndpointSpecification, File.expand_path("bundler/endpoint_specification", __dir__)
|
48
49
|
autoload :Env, File.expand_path("bundler/env", __dir__)
|
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.
|
4
|
+
version: 2.2.30
|
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-10-
|
25
|
+
date: 2021-10-26 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
|
@@ -246,11 +247,14 @@ files:
|
|
246
247
|
- lib/bundler/ui/shell.rb
|
247
248
|
- lib/bundler/ui/silent.rb
|
248
249
|
- lib/bundler/uri_credentials_filter.rb
|
250
|
+
- lib/bundler/vendor/connection_pool/LICENSE
|
249
251
|
- lib/bundler/vendor/connection_pool/lib/connection_pool.rb
|
250
|
-
- lib/bundler/vendor/connection_pool/lib/connection_pool/monotonic_time.rb
|
251
252
|
- lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb
|
252
253
|
- lib/bundler/vendor/connection_pool/lib/connection_pool/version.rb
|
254
|
+
- lib/bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb
|
255
|
+
- lib/bundler/vendor/fileutils/LICENSE.txt
|
253
256
|
- lib/bundler/vendor/fileutils/lib/fileutils.rb
|
257
|
+
- lib/bundler/vendor/molinillo/LICENSE
|
254
258
|
- lib/bundler/vendor/molinillo/lib/molinillo.rb
|
255
259
|
- lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb
|
256
260
|
- lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb
|
@@ -271,10 +275,12 @@ files:
|
|
271
275
|
- lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb
|
272
276
|
- lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb
|
273
277
|
- lib/bundler/vendor/molinillo/lib/molinillo/state.rb
|
278
|
+
- lib/bundler/vendor/net-http-persistent/README.rdoc
|
274
279
|
- lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb
|
275
280
|
- lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/connection.rb
|
276
281
|
- lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/pool.rb
|
277
282
|
- lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/timed_stack_multi.rb
|
283
|
+
- lib/bundler/vendor/thor/LICENSE.md
|
278
284
|
- lib/bundler/vendor/thor/lib/thor.rb
|
279
285
|
- lib/bundler/vendor/thor/lib/thor/actions.rb
|
280
286
|
- lib/bundler/vendor/thor/lib/thor/actions/create_file.rb
|
@@ -307,6 +313,7 @@ files:
|
|
307
313
|
- lib/bundler/vendor/thor/lib/thor/util.rb
|
308
314
|
- lib/bundler/vendor/thor/lib/thor/version.rb
|
309
315
|
- lib/bundler/vendor/tmpdir/lib/tmpdir.rb
|
316
|
+
- lib/bundler/vendor/uri/LICENSE.txt
|
310
317
|
- lib/bundler/vendor/uri/lib/uri.rb
|
311
318
|
- lib/bundler/vendor/uri/lib/uri/common.rb
|
312
319
|
- lib/bundler/vendor/uri/lib/uri/file.rb
|
@@ -339,7 +346,7 @@ metadata:
|
|
339
346
|
changelog_uri: https://github.com/rubygems/rubygems/blob/master/bundler/CHANGELOG.md
|
340
347
|
homepage_uri: https://bundler.io/
|
341
348
|
source_code_uri: https://github.com/rubygems/rubygems/
|
342
|
-
post_install_message:
|
349
|
+
post_install_message:
|
343
350
|
rdoc_options: []
|
344
351
|
require_paths:
|
345
352
|
- lib
|
@@ -354,8 +361,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
354
361
|
- !ruby/object:Gem::Version
|
355
362
|
version: 2.5.2
|
356
363
|
requirements: []
|
357
|
-
rubygems_version: 3.2.
|
358
|
-
signing_key:
|
364
|
+
rubygems_version: 3.2.30
|
365
|
+
signing_key:
|
359
366
|
specification_version: 4
|
360
367
|
summary: The best way to manage your application's dependencies
|
361
368
|
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
|