flipper 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +5 -0
- data/lib/flipper/spec/shared_adapter_specs.rb +4 -1
- data/lib/flipper/version.rb +1 -1
- data/spec/flipper/adapters/pstore_spec.rb +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a196a39494974789034ad6b513ee2f18573909fb
|
4
|
+
data.tar.gz: 04f3f2db1fa374a7f00220721e48f31f0362b535
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc05f220c23ce4bff918312d62652b6598fe2cab2f0280c300a6508828681dbe84190003cdaf9c2216daa093a4e28c8dd1a7366645a2d62dd6a7aa332751f01a
|
7
|
+
data.tar.gz: f0f2642874e663cc1b778ab90d1646f625f8e79cf5bfad016148114599b5f0d1befba6c92f72b0b59febe0d6321c5230a270e4f35b59f215d00ce100bafd4a2d
|
data/Changelog.md
CHANGED
@@ -198,6 +198,9 @@ shared_examples_for 'a flipper adapter' do
|
|
198
198
|
|
199
199
|
it "can clear all the gate values for a feature" do
|
200
200
|
actor_22 = actor_class.new('22')
|
201
|
+
subject.add(feature)
|
202
|
+
expect(subject.features).to include(feature.key)
|
203
|
+
|
201
204
|
expect(subject.enable(feature, boolean_gate, flipper.boolean)).to eq(true)
|
202
205
|
expect(subject.enable(feature, group_gate, flipper.group(:admins))).to eq(true)
|
203
206
|
expect(subject.enable(feature, actor_gate, flipper.actor(actor_22))).to eq(true)
|
@@ -205,7 +208,7 @@ shared_examples_for 'a flipper adapter' do
|
|
205
208
|
expect(subject.enable(feature, time_gate, flipper.time(45))).to eq(true)
|
206
209
|
|
207
210
|
expect(subject.clear(feature)).to eq(true)
|
208
|
-
|
211
|
+
expect(subject.features).to include(feature.key)
|
209
212
|
expect(subject.get(feature)).to eq({
|
210
213
|
:boolean => nil,
|
211
214
|
:groups => Set.new,
|
data/lib/flipper/version.rb
CHANGED
@@ -5,7 +5,9 @@ require 'flipper/spec/shared_adapter_specs'
|
|
5
5
|
RSpec.describe Flipper::Adapters::PStore do
|
6
6
|
subject {
|
7
7
|
dir = FlipperRoot.join("tmp").tap { |d| d.mkpath }
|
8
|
-
|
8
|
+
pstore_file = dir.join("flipper.pstore")
|
9
|
+
pstore_file.unlink if pstore_file.exist?
|
10
|
+
described_class.new(pstore_file)
|
9
11
|
}
|
10
12
|
|
11
13
|
it_should_behave_like 'a flipper adapter'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flipper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.5
|
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-
|
11
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Feature flipper is the act of enabling/disabling features in your application,
|
14
14
|
ideally without re-deploying or changing anything in your code base. Flipper makes
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.
|
137
|
+
rubygems_version: 2.4.5.1
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: Feature flipper for ANYTHING
|