flipper-api 0.19.1 → 0.20.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: e2a20ed74c53f298c743e1196fe68bffe00ddef8138924832fe0da19503ce3f3
4
- data.tar.gz: 50f09fd2472203145805db82c980d73327db8159731fcde34c24e2c3b6665c23
3
+ metadata.gz: 2ddb7c8da4fd813e75842680c0860f52db7b42d67d9a8357c4c53c2522cbe270
4
+ data.tar.gz: 99cf496185ad4e6a481448b05ce93963f6daafd3409bb4516f6125774ae19ea6
5
5
  SHA512:
6
- metadata.gz: b667d0f3f04d4e8ead757f8165e65f1625db78dee361a25d4c5d102034cda81e93fa35682ed6cd9e0227187a5c2cc28a389e9f34eb3a9515fd364c5938f6939f
7
- data.tar.gz: 132f2460b18d2e29bac3cb21da6c4565d5ca13ae6fef8c64ae7f2ec903a8fc5feabd665de51b8be18df90a7cbf23a1b20cb3810e2482acf6d860e7ecf80b609c
6
+ metadata.gz: b95ff7f0eb69e60cc87ab799344ddc4e56b538b28acb0ca72091dd1e73ca08539964ff2b9616a7bf04a6aa1e72e4517334c9f93a6fbbaed50d67d62e6ac27bcd
7
+ data.tar.gz: c6b4f632a390175cf3224cbdbded8911bbfe1711c303ee74da54b9b4edbd77d72d27eceb546c00335ef8f4ccdde9f09ebdfe6a08320a9607f4b1ee33adfcfcd1
@@ -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.1'.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.1
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-31 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.1
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.1
47
47
  description:
48
48
  email:
49
49
  - nunemaker@gmail.com