flipper 0.23.1 → 0.24.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
  SHA256:
3
- metadata.gz: a41bf1dd43734d1d6c6b56a46ea393af74164d46aadd7671994bdcc10e4eb646
4
- data.tar.gz: e935dc1375a66156f0d0f7ba967269d184b8babaf119333c614943643f760ed7
3
+ metadata.gz: f74cad5c410ce4146e29c11d692fb97d500c54301af8dab6b1c4b0da95ae79c8
4
+ data.tar.gz: 5e6f5613ea2166f1899e553601c555a87b9f47de169ef45b5f19c0d3aa77b3c9
5
5
  SHA512:
6
- metadata.gz: 82d249a9f90b96fcf88713890a2df5a7fa5f05927b7a1903630e276507ee709b5426b91fba46aa6ef034e15dc6b50b35781d61b56afe512a46673e4de3eb559d
7
- data.tar.gz: c986d6fb7c1a773ab56e6b7cb35734648485562690799dff901578b2c31566f5582bb8390268228f48eda9fba6797f8b72bd7fd385e45a9a04155c14a4c8b95f
6
+ metadata.gz: 44f19778f0d3e35f99b909b4bd2fa2603b596b4cff77eb70d806c73453c1a1cf4a3d79ddf5c4ef593464099134505507152e1f392174f525e4815d5ca5592371
7
+ data.tar.gz: e999db32f892bbbf307c38f65b98b149489c830ba1b2530f2f5d308b837eb8a4d5d1f49f95242047d989e93b253a0599df8929fece5d78a9d959a2cad9dfac52
@@ -15,13 +15,17 @@ jobs:
15
15
  --health-retries 5
16
16
  strategy:
17
17
  matrix:
18
- ruby: ['2.5', '2.6', '2.7']
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: actions/setup-ruby@v1
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.5', '2.6', '2.7']
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: actions/setup-ruby@v1
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
@@ -1,4 +1,4 @@
1
- FROM ruby:2.5
1
+ FROM ruby:3.0
2
2
 
3
3
  RUN apt-get update && apt-get install -y \
4
4
  # build-essential \
@@ -14,7 +14,7 @@ module Flipper
14
14
 
15
15
  if block_given?
16
16
  @block = block
17
- @single_argument = @block.arity.abs == 1
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
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = '0.23.1'.freeze
2
+ VERSION = '0.24.0'.freeze
3
3
  end
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.23.1
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-01-19 00:00:00.000000000 Z
11
+ date: 2022-02-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: