flipper-api 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flipper/version.rb +1 -1
- data/spec/flipper/api/v1/actions/feature_spec.rb +44 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae54a392fa555bc9ee34b7783aff686a17bc9543
|
4
|
+
data.tar.gz: 21c6d2a34ed3789aaea62c84bb86a3558459716c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09ce98c6e834ac45e3b46c4d47936f1cefe5e45facb26ccc1e2e183f45748d32190c7ee75f9cccb37ca3a11b0872af36af9b7f8360c7fa5463f248883d97f6f3
|
7
|
+
data.tar.gz: 1c553a7e7f0acfd12e158f8211ae79b72941317093201e2d73dce235eaa4660e5cba4c108f661bb48c93d834880cdf6f15af4776de8ad1447d31486332296d85
|
data/lib/flipper/version.rb
CHANGED
@@ -109,6 +109,50 @@ RSpec.describe Flipper::Api::V1::Actions::Feature do
|
|
109
109
|
expect(json_response).to eq(expected)
|
110
110
|
end
|
111
111
|
end
|
112
|
+
|
113
|
+
context 'feature with name that ends in "features"' do
|
114
|
+
before do
|
115
|
+
flipper[:search_features].enable
|
116
|
+
get '/features/search_features'
|
117
|
+
end
|
118
|
+
|
119
|
+
it 'responds with correct attributes' do
|
120
|
+
response_body = {
|
121
|
+
'key' => 'search_features',
|
122
|
+
'state' => 'on',
|
123
|
+
'gates' => [
|
124
|
+
{
|
125
|
+
'key' => 'boolean',
|
126
|
+
'name' => 'boolean',
|
127
|
+
'value' => 'true',
|
128
|
+
},
|
129
|
+
{
|
130
|
+
'key' => 'groups',
|
131
|
+
'name' => 'group',
|
132
|
+
'value' => [],
|
133
|
+
},
|
134
|
+
{
|
135
|
+
'key' => 'actors',
|
136
|
+
'name' => 'actor',
|
137
|
+
'value' => [],
|
138
|
+
},
|
139
|
+
{
|
140
|
+
'key' => 'percentage_of_actors',
|
141
|
+
'name' => 'percentage_of_actors',
|
142
|
+
'value' => nil,
|
143
|
+
},
|
144
|
+
{
|
145
|
+
'key' => 'percentage_of_time',
|
146
|
+
'name' => 'percentage_of_time',
|
147
|
+
'value' => nil,
|
148
|
+
},
|
149
|
+
],
|
150
|
+
}
|
151
|
+
|
152
|
+
expect(last_response.status).to eq(200)
|
153
|
+
expect(json_response).to eq(response_body)
|
154
|
+
end
|
155
|
+
end
|
112
156
|
end
|
113
157
|
|
114
158
|
describe 'delete' do
|
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.15.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: 2018-
|
11
|
+
date: 2018-05-12 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.15.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.
|
46
|
+
version: 0.15.0
|
47
47
|
description: Rack middleware that provides an API for the flipper gem.
|
48
48
|
email:
|
49
49
|
- nunemaker@gmail.com
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
version: '0'
|
103
103
|
requirements: []
|
104
104
|
rubyforge_project:
|
105
|
-
rubygems_version: 2.
|
105
|
+
rubygems_version: 2.4.5.4
|
106
106
|
signing_key:
|
107
107
|
specification_version: 4
|
108
108
|
summary: API for the Flipper gem
|