flipper-redis 0.23.1 → 0.25.0

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: 469aee19d09ded043a929075fecf9c67b7e1ea61097da6509c4fd6470489f60b
4
- data.tar.gz: be637c1663eedca518817c0e08c3ee437edf668f316ebd3b4de38edfb6090f75
3
+ metadata.gz: baa4b66f233743285b69093cdfb36a82fa5fef3d37b0e81ef8b69c0b6008ec7e
4
+ data.tar.gz: 602df30e8032eee9ac75758021b0b950623d37db630dfcf81f5acbac8f446954
5
5
  SHA512:
6
- metadata.gz: d508d33094dcdd514dade5bde05e3cd1903d5d485b9fdc548863b50fbea53c0c92d32fefc202d0a73b3f50ce8d8c86b637a811e90aff5295382e008adb3945ac
7
- data.tar.gz: ea9c330b820bf500990e0602d2077a34fde1a25fba31b9ab7b10f9378387aad6f8ab6882a0871711b7dd6db2cf051ff96d490125be6cd6592d8270849ecfada1
6
+ metadata.gz: 1f227afce16033dd1daf595b70fa617791d02c47b03655973565a032b483a290641eff8d996bff9c27ee02f35f5ed7f5fa508925bcd470b3de5591007d5f7319
7
+ data.tar.gz: 71ec9752d9a75eea3bd7b762900f03105e41b15abe45844a8c53b7c5079e0fa92b14a096a01c19d2d5763a010d82535b5611619687ac014ec04c2d8daae36c6d
@@ -21,5 +21,5 @@ Gem::Specification.new do |gem|
21
21
  gem.metadata = Flipper::METADATA
22
22
 
23
23
  gem.add_dependency 'flipper', "~> #{Flipper::VERSION}"
24
- gem.add_dependency 'redis', '>= 2.2', '< 5'
24
+ gem.add_dependency 'redis', '>= 3.0', '< 5'
25
25
  end
@@ -125,14 +125,14 @@ module Flipper
125
125
  # Private: Gets a hash of fields => values for the given feature.
126
126
  #
127
127
  # Returns a Hash of fields => values.
128
- def doc_for(feature)
129
- @client.hgetall(feature.key)
128
+ def doc_for(feature, pipeline: @client)
129
+ pipeline.hgetall(feature.key)
130
130
  end
131
131
 
132
132
  def docs_for(features)
133
- @client.pipelined do
133
+ @client.pipelined do |pipeline|
134
134
  features.each do |feature|
135
- doc_for(feature)
135
+ doc_for(feature, pipeline: pipeline)
136
136
  end
137
137
  end
138
138
  end
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = '0.23.1'.freeze
2
+ VERSION = '0.25.0'.freeze
3
3
  end
@@ -25,7 +25,7 @@ RSpec.describe Flipper::Adapters::Redis do
25
25
  Flipper.configuration = nil
26
26
  Flipper.instance = nil
27
27
 
28
- load 'flipper/adapters/redis.rb'
28
+ silence { load 'flipper/adapters/redis.rb' }
29
29
 
30
30
  expect(Flipper.adapter.adapter).to be_a(Flipper::Adapters::Redis)
31
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flipper-redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.1
4
+ version: 0.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-19 00:00:00.000000000 Z
11
+ date: 2022-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flipper
@@ -16,21 +16,21 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.23.1
19
+ version: 0.25.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.23.1
26
+ version: 0.25.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: redis
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '2.2'
33
+ version: '3.0'
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
36
  version: '5'
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: '2.2'
43
+ version: '3.0'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '5'