cacheflow 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: f585f3cf94b24eb7c3d9282c4f726f2218177e14006e74162c2ccafc2da07f24
4
- data.tar.gz: 43e447b62e8c3d539f6aed7e894492c9d21788f2405eccffb032343776e2ccf0
3
+ metadata.gz: 6080f46e40efef7ff1bea205ff685aecd6057996c3b8dc98601883b22a323791
4
+ data.tar.gz: b78f678270ea70bdf0f55de264337302c39ecce2e9c62835bdd02aa8ab7b33d8
5
5
  SHA512:
6
- metadata.gz: d91114836fbdb19720357849834ceae7e358480b1ead162bf44c88e8c9cbbf6ffca789400a8141412a39a2ac049086b77fb97d1a47e1b37393dec22842ba56ef
7
- data.tar.gz: 6b13c5830438a9d4ef652b87f2b602e37a5f235622a7ef05a4b435c0d572f758cec72743c9982d4d96a002147d67bc7708dbeeb1db88ddddff27cf113e9e2122
6
+ metadata.gz: 1bb9f8cb1232710849b248a52abe2d85a223bfd49c8bf90b5d325102b1ea35e71363c52598d727e0cd2fa6ca9a6952127ce059aba59262cc1295dea3f585863e
7
+ data.tar.gz: 79febce9eafa8f777f4ca4c86a166be1e17c5cef655250d4fd12bfe3ccbcbae2d9f18bddf30ac15b50296a621796f80a10709b79b28bde4837f2188b8e6a1bee
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.1 (2022-01-12)
2
+
3
+ - Fixed deprecation warning with Dalli 3
4
+
1
5
  ## 0.2.0 (2022-01-10)
2
6
 
3
7
  - Dropped support for Ruby < 2.6 and Active Support < 5.2
data/README.md CHANGED
@@ -6,12 +6,14 @@ Colorized logging for Memcached and Redis
6
6
 
7
7
  Works with the Rails cache, as well as [Dalli](https://github.com/petergoldstein/dalli) and [Redis](https://github.com/redis/redis-rb) clients directly
8
8
 
9
+ [![Build Status](https://github.com/ankane/cacheflow/workflows/build/badge.svg?branch=master)](https://github.com/ankane/cacheflow/actions)
10
+
9
11
  ## Installation
10
12
 
11
13
  Add this line to your application’s Gemfile:
12
14
 
13
15
  ```ruby
14
- gem 'cacheflow', group: :development
16
+ gem "cacheflow", group: :development
15
17
  ```
16
18
 
17
19
  When your log level is set to `DEBUG` (Rails default in development), all commands to Memcached and Redis are logged.
@@ -23,5 +23,9 @@ module Cacheflow
23
23
  end
24
24
  end
25
25
 
26
- Dalli::Server.prepend(Cacheflow::Memcached::Notifications)
26
+ if defined?(Dalli::Protocol::Binary)
27
+ Dalli::Protocol::Binary.prepend(Cacheflow::Memcached::Notifications)
28
+ else
29
+ Dalli::Server.prepend(Cacheflow::Memcached::Notifications)
30
+ end
27
31
  Cacheflow::Memcached::Instrumenter.attach_to(:memcached)
@@ -1,3 +1,3 @@
1
1
  module Cacheflow
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/lib/cacheflow.rb CHANGED
@@ -1,4 +1,7 @@
1
+ # dependencies
1
2
  require "active_support"
3
+
4
+ # modules
2
5
  require "cacheflow/version"
3
6
 
4
7
  module Cacheflow
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cacheflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport