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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9ea99d3895ae9a1d9a4a5da5b5a1443410349f0
4
- data.tar.gz: 98e66fd989f4bbb417125ec90c5c2366c8e2e4b5
3
+ metadata.gz: ae54a392fa555bc9ee34b7783aff686a17bc9543
4
+ data.tar.gz: 21c6d2a34ed3789aaea62c84bb86a3558459716c
5
5
  SHA512:
6
- metadata.gz: 8b0953bf0875826482698de521c8017acbbb15f8daeb7a08e41278d3163d0b026c7f282461c3432c7cefb337841cc7522804f5e9a57ecb0caa7d35671f5a8628
7
- data.tar.gz: a838418d5ff915d2b23472ab2e52eba90a6762c776b684a82d904adfd3d094f31ac84ed05b25c0ec6b618314e0a4f7caf02532021e7b5eb3018fe3de8fc181d7
6
+ metadata.gz: 09ce98c6e834ac45e3b46c4d47936f1cefe5e45facb26ccc1e2e183f45748d32190c7ee75f9cccb37ca3a11b0872af36af9b7f8360c7fa5463f248883d97f6f3
7
+ data.tar.gz: 1c553a7e7f0acfd12e158f8211ae79b72941317093201e2d73dce235eaa4660e5cba4c108f661bb48c93d834880cdf6f15af4776de8ad1447d31486332296d85
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = '0.14.0'.freeze
2
+ VERSION = '0.15.0'.freeze
3
3
  end
@@ -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.14.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-03-27 00:00:00.000000000 Z
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.14.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.14.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.6.14
105
+ rubygems_version: 2.4.5.4
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: API for the Flipper gem