flipper-api 0.17.2 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/flipper-api.gemspec +2 -3
- data/lib/flipper/api/v1/decorators/feature.rb +5 -3
- data/lib/flipper/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5786d14f2e90d02edd5861dd886113570984be4e6172473c86480e1b19706a78
|
4
|
+
data.tar.gz: d5b3d7996165c36a8223218a413ed7b9e1ee061228e12459ed91e739fcd241a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78dd2b0565031689b1984c8d5bde1da3db5f96850e527916621fd8dc11956e443643ff536703560acec8c452f384bb94f348b022d7fd614756e6bc5ab6263e5a
|
7
|
+
data.tar.gz: ff989c5a4498f16895eba22b137cd441ce14cce3fdc595d5f96f2c8ac9b66d4504c4f6293ed4001d648f84d33b9f34c86db08370a0ed9ee5dbea7c05c11a5e59
|
data/flipper-api.gemspec
CHANGED
@@ -10,11 +10,10 @@ 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
|
-
gem.files = `git ls-files`.split("\n").select(&flipper_api_files) + ['lib/flipper/version.rb']
|
17
|
-
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n").select(&flipper_api_files)
|
15
|
+
gem.files = `git ls-files`.split("\n").select(&flipper_api_files) + ['lib/flipper/version.rb']
|
16
|
+
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n").select(&flipper_api_files)
|
18
17
|
gem.name = 'flipper-api'
|
19
18
|
gem.require_paths = ['lib']
|
20
19
|
gem.version = Flipper::VERSION
|
@@ -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.18.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: 2020-
|
11
|
+
date: 2020-06-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.18.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.18.0
|
47
|
+
description:
|
48
48
|
email:
|
49
49
|
- nunemaker@gmail.com
|
50
50
|
executables: []
|