flipper-api 0.11.0 → 0.12.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: a4344e480dc61fd1cb514b9e909f2302a21d1724
4
- data.tar.gz: ddf1e2052aa8b488e11db07ac874459fcd574f39
3
+ metadata.gz: '0719237e3ee4fb4097aed2c0ae3c5d58c168a85e'
4
+ data.tar.gz: 895cbaf6a7f618933f5f0ae93b7fbac38e3040ec
5
5
  SHA512:
6
- metadata.gz: de41b8dc64974359472dd8380337f91247c5958d0bf8125d47dcbff5bf4361304a7dc546d4a5352a779167669c315e1de5ba3247402041da6eedbd62e8113a6d
7
- data.tar.gz: 27fd9c36a7ab72b09536491370ac2704f0e52e29ea2acf1bd008b0f0a54e7cfca398d41ddfe4ded795a9276221d825472cb234a97a6932c3168a79c36461d5c6
6
+ metadata.gz: 837deed37ae4d00360188cb515333522119a87f9eaefe8c3b1752d5862eb140152d6735b68633917a06200caa4d0d8080e52bb896c51190f8bfe9194cb62c9fb
7
+ data.tar.gz: ab68facde25ce0ee6bf120df0b29550da17fe7039e9cc55b3d8f835cb9550e598180363fd44e2aafdcdaa4a42738e504364c631c51aca0de006211bd03c60316
@@ -11,7 +11,7 @@ module Flipper
11
11
  def delete
12
12
  feature_name = Rack::Utils.unescape(path_parts[-2])
13
13
  feature = flipper[feature_name]
14
- flipper.adapter.clear(feature)
14
+ feature.clear
15
15
  json_response({}, 204)
16
16
  end
17
17
  end
@@ -35,7 +35,7 @@ module Flipper
35
35
  def post
36
36
  feature_name = params.fetch('name') { json_error_response(:name_invalid) }
37
37
  feature = flipper[feature_name]
38
- flipper.adapter.add(feature)
38
+ feature.add
39
39
  decorated_feature = Decorators::Feature.new(feature)
40
40
  json_response(decorated_feature.as_json, 200)
41
41
  end
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = '0.11.0'.freeze
2
+ VERSION = '0.12.0'.freeze
3
3
  end
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.11.0
4
+ version: 0.12.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: 2017-11-16 00:00:00.000000000 Z
11
+ date: 2018-01-06 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.11.0
39
+ version: 0.12.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.11.0
46
+ version: 0.12.0
47
47
  description: Rack middleware that provides an API for the flipper gem.
48
48
  email:
49
49
  - nunemaker@gmail.com