diff options
author | Koichi ITO <koic.ito@gmail.com> | 2017-07-10 22:39:13 +0900 |
---|---|---|
committer | Koichi ITO <koic.ito@gmail.com> | 2017-07-11 13:12:32 +0900 |
commit | ac717d65a31d05458588b78ea7719b79f8ea69e5 (patch) | |
tree | 4bfbec69de6a5c9f07179029146e216d090dc8cd /activesupport/lib/active_support/cache | |
parent | 2adb2b19fce3a92f2e8e2d6e5a7915888cced09d (diff) | |
download | rails-ac717d65a31d05458588b78ea7719b79f8ea69e5.tar.gz rails-ac717d65a31d05458588b78ea7719b79f8ea69e5.tar.bz2 rails-ac717d65a31d05458588b78ea7719b79f8ea69e5.zip |
[Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`
Diffstat (limited to 'activesupport/lib/active_support/cache')
6 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/cache/file_store.rb b/activesupport/lib/active_support/cache/file_store.rb index 87182e0254..28df2c066e 100644 --- a/activesupport/lib/active_support/cache/file_store.rb +++ b/activesupport/lib/active_support/cache/file_store.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + require_relative "../core_ext/marshal" require_relative "../core_ext/file/atomic" require_relative "../core_ext/string/conversions" diff --git a/activesupport/lib/active_support/cache/mem_cache_store.rb b/activesupport/lib/active_support/cache/mem_cache_store.rb index de05dde8d4..73924aaaf9 100644 --- a/activesupport/lib/active_support/cache/mem_cache_store.rb +++ b/activesupport/lib/active_support/cache/mem_cache_store.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + begin require "dalli" rescue LoadError => e diff --git a/activesupport/lib/active_support/cache/memory_store.rb b/activesupport/lib/active_support/cache/memory_store.rb index e1fee72595..564ac17241 100644 --- a/activesupport/lib/active_support/cache/memory_store.rb +++ b/activesupport/lib/active_support/cache/memory_store.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + require "monitor" module ActiveSupport diff --git a/activesupport/lib/active_support/cache/null_store.rb b/activesupport/lib/active_support/cache/null_store.rb index 10ffbb84ea..1a5983db43 100644 --- a/activesupport/lib/active_support/cache/null_store.rb +++ b/activesupport/lib/active_support/cache/null_store.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + module ActiveSupport module Cache # A cache store implementation which doesn't actually store anything. Useful in diff --git a/activesupport/lib/active_support/cache/strategy/local_cache.rb b/activesupport/lib/active_support/cache/strategy/local_cache.rb index f3b65bcdef..a3eef1190a 100644 --- a/activesupport/lib/active_support/cache/strategy/local_cache.rb +++ b/activesupport/lib/active_support/cache/strategy/local_cache.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + require_relative "../../core_ext/object/duplicable" require_relative "../../core_ext/string/inflections" require_relative "../../per_thread_registry" diff --git a/activesupport/lib/active_support/cache/strategy/local_cache_middleware.rb b/activesupport/lib/active_support/cache/strategy/local_cache_middleware.rb index a53e268a92..62542bdb22 100644 --- a/activesupport/lib/active_support/cache/strategy/local_cache_middleware.rb +++ b/activesupport/lib/active_support/cache/strategy/local_cache_middleware.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + require "rack/body_proxy" require "rack/utils" |