Merge pull request #14844 from Homebrew/dependabot/bundler/Library/Homebrew/concurrent-ruby-1.2.2
This commit is contained in:
commit
2028588400
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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")
|
||||
|
||||
@ -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
|
||||
|
||||
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user