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.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/flipper-api.gemspec +12 -12
  3. data/lib/flipper/api/action.rb +12 -10
  4. data/lib/flipper/api/action_collection.rb +2 -2
  5. data/lib/flipper/api/error_response.rb +9 -8
  6. data/lib/flipper/api/json_params.rb +45 -0
  7. data/lib/flipper/api/middleware.rb +3 -28
  8. data/lib/flipper/api/v1/actions/actors_gate.rb +1 -9
  9. data/lib/flipper/api/v1/actions/boolean_gate.rb +1 -1
  10. data/lib/flipper/api/v1/actions/clear_feature.rb +21 -0
  11. data/lib/flipper/api/v1/actions/feature.rb +8 -16
  12. data/lib/flipper/api/v1/actions/features.rb +26 -8
  13. data/lib/flipper/api/v1/actions/groups_gate.rb +18 -7
  14. data/lib/flipper/api/v1/actions/percentage_of_actors_gate.rb +6 -24
  15. data/lib/flipper/api/v1/actions/percentage_of_time_gate.rb +6 -23
  16. data/lib/flipper/api/v1/decorators/feature.rb +3 -4
  17. data/lib/flipper/api.rb +11 -27
  18. data/lib/flipper/version.rb +1 -1
  19. data/spec/flipper/api/action_spec.rb +30 -36
  20. data/spec/flipper/api/json_params_spec.rb +81 -0
  21. data/spec/flipper/api/v1/actions/actors_gate_spec.rb +33 -22
  22. data/spec/flipper/api/v1/actions/boolean_gate_spec.rb +2 -2
  23. data/spec/flipper/api/v1/actions/clear_feature_spec.rb +27 -0
  24. data/spec/flipper/api/v1/actions/feature_spec.rb +28 -30
  25. data/spec/flipper/api/v1/actions/features_spec.rb +79 -44
  26. data/spec/flipper/api/v1/actions/groups_gate_spec.rb +92 -10
  27. data/spec/flipper/api/v1/actions/percentage_of_actors_gate_spec.rb +62 -24
  28. data/spec/flipper/api/v1/actions/percentage_of_time_gate_spec.rb +34 -15
  29. data/spec/flipper/api_spec.rb +55 -0
  30. 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.10.2
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: 2016-12-08 00:00:00.000000000 Z
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.10.2
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.10.2
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: '0'
103
+ version: 1.3.1
99
104
  requirements: []
100
105
  rubyforge_project:
101
- rubygems_version: 2.4.5.1
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