mirror of https://github.com/rails/rails
Require only necessary concurrent-ruby classes.
This commit is contained in:
parent
23bb31b158
commit
23b6f65fd1
|
@ -137,7 +137,7 @@ PATH
|
|||
activesupport (= 5.0.0.alpha)
|
||||
arel (= 7.0.0.alpha)
|
||||
activesupport (5.0.0.alpha)
|
||||
concurrent-ruby (~> 1.0.0.pre3, < 2.0.0)
|
||||
concurrent-ruby (~> 1.0.0.pre5, < 2.0.0)
|
||||
i18n (~> 0.7)
|
||||
json (~> 1.7, >= 1.7.7)
|
||||
method_source
|
||||
|
@ -201,7 +201,7 @@ GEM
|
|||
coffee-script-source
|
||||
execjs
|
||||
coffee-script-source (1.9.1.1)
|
||||
concurrent-ruby (1.0.0.pre4)
|
||||
concurrent-ruby (1.0.0.pre5)
|
||||
connection_pool (2.2.0)
|
||||
dalli (2.7.4)
|
||||
dante (0.2.0)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require 'abstract_unit'
|
||||
require 'concurrent/atomics'
|
||||
require 'concurrent/atomic/count_down_latch'
|
||||
Thread.abort_on_exception = true
|
||||
|
||||
module ActionController
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require 'abstract_unit'
|
||||
require 'concurrent/atomics'
|
||||
require 'concurrent/atomic/count_down_latch'
|
||||
|
||||
module ActionController
|
||||
module Live
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'concurrent'
|
||||
require 'concurrent/map'
|
||||
require 'action_view/path_set'
|
||||
|
||||
module ActionView
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'concurrent'
|
||||
require 'concurrent/map'
|
||||
require 'action_view/dependency_tracker'
|
||||
require 'monitor'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'concurrent'
|
||||
require 'concurrent/map'
|
||||
require 'active_support/core_ext/module/remove_method'
|
||||
require 'active_support/core_ext/module/attribute_accessors'
|
||||
require 'action_view/template/resolver'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require 'action_view/renderer/partial_renderer/collection_caching'
|
||||
require 'concurrent'
|
||||
require 'concurrent/map'
|
||||
|
||||
module ActionView
|
||||
class PartialIteration
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
require 'concurrent'
|
||||
require 'concurrent/map'
|
||||
require 'concurrent/scheduled_task'
|
||||
require 'concurrent/executor/thread_pool_executor'
|
||||
require 'concurrent/utility/processor_counter'
|
||||
|
||||
module ActiveJob
|
||||
# == Active Job Async Job
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
require 'concurrent'
|
||||
require 'active_job/async_job'
|
||||
|
||||
ActiveJob::Base.queue_adapter = :async
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'concurrent'
|
||||
require 'concurrent/map'
|
||||
require 'mutex_m'
|
||||
|
||||
module ActiveModel
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require 'active_support/core_ext/enumerable'
|
||||
require 'active_support/core_ext/string/filters'
|
||||
require 'mutex_m'
|
||||
require 'concurrent'
|
||||
require 'concurrent/map'
|
||||
|
||||
module ActiveRecord
|
||||
# = Active Record Attribute Methods
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require 'thread'
|
||||
require 'concurrent'
|
||||
require 'concurrent/map'
|
||||
require 'monitor'
|
||||
|
||||
module ActiveRecord
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'concurrent'
|
||||
require 'concurrent/map'
|
||||
|
||||
module ActiveRecord
|
||||
module Type
|
||||
|
|
|
@ -26,7 +26,7 @@ require 'models/bird'
|
|||
require 'models/car'
|
||||
require 'models/bulb'
|
||||
require 'rexml/document'
|
||||
require 'concurrent/atomics'
|
||||
require 'concurrent/atomic/count_down_latch'
|
||||
|
||||
class FirstAbstractClass < ActiveRecord::Base
|
||||
self.abstract_class = true
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require "cases/helper"
|
||||
require 'concurrent/atomics'
|
||||
require 'concurrent/atomic/count_down_latch'
|
||||
|
||||
module ActiveRecord
|
||||
module ConnectionAdapters
|
||||
|
|
|
@ -24,6 +24,6 @@ Gem::Specification.new do |s|
|
|||
s.add_dependency 'json', '~> 1.7', '>= 1.7.7'
|
||||
s.add_dependency 'tzinfo', '~> 1.1'
|
||||
s.add_dependency 'minitest', '~> 5.1'
|
||||
s.add_dependency 'concurrent-ruby', '~> 1.0.0.pre3', '< 2.0.0'
|
||||
s.add_dependency 'concurrent-ruby', '~> 1.0.0.pre5', '< 2.0.0'
|
||||
s.add_dependency 'method_source'
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'concurrent/atomics'
|
||||
require 'concurrent/atomic/count_down_latch'
|
||||
|
||||
module ActiveSupport
|
||||
module Concurrency
|
||||
|
@ -8,7 +8,7 @@ module ActiveSupport
|
|||
ActiveSupport::Deprecation.warn("ActiveSupport::Concurrency::Latch is deprecated. Please use Concurrent::CountDownLatch instead.")
|
||||
super(count)
|
||||
end
|
||||
|
||||
|
||||
alias_method :release, :count_down
|
||||
|
||||
def await
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'set'
|
||||
require 'thread'
|
||||
require 'concurrent'
|
||||
require 'concurrent/map'
|
||||
require 'pathname'
|
||||
require 'active_support/core_ext/module/aliasing'
|
||||
require 'active_support/core_ext/module/attribute_accessors'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'concurrent'
|
||||
require 'concurrent/map'
|
||||
require 'active_support/core_ext/array/prepend_and_append'
|
||||
require 'active_support/i18n'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'concurrent'
|
||||
require 'concurrent/map'
|
||||
require 'openssl'
|
||||
|
||||
module ActiveSupport
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require 'mutex_m'
|
||||
require 'concurrent'
|
||||
require 'concurrent/map'
|
||||
|
||||
module ActiveSupport
|
||||
module Notifications
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require 'tzinfo'
|
||||
require 'concurrent'
|
||||
require 'concurrent/map'
|
||||
require 'active_support/core_ext/object/blank'
|
||||
require 'active_support/core_ext/object/try'
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require 'abstract_unit'
|
||||
require 'concurrent/atomics'
|
||||
require 'concurrent/atomic/count_down_latch'
|
||||
require 'active_support/concurrency/share_lock'
|
||||
|
||||
class ShareLockTest < ActiveSupport::TestCase
|
||||
|
|
Loading…
Reference in New Issue