flipper 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 443602b7b9c4e35349dcf1a0f78da58839d7ce63
4
- data.tar.gz: beba70f2d2cadf459ac88a90bddb723e3ccefcef
3
+ metadata.gz: e34faac8f845079716a91656c21c42152e6fca2f
4
+ data.tar.gz: 6520f47773e83622cc34a6c1fa00f7a5909626e8
5
5
  SHA512:
6
- metadata.gz: 5635c48d957d327148478fb2d5b2e1995d902be5c8f9eb80be4bf6d8465c1a8add294a67c53657716680ae5b597b777af0a998dfaf96d17a3ef62d91bc76e486
7
- data.tar.gz: 60d23d5b7a1795828e3fbfd513b593360ab19e4cd6318b4ec6eb6850ab4da9c1dc2c2d4291b5a75e66cdbd458781af1dbc2ba60bf4296f606630e61341d26193
6
+ metadata.gz: e7b87ac273822f26046f712bb745869677e9a92039a14f17fc3457743c963e4359b8439c0196654f6ab2f26be2ae78a062e62e80f1f92661a24b875e90ec9a1c
7
+ data.tar.gz: f79a13fd623d67a12f17a90da97143df4152bbf87ff76c5556439d02f0a62d6c8993dbd6d1850f4267c37a1b29708a204343840b43d5904e1f5b1b06cabe08db
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ gem 'metriks', :require => false
6
6
  gem 'statsd-ruby', :require => false
7
7
  gem 'rspec'
8
8
  gem 'rack-test'
9
- gem 'activesupport', '< 4.0.0', :require => false
9
+ gem 'activesupport', :require => false
10
10
 
11
11
  group(:guard) do
12
12
  gem 'guard'
data/README.md CHANGED
@@ -186,6 +186,8 @@ I plan on supporting [in-memory](https://github.com/jnunemaker/flipper/blob/mast
186
186
  * [mongo adapter](https://github.com/jnunemaker/flipper-mongo)
187
187
  * [redis adapter](https://github.com/jnunemaker/flipper-redis)
188
188
  * [cassanity adapter](https://github.com/jnunemaker/flipper-cassanity)
189
+ * [activerecord 4 adapter](https://github.com/bgentry/flipper-activerecord)
190
+ * [activerecord 3 adapter](https://github.com/jproudman/flipper-activerecord)
189
191
 
190
192
  The basic API for an adapter is this:
191
193
 
@@ -40,6 +40,7 @@ module Flipper
40
40
  feature.gates.each do |gate|
41
41
  delete key(feature, gate)
42
42
  end
43
+ true
43
44
  end
44
45
 
45
46
  # Public
@@ -92,6 +92,10 @@ module Flipper
92
92
  name = '%s (%.1fms)' % [description, event.duration]
93
93
  debug " #{color(name, CYAN, true)} [ #{details} ]"
94
94
  end
95
+
96
+ def logger
97
+ self.class.logger
98
+ end
95
99
  end
96
100
  end
97
101
 
@@ -204,7 +204,7 @@ shared_examples_for 'a flipper adapter' do
204
204
  subject.enable(feature, actors_gate, flipper.actors(25)).should eq(true)
205
205
  subject.enable(feature, random_gate, flipper.random(45)).should eq(true)
206
206
 
207
- subject.clear(feature).any?.should eq(true)
207
+ subject.clear(feature).should eq(true)
208
208
 
209
209
  subject.get(feature).should eq({
210
210
  :boolean => nil,
@@ -216,6 +216,6 @@ shared_examples_for 'a flipper adapter' do
216
216
  end
217
217
 
218
218
  it "does not complain clearing a feature that does not exist in adapter" do
219
- subject.clear(flipper[:stats]).any?.should eq(true)
219
+ subject.clear(flipper[:stats]).should eq(true)
220
220
  end
221
221
  end
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
@@ -176,7 +176,7 @@ describe Flipper do
176
176
  end
177
177
 
178
178
  it "returns true" do
179
- @result.should be_truthy
179
+ @result.should be_true
180
180
  end
181
181
 
182
182
  it "disables feature" do
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.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-07 00:00:00.000000000 Z
11
+ date: 2015-03-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Feature flipper for any adapter
14
14
  email: