flipper-api 0.10.2 → 0.11.0.beta1
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 +12 -12
- data/lib/flipper/api/action.rb +12 -10
- data/lib/flipper/api/action_collection.rb +2 -2
- data/lib/flipper/api/error_response.rb +9 -8
- data/lib/flipper/api/json_params.rb +45 -0
- data/lib/flipper/api/middleware.rb +3 -28
- data/lib/flipper/api/v1/actions/actors_gate.rb +1 -9
- data/lib/flipper/api/v1/actions/boolean_gate.rb +1 -1
- data/lib/flipper/api/v1/actions/clear_feature.rb +21 -0
- data/lib/flipper/api/v1/actions/feature.rb +8 -16
- data/lib/flipper/api/v1/actions/features.rb +26 -8
- data/lib/flipper/api/v1/actions/groups_gate.rb +18 -7
- data/lib/flipper/api/v1/actions/percentage_of_actors_gate.rb +6 -24
- data/lib/flipper/api/v1/actions/percentage_of_time_gate.rb +6 -23
- data/lib/flipper/api/v1/decorators/feature.rb +3 -4
- data/lib/flipper/api.rb +11 -27
- data/lib/flipper/version.rb +1 -1
- data/spec/flipper/api/action_spec.rb +30 -36
- data/spec/flipper/api/json_params_spec.rb +81 -0
- data/spec/flipper/api/v1/actions/actors_gate_spec.rb +33 -22
- data/spec/flipper/api/v1/actions/boolean_gate_spec.rb +2 -2
- data/spec/flipper/api/v1/actions/clear_feature_spec.rb +27 -0
- data/spec/flipper/api/v1/actions/feature_spec.rb +28 -30
- data/spec/flipper/api/v1/actions/features_spec.rb +79 -44
- data/spec/flipper/api/v1/actions/groups_gate_spec.rb +92 -10
- data/spec/flipper/api/v1/actions/percentage_of_actors_gate_spec.rb +62 -24
- data/spec/flipper/api/v1/actions/percentage_of_time_gate_spec.rb +34 -15
- data/spec/flipper/api_spec.rb +55 -0
- metadata +15 -7
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.11.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:
|
11
|
+
date: 2017-04-02 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.11.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.
|
46
|
+
version: 0.11.0.beta1
|
47
47
|
description: Rack middleware that provides an API for the flipper gem.
|
48
48
|
email:
|
49
49
|
- nunemaker@gmail.com
|
@@ -59,9 +59,11 @@ files:
|
|
59
59
|
- lib/flipper/api/actor.rb
|
60
60
|
- lib/flipper/api/error.rb
|
61
61
|
- lib/flipper/api/error_response.rb
|
62
|
+
- lib/flipper/api/json_params.rb
|
62
63
|
- lib/flipper/api/middleware.rb
|
63
64
|
- lib/flipper/api/v1/actions/actors_gate.rb
|
64
65
|
- lib/flipper/api/v1/actions/boolean_gate.rb
|
66
|
+
- lib/flipper/api/v1/actions/clear_feature.rb
|
65
67
|
- lib/flipper/api/v1/actions/feature.rb
|
66
68
|
- lib/flipper/api/v1/actions/features.rb
|
67
69
|
- lib/flipper/api/v1/actions/groups_gate.rb
|
@@ -71,13 +73,16 @@ files:
|
|
71
73
|
- lib/flipper/api/v1/decorators/gate.rb
|
72
74
|
- lib/flipper/version.rb
|
73
75
|
- spec/flipper/api/action_spec.rb
|
76
|
+
- spec/flipper/api/json_params_spec.rb
|
74
77
|
- spec/flipper/api/v1/actions/actors_gate_spec.rb
|
75
78
|
- spec/flipper/api/v1/actions/boolean_gate_spec.rb
|
79
|
+
- spec/flipper/api/v1/actions/clear_feature_spec.rb
|
76
80
|
- spec/flipper/api/v1/actions/feature_spec.rb
|
77
81
|
- spec/flipper/api/v1/actions/features_spec.rb
|
78
82
|
- spec/flipper/api/v1/actions/groups_gate_spec.rb
|
79
83
|
- spec/flipper/api/v1/actions/percentage_of_actors_gate_spec.rb
|
80
84
|
- spec/flipper/api/v1/actions/percentage_of_time_gate_spec.rb
|
85
|
+
- spec/flipper/api_spec.rb
|
81
86
|
homepage: https://github.com/jnunemaker/flipper
|
82
87
|
licenses:
|
83
88
|
- MIT
|
@@ -93,21 +98,24 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
93
98
|
version: '0'
|
94
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
100
|
requirements:
|
96
|
-
- - "
|
101
|
+
- - ">"
|
97
102
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
103
|
+
version: 1.3.1
|
99
104
|
requirements: []
|
100
105
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.
|
106
|
+
rubygems_version: 2.5.2
|
102
107
|
signing_key:
|
103
108
|
specification_version: 4
|
104
109
|
summary: API for the Flipper gem
|
105
110
|
test_files:
|
106
111
|
- spec/flipper/api/action_spec.rb
|
112
|
+
- spec/flipper/api/json_params_spec.rb
|
107
113
|
- spec/flipper/api/v1/actions/actors_gate_spec.rb
|
108
114
|
- spec/flipper/api/v1/actions/boolean_gate_spec.rb
|
115
|
+
- spec/flipper/api/v1/actions/clear_feature_spec.rb
|
109
116
|
- spec/flipper/api/v1/actions/feature_spec.rb
|
110
117
|
- spec/flipper/api/v1/actions/features_spec.rb
|
111
118
|
- spec/flipper/api/v1/actions/groups_gate_spec.rb
|
112
119
|
- spec/flipper/api/v1/actions/percentage_of_actors_gate_spec.rb
|
113
120
|
- spec/flipper/api/v1/actions/percentage_of_time_gate_spec.rb
|
121
|
+
- spec/flipper/api_spec.rb
|