flipper-api 0.19.1 → 0.20.0.beta1

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: e2a20ed74c53f298c743e1196fe68bffe00ddef8138924832fe0da19503ce3f3
4
- data.tar.gz: 50f09fd2472203145805db82c980d73327db8159731fcde34c24e2c3b6665c23
3
+ metadata.gz: 622414d66b3f6c5f78e1b97517a524bda8fcef67b856b94dbe9143f2c311d009
4
+ data.tar.gz: 9e480ccda42da003c30e8686d10909f4c0b5c76bcd35b5d106f26bd1bff16cee
5
5
  SHA512:
6
- metadata.gz: b667d0f3f04d4e8ead757f8165e65f1625db78dee361a25d4c5d102034cda81e93fa35682ed6cd9e0227187a5c2cc28a389e9f34eb3a9515fd364c5938f6939f
7
- data.tar.gz: 132f2460b18d2e29bac3cb21da6c4565d5ca13ae6fef8c64ae7f2ec903a8fc5feabd665de51b8be18df90a7cbf23a1b20cb3810e2482acf6d860e7ecf80b609c
6
+ metadata.gz: 7ffc20e7c12bde3b9a0226cedf53ebb5bbcb4a7d144d001b8117c1afab432564c4d5c91eee54b426259b68e8b347a170ea8343e427125989a0457a4d4475668e
7
+ data.tar.gz: 4d8052fa5976fe0e9b3e38695af6db08fe664b181db4fa6a737f3de1725870c4987a4361206bb3e07dbda9c4e29aeefe8f6bd0f1dd0292d4d2d46d067ce6498d
@@ -11,19 +11,19 @@ module Flipper
11
11
  def get
12
12
  keys = params['keys']
13
13
  features = if keys
14
- names = keys.split(',')
15
- if names.empty?
16
- []
17
- else
18
- existing_feature_names = names.keep_if do |feature_name|
19
- feature_exists?(feature_name)
20
- end
21
-
22
- flipper.preload(existing_feature_names)
23
- end
24
- else
25
- flipper.features
26
- end
14
+ names = keys.split(',')
15
+ if names.empty?
16
+ []
17
+ else
18
+ existing_feature_names = names.keep_if do |feature_name|
19
+ feature_exists?(feature_name)
20
+ end
21
+
22
+ flipper.preload(existing_feature_names)
23
+ end
24
+ else
25
+ flipper.features
26
+ end
27
27
 
28
28
  decorated_features = features.map do |feature|
29
29
  Decorators::Feature.new(feature).as_json
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = '0.19.1'.freeze
2
+ VERSION = '0.20.0.beta1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flipper-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.1
4
+ version: 0.20.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-04 00:00:00.000000000 Z
11
+ date: 2020-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 0.19.1
39
+ version: 0.20.0.beta1
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 0.19.1
46
+ version: 0.20.0.beta1
47
47
  description:
48
48
  email:
49
49
  - nunemaker@gmail.com
@@ -101,9 +101,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
101
  version: '0'
102
102
  required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
- - - ">="
104
+ - - ">"
105
105
  - !ruby/object:Gem::Version
106
- version: '0'
106
+ version: 1.3.1
107
107
  requirements: []
108
108
  rubygems_version: 3.0.3
109
109
  signing_key: