rollout 2.4.4 → 2.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/lib/rollout.rb +2 -0
- data/lib/rollout/version.rb +1 -1
- data/spec/rollout_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acf240ab59dcfdebec335aee19df882f8936e7de5b7a0c347a3c28cfa8b3fc6d
|
4
|
+
data.tar.gz: 2ca7c2d7c761c6e539790421547b5e8eb82bbe8b56dca246975f6adc0773866d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc61fd463b60a94e85b5b141ad5fb7431f37249d9b899739b52524bd0fc28106135e039cbfe0130a0c35d0934b50339e426e38255516381636ec1ff226068e49
|
7
|
+
data.tar.gz: 5babd80ccaab8b4f7b4efeac63e5941709913014e5d5d37f71c5f8b04ae62d09a38e50f7f6236df8d09ce359384cb0d877452209a1b63b69284fd649bb49033c
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/lib/rollout.rb
CHANGED
@@ -264,6 +264,8 @@ class Rollout
|
|
264
264
|
end
|
265
265
|
|
266
266
|
def multi_get(*features)
|
267
|
+
return [] if features.empty?
|
268
|
+
|
267
269
|
feature_keys = features.map { |feature| key(feature) }
|
268
270
|
@storage.mget(*feature_keys).map.with_index { |string, index| Feature.new(features[index], string, @options) }
|
269
271
|
end
|
data/lib/rollout/version.rb
CHANGED
data/spec/rollout_spec.rb
CHANGED
@@ -605,6 +605,12 @@ RSpec.describe "Rollout" do
|
|
605
605
|
expect(features[2].percentage).to eq 100
|
606
606
|
expect(features.size).to eq 3
|
607
607
|
end
|
608
|
+
|
609
|
+
describe 'when given feature keys is empty' do
|
610
|
+
it 'returns empty array' do
|
611
|
+
expect(@rollout.multi_get(*[])).to match_array([])
|
612
|
+
end
|
613
|
+
end
|
608
614
|
end
|
609
615
|
|
610
616
|
describe "#set_feature_data" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rollout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Golick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|