brew vendor-gems: commit updates.

This commit is contained in:
BrewTestBot 2023-03-02 22:16:14 +00:00
parent 65972b53e2
commit 7d4991cd9e
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
120 changed files with 12 additions and 4 deletions

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