Require only necessary concurrent-ruby classes.

This commit is contained in:
Jerry D'Antonio 2015-11-02 21:30:50 -05:00
parent 23bb31b158
commit 23b6f65fd1
23 changed files with 27 additions and 25 deletions

View File

@ -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)

View File

@ -1,5 +1,5 @@
require 'abstract_unit'
require 'concurrent/atomics'
require 'concurrent/atomic/count_down_latch'
Thread.abort_on_exception = true
module ActionController

View File

@ -1,5 +1,5 @@
require 'abstract_unit'
require 'concurrent/atomics'
require 'concurrent/atomic/count_down_latch'
module ActionController
module Live

View File

@ -1,4 +1,4 @@
require 'concurrent'
require 'concurrent/map'
require 'action_view/path_set'
module ActionView

View File

@ -1,4 +1,4 @@
require 'concurrent'
require 'concurrent/map'
require 'action_view/dependency_tracker'
require 'monitor'

View File

@ -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'

View File

@ -1,5 +1,5 @@
require 'action_view/renderer/partial_renderer/collection_caching'
require 'concurrent'
require 'concurrent/map'
module ActionView
class PartialIteration

View File

@ -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

View File

@ -1,4 +1,3 @@
require 'concurrent'
require 'active_job/async_job'
ActiveJob::Base.queue_adapter = :async

View File

@ -1,4 +1,4 @@
require 'concurrent'
require 'concurrent/map'
require 'mutex_m'
module ActiveModel

View File

@ -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

View File

@ -1,5 +1,5 @@
require 'thread'
require 'concurrent'
require 'concurrent/map'
require 'monitor'
module ActiveRecord

View File

@ -1,4 +1,4 @@
require 'concurrent'
require 'concurrent/map'
module ActiveRecord
module Type

View File

@ -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

View File

@ -1,5 +1,5 @@
require "cases/helper"
require 'concurrent/atomics'
require 'concurrent/atomic/count_down_latch'
module ActiveRecord
module ConnectionAdapters

View File

@ -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

View File

@ -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

View File

@ -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'

View File

@ -1,4 +1,4 @@
require 'concurrent'
require 'concurrent/map'
require 'active_support/core_ext/array/prepend_and_append'
require 'active_support/i18n'

View File

@ -1,4 +1,4 @@
require 'concurrent'
require 'concurrent/map'
require 'openssl'
module ActiveSupport

View File

@ -1,5 +1,5 @@
require 'mutex_m'
require 'concurrent'
require 'concurrent/map'
module ActiveSupport
module Notifications

View File

@ -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'

View File

@ -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