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 +4 -4
- data/lib/flipper/api/v1/actions/features.rb +13 -13
- data/lib/flipper/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ddb7c8da4fd813e75842680c0860f52db7b42d67d9a8357c4c53c2522cbe270
|
4
|
+
data.tar.gz: 99cf496185ad4e6a481448b05ce93963f6daafd3409bb4516f6125774ae19ea6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
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
|
data/lib/flipper/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
46
|
+
version: 0.20.1
|
47
47
|
description:
|
48
48
|
email:
|
49
49
|
- nunemaker@gmail.com
|