flipper-api 0.16.1 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/flipper-api.gemspec +0 -1
- data/lib/flipper/api/v1/decorators/feature.rb +5 -3
- data/lib/flipper/version.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: '08461dd21ab6b4fb7ab7921157badc993a6c97e6de03d2dd3eebaeecef3b91bf'
|
4
|
+
data.tar.gz: 350c857406ef2b41385625d851aedf1ab5a3563954dca634f87fd2e70ec1273e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77471902ea2139e432317d42413f1afefcebbfd247abf2eed0474f8b42b549f386daaebc0b66c88dcd8f3b59ed4392df15525d2721c2f19ec160c8fa9ffcd157
|
7
|
+
data.tar.gz: 168e6f33cb6eb8a4a9af894dc9175bfe2310d2770f55da260d40166285140a8ab37ebeee69feee26723837be0646603771bd691cb5464258adaacecd1c81c48f
|
data/flipper-api.gemspec
CHANGED
@@ -10,7 +10,6 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.authors = ['John Nunemaker']
|
11
11
|
gem.email = ['nunemaker@gmail.com']
|
12
12
|
gem.summary = 'API for the Flipper gem'
|
13
|
-
gem.description = 'Rack middleware that provides an API for the flipper gem.'
|
14
13
|
gem.license = 'MIT'
|
15
14
|
gem.homepage = 'https://github.com/jnunemaker/flipper'
|
16
15
|
gem.files = `git ls-files`.split("\n").select(&flipper_api_files) + ['lib/flipper/version.rb']
|
@@ -12,12 +12,14 @@ module Flipper
|
|
12
12
|
# Public: Returns instance as hash that is ready to be json dumped.
|
13
13
|
def as_json
|
14
14
|
gate_values = feature.adapter.get(self)
|
15
|
+
gates_json = gates.map do |gate|
|
16
|
+
Decorators::Gate.new(gate, gate_values[gate.key]).as_json
|
17
|
+
end
|
18
|
+
|
15
19
|
{
|
16
20
|
'key' => key,
|
17
21
|
'state' => state.to_s,
|
18
|
-
'gates' =>
|
19
|
-
Decorators::Gate.new(gate, gate_values[gate.key]).as_json
|
20
|
-
end,
|
22
|
+
'gates' => gates_json,
|
21
23
|
}
|
22
24
|
end
|
23
25
|
end
|
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.19.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:
|
11
|
+
date: 2020-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -36,15 +36,15 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 0.
|
39
|
+
version: 0.19.0
|
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.
|
47
|
-
description:
|
46
|
+
version: 0.19.0
|
47
|
+
description:
|
48
48
|
email:
|
49
49
|
- nunemaker@gmail.com
|
50
50
|
executables: []
|
@@ -105,8 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
|
-
|
109
|
-
rubygems_version: 2.4.5.4
|
108
|
+
rubygems_version: 3.0.3
|
110
109
|
signing_key:
|
111
110
|
specification_version: 4
|
112
111
|
summary: API for the Flipper gem
|