brew vendor-gems: commit updates.
This commit is contained in:
parent
65972b53e2
commit
7d4991cd9e
@ -23,7 +23,7 @@ kernel = (class << ::Kernel; self; end)
|
|||||||
k.send(:private, :require) if private_require
|
k.send(:private, :require) if private_require
|
||||||
end
|
end
|
||||||
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/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/minitest-5.17.0/lib")
|
||||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/tzinfo-2.0.6/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.
|
# reasons.
|
||||||
def initialize(options = nil, &default_proc)
|
def initialize(options = nil, &default_proc)
|
||||||
validate_options_hash!(options) if options.kind_of?(::Hash)
|
validate_options_hash!(options) if options.kind_of?(::Hash)
|
||||||
@backend = Hash.new(&default_proc)
|
set_backend(default_proc)
|
||||||
@default_proc = default_proc
|
@default_proc = default_proc
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -113,9 +113,17 @@ module Concurrent
|
|||||||
|
|
||||||
private
|
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)
|
def initialize_copy(other)
|
||||||
super
|
super
|
||||||
@backend = Hash.new(&@default_proc)
|
set_backend(@default_proc)
|
||||||
self
|
self
|
||||||
end
|
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