Merge pull request #14844 from Homebrew/dependabot/bundler/Library/Homebrew/concurrent-ruby-1.2.2

This commit is contained in:
Mike McQuaid 2023-03-02 22:42:32 +00:00 committed by GitHub
commit 2028588400
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
122 changed files with 14 additions and 5 deletions

View File

@ -17,7 +17,7 @@ GEM
coderay (1.1.3)
commander (4.6.0)
highline (~> 2.0.0)
concurrent-ruby (1.2.1)
concurrent-ruby (1.2.2)
connection_pool (2.3.0)
did_you_mean (1.6.3)
diff-lcs (1.5.0)

View File

@ -485,6 +485,7 @@ class Concurrent::Collection::NonConcurrentMapBackend
def dupped_backend; end
def initialize_copy(other); end
def pair?(key, expected_value); end
def set_backend(default_proc); end
def store_computed_value(key, new_value); end
end

View File

@ -23,7 +23,7 @@ kernel = (class << ::Kernel; self; end)
k.send(:private, :require) if private_require
end
end
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/concurrent-ruby-1.2.1/lib/concurrent-ruby")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/concurrent-ruby-1.2.2/lib/concurrent-ruby")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/i18n-1.12.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/minitest-5.17.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/tzinfo-2.0.6/lib")

View File

@ -14,7 +14,7 @@ module Concurrent
# reasons.
def initialize(options = nil, &default_proc)
validate_options_hash!(options) if options.kind_of?(::Hash)
@backend = Hash.new(&default_proc)
set_backend(default_proc)
@default_proc = default_proc
end
@ -113,9 +113,17 @@ module Concurrent
private
def set_backend(default_proc)
if default_proc
@backend = ::Hash.new { |_h, key| default_proc.call(self, key) }
else
@backend = {}
end
end
def initialize_copy(other)
super
@backend = Hash.new(&@default_proc)
set_backend(@default_proc)
self
end

Some files were not shown because too many files have changed in this diff Show More