memcached_store 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a12b1ea6af9f6de3759f7b0047c6157f29eb135b
4
- data.tar.gz: 047a0ffb9b09c07dcfac879c42334256701d563f
3
+ metadata.gz: ddd94e96d09a8e7db0cb64b610b78725cef244b0
4
+ data.tar.gz: e740daf203af937f99f52e027d738514513a8e6d
5
5
  SHA512:
6
- metadata.gz: 0e51db356befe61d28702858cb1a592761ee53831e6d7fdea1cdd79e7f8d278c170930d71286b7a12aa9e0a279a21f9b54324454271b9c68b6ac24877141a3b3
7
- data.tar.gz: 99ca802d1588547aed4a632a7ff895c700e853001974de49e256471cb7e5420b083237f593ea2a1b20c73f5027a47c17c151ad1e26dfa14a8e52b55e68d8a31a
6
+ metadata.gz: '091663511c10ab1324309d17e70223b73cf2e3951ee33afd26bac877b975734059fe5c8fe8b34c64a523f84d319dda695eee29ddc572a7379c05fc43abb47b32'
7
+ data.tar.gz: 9e828426cc6b005c994c74a84dfadc460df810271d82ac889189a1cd34b2db5924f38cf9e1c2db455a09b6c0368ee854bd4bfc9f0c233142cd7975781788a4af
@@ -38,11 +38,6 @@ module ActiveSupport
38
38
  extend Strategy::LocalCache
39
39
  end
40
40
 
41
- def logger
42
- return @logger if defined?(@logger)
43
- @logger = ::Rails.logger if defined?(::Rails)
44
- end
45
-
46
41
  def write(*)
47
42
  return true if read_only
48
43
  super
@@ -1,3 +1,4 @@
1
1
  require "memcached"
2
2
  require "active_support"
3
3
  require "active_support/cache"
4
+ require "memcached_store/railtie" if defined?(Rails)
@@ -0,0 +1,7 @@
1
+ module MemcachedStore
2
+ class Railtie < Rails::Railtie
3
+ initializer 'memcached_store.configuration' do
4
+ ActiveSupport::Cache::MemcachedStore.logger ||= Rails.logger
5
+ end
6
+ end
7
+ end
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module MemcachedStore
3
- VERSION = "1.2.1"
3
+ VERSION = "1.2.2"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: memcached_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Camilo Lopez
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-01-31 00:00:00.000000000 Z
14
+ date: 2018-05-24 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
@@ -70,6 +70,7 @@ files:
70
70
  - lib/active_support/cache/memcached_snappy_store.rb
71
71
  - lib/active_support/cache/memcached_store.rb
72
72
  - lib/memcached_store.rb
73
+ - lib/memcached_store/railtie.rb
73
74
  - lib/memcached_store/version.rb
74
75
  homepage: https://github.com/Shopify/memcached_store/
75
76
  licenses: