flipper 0.12.0 → 0.12.1

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: cc4f086ed26b95a195d65b0ef2162c09bf7d4878
4
- data.tar.gz: 4360d2c7f218cc2790248497827ac55b866e617f
3
+ metadata.gz: a709cd3b20f82ad564e952d7276cc86b1aee3cbb
4
+ data.tar.gz: 5aceb6dcda6dc85218884bf579723c4351164f81
5
5
  SHA512:
6
- metadata.gz: cafced6f460315fb925d0e8b849dd68bcc1c81bd719075378727095a2921ad80b4b3dce30ed616f5f9b13ac2f7a90e9521e27b01ea72957cc1a44176693caf77
7
- data.tar.gz: 446d33765b51edda016f98ebf4fbf88cbd51ea5248b4e750fc8c26d72bcb24ac2d45b97929e206620b8ddbd47e46b2d57ec8b827a1554a801d4261aeadd8f98d
6
+ metadata.gz: d903d56d5d57bdc4a5d33e438fc980d4735041460c7ad7329097d2e42e538e4ed39d0967a4a0a48f11e99b788c70da66d95d6fd37eeee789aa46b772cbd1a7ae
7
+ data.tar.gz: cf1929cd1633f94df3cbe20a709b63d1c59e9ef6cafb205e9531f9cc9f5ecf03b64f61b59504d3d0048f2c002d2b6b159d90e99a32cb5cee851fc53f0e037d4f
@@ -1,3 +1,13 @@
1
+ ## 0.12.1
2
+
3
+ ### Additions/Changes
4
+
5
+ * Added rollout adapter documentation (https://github.com/jnunemaker/flipper/pull/328).
6
+
7
+ ### Bug Fixes
8
+
9
+ * Fixed ActiveRecord and Sequel adapters to include disabled features for `get_all` (https://github.com/jnunemaker/flipper/pull/327).
10
+
1
11
  ## 0.12
2
12
 
3
13
  ### Additions/Changes
@@ -259,6 +259,15 @@ RSpec.shared_examples_for 'a flipper adapter' do
259
259
  expect(search).to eq(subject.default_config)
260
260
  end
261
261
 
262
+ it 'includes explicitly disabled features when getting all features' do
263
+ flipper.enable(:stats)
264
+ flipper.enable(:search)
265
+ flipper.disable(:search)
266
+
267
+ result = subject.get_all
268
+ expect(result.keys.sort).to eq(%w(search stats))
269
+ end
270
+
262
271
  it 'can double enable an actor without error' do
263
272
  actor = Flipper::Actor.new('Flipper::Actor;22')
264
273
  expect(subject.enable(feature, actor_gate, flipper.actor(actor))).to eq(true)
@@ -254,6 +254,15 @@ module Flipper
254
254
  assert_equal @adapter.default_config, search
255
255
  end
256
256
 
257
+ def test_includes_explicitly_disabled_features_when_getting_all_features
258
+ @flipper.enable(:stats)
259
+ @flipper.enable(:search)
260
+ @flipper.disable(:search)
261
+
262
+ result = @adapter.get_all
263
+ assert_equal %w(search stats), result.keys.sort
264
+ end
265
+
257
266
  def test_can_double_enable_an_actor_without_error
258
267
  actor = Flipper::Actor.new('Flipper::Actor;22')
259
268
  assert_equal true, @adapter.enable(@feature, @actor_gate, @flipper.actor(actor))
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = '0.12.0'.freeze
2
+ VERSION = '0.12.1'.freeze
3
3
  end
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.12.0
4
+ version: 0.12.1
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-01-06 00:00:00.000000000 Z
11
+ date: 2018-01-19 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