flipper 0.23.1 → 0.24.0
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 +4 -4
- data/.github/workflows/ci.yml +8 -4
- data/.github/workflows/examples.yml +13 -3
- data/Changelog.md +10 -0
- data/Dockerfile +1 -1
- data/lib/flipper/types/group.rb +8 -1
- data/lib/flipper/version.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f74cad5c410ce4146e29c11d692fb97d500c54301af8dab6b1c4b0da95ae79c8
|
|
4
|
+
data.tar.gz: 5e6f5613ea2166f1899e553601c555a87b9f47de169ef45b5f19c0d3aa77b3c9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 44f19778f0d3e35f99b909b4bd2fa2603b596b4cff77eb70d806c73453c1a1cf4a3d79ddf5c4ef593464099134505507152e1f392174f525e4815d5ca5592371
|
|
7
|
+
data.tar.gz: e999db32f892bbbf307c38f65b98b149489c830ba1b2530f2f5d308b837eb8a4d5d1f49f95242047d989e93b253a0599df8929fece5d78a9d959a2cad9dfac52
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -15,13 +15,17 @@ jobs:
|
|
|
15
15
|
--health-retries 5
|
|
16
16
|
strategy:
|
|
17
17
|
matrix:
|
|
18
|
-
ruby: ['2.
|
|
18
|
+
ruby: ['2.6', '2.7', '3.0', '3.1']
|
|
19
19
|
rails: ['5.2', '6.0.0', '6.1.0', '7.0.0']
|
|
20
20
|
exclude:
|
|
21
|
-
- ruby: "2.5"
|
|
22
|
-
rails: "7.0.0"
|
|
23
21
|
- ruby: "2.6"
|
|
24
22
|
rails: "7.0.0"
|
|
23
|
+
- ruby: "3.0"
|
|
24
|
+
rails: "5.2"
|
|
25
|
+
- ruby: "3.1"
|
|
26
|
+
rails: "5.2"
|
|
27
|
+
- ruby: "3.1"
|
|
28
|
+
rails: "6.0.0"
|
|
25
29
|
env:
|
|
26
30
|
SQLITE3_VERSION: 1.4.1
|
|
27
31
|
REDIS_URL: redis://localhost:6379/0
|
|
@@ -43,7 +47,7 @@ jobs:
|
|
|
43
47
|
restore-keys: |
|
|
44
48
|
${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.rails }}-
|
|
45
49
|
- name: Set up Ruby ${{ matrix.ruby }}
|
|
46
|
-
uses:
|
|
50
|
+
uses: ruby/setup-ruby@v1
|
|
47
51
|
with:
|
|
48
52
|
ruby-version: ${{ matrix.ruby }}
|
|
49
53
|
- name: Install libpq-dev
|
|
@@ -16,8 +16,18 @@ jobs:
|
|
|
16
16
|
--health-retries 5
|
|
17
17
|
strategy:
|
|
18
18
|
matrix:
|
|
19
|
-
ruby: ['2.
|
|
20
|
-
rails: ['5.2', '6.0.0', '6.1.0']
|
|
19
|
+
ruby: ['2.6', '2.7', '3.0', '3.1']
|
|
20
|
+
rails: ['5.2', '6.0.0', '6.1.0', '7.0.0']
|
|
21
|
+
exclude:
|
|
22
|
+
- ruby: "2.6"
|
|
23
|
+
rails: "7.0.0"
|
|
24
|
+
- ruby: "3.0"
|
|
25
|
+
rails: "5.2"
|
|
26
|
+
- ruby: "3.1"
|
|
27
|
+
rails: "5.2"
|
|
28
|
+
- ruby: "3.1"
|
|
29
|
+
rails: "6.0.0"
|
|
30
|
+
|
|
21
31
|
env:
|
|
22
32
|
SQLITE3_VERSION: 1.4.1
|
|
23
33
|
REDIS_URL: redis://localhost:6379/0
|
|
@@ -39,7 +49,7 @@ jobs:
|
|
|
39
49
|
restore-keys: |
|
|
40
50
|
${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.rails }}-
|
|
41
51
|
- name: Set up Ruby ${{ matrix.ruby }}
|
|
42
|
-
uses:
|
|
52
|
+
uses: ruby/setup-ruby@v1
|
|
43
53
|
with:
|
|
44
54
|
ruby-version: ${{ matrix.ruby }}
|
|
45
55
|
- name: Install libpq-dev
|
data/Changelog.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## 0.24.0
|
|
2
|
+
|
|
3
|
+
### Additions/Changes
|
|
4
|
+
|
|
5
|
+
* Add Ruby 3.0 and 3.1 to the CI matrix and fix groups block arity check for ruby 3 (https://github.com/jnunemaker/flipper/pull/601)
|
|
6
|
+
* Removed support for Ruby 2.5 (which was end of line 9 months ago)
|
|
7
|
+
* Add (alpha) client side instrumentation of events to cloud (https://github.com/jnunemaker/flipper/pull/602)
|
|
8
|
+
* Fix deprecated uses of Redis#pipelined (https://github.com/jnunemaker/flipper/pull/603). redis-rb >= 3 now required.
|
|
9
|
+
* Fix Flipper UI Rack application when `Rack::Session::Pool` is used to build it.
|
|
10
|
+
|
|
1
11
|
## 0.23.1
|
|
2
12
|
|
|
3
13
|
### Additions/Changes
|
data/Dockerfile
CHANGED
data/lib/flipper/types/group.rb
CHANGED
|
@@ -14,7 +14,7 @@ module Flipper
|
|
|
14
14
|
|
|
15
15
|
if block_given?
|
|
16
16
|
@block = block
|
|
17
|
-
@single_argument = @block
|
|
17
|
+
@single_argument = call_with_no_context?(@block)
|
|
18
18
|
else
|
|
19
19
|
@block = ->(_thing, _context) { false }
|
|
20
20
|
@single_argument = false
|
|
@@ -28,6 +28,13 @@ module Flipper
|
|
|
28
28
|
@block.call(thing, context)
|
|
29
29
|
end
|
|
30
30
|
end
|
|
31
|
+
|
|
32
|
+
NO_PARAMS_IN_RUBY_3 = [[:req], [:rest]]
|
|
33
|
+
def call_with_no_context?(block)
|
|
34
|
+
return true if block.parameters == NO_PARAMS_IN_RUBY_3
|
|
35
|
+
|
|
36
|
+
block.arity.abs == 1
|
|
37
|
+
end
|
|
31
38
|
end
|
|
32
39
|
end
|
|
33
40
|
end
|
data/lib/flipper/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
|
@@ -22,6 +22,7 @@ Dir[FlipperRoot.join('spec/support/**/*.rb')].sort.each { |f| require f }
|
|
|
22
22
|
|
|
23
23
|
RSpec.configure do |config|
|
|
24
24
|
config.before(:example) do
|
|
25
|
+
Flipper::Cloud::Registry.default.clear if defined?(Flipper::Cloud)
|
|
25
26
|
Flipper.unregister_groups
|
|
26
27
|
Flipper.configuration = nil
|
|
27
28
|
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.
|
|
4
|
+
version: 0.24.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: 2022-
|
|
11
|
+
date: 2022-02-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|