flipper 1.3.1 → 1.3.2

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: 29d129fae3234365cc1a38cbe05d41ee04ce2d7bd350ae05f2a3b1546ec757b2
4
- data.tar.gz: 184b524b7d42865e223d6018a4ff366553e54f1395723ded4ff1804d6e27f325
3
+ metadata.gz: cec73aaf335a08edc58718f2ab05e7ab51e3796a2c8426763a179ffed031a09f
4
+ data.tar.gz: 666c50ae76807729db78b0d04d27f3fe4fd4f9c8499befeea9c4c58134897ca9
5
5
  SHA512:
6
- metadata.gz: a5776ffb099fb4908635146bccd533bdae4cafe708946d1d8f9f3e0876f9bbc94d29971fd938fd471fc463dab41c2deb11c1b2f56e873fdbe0151b235974e42e
7
- data.tar.gz: 649abbcce3d804cdc141fbd74d6279ddb0a54d4ed506b6c594182adcf44ce459b4e9c3aa74005dc772da54bfcb9bcf8f324a3565c06493d090885c1f53339ed6
6
+ metadata.gz: 58fa61222b6d56458b8f7855969a0d55ef96058b4a6bc2a0b570ecbcacec191478677fbd7aee954e70cfca6eb64286477fb707c9b7dd9662497f16c31383a256
7
+ data.tar.gz: 310657db11afe2233674afbe0ce07f029a991977e77813bcd88d49993e232e0937dc3258828ebbd6bdbbceb1910e2af64776ca3353e81381cd6d95ccb7e8c551
@@ -7,7 +7,7 @@ jobs:
7
7
  services:
8
8
  redis:
9
9
  image: redis
10
- ports: ['6379:6379']
10
+ ports: ["6379:6379"]
11
11
  options: >-
12
12
  --health-cmd "redis-cli ping"
13
13
  --health-interval 10s
@@ -28,21 +28,35 @@ jobs:
28
28
  strategy:
29
29
  fail-fast: false
30
30
  matrix:
31
- ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
32
- rails: ['5.2', '6.0.0', '6.1.0', '7.0.0', '7.1.0']
31
+ ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"]
32
+ rails: ["5.2", "6.0.0", "6.1.0", "7.0.0", "7.1.0", "7.2.0", "8.0.0"]
33
33
  exclude:
34
34
  - ruby: "2.6"
35
35
  rails: "7.1.0"
36
36
  - ruby: "2.6"
37
37
  rails: "7.0.0"
38
+ - ruby: "2.6"
39
+ rails: "7.2.0"
40
+ - ruby: "2.6"
41
+ rails: "8.0.0"
38
42
  - ruby: "2.7"
39
43
  rails: "7.1.0"
44
+ - ruby: "2.7"
45
+ rails: "7.2.0"
46
+ - ruby: "2.7"
47
+ rails: "8.0.0"
40
48
  - ruby: "3.0"
41
49
  rails: "5.2"
50
+ - ruby: "3.0"
51
+ rails: "7.2.0"
52
+ - ruby: "3.0"
53
+ rails: "8.0.0"
42
54
  - ruby: "3.1"
43
55
  rails: "5.2"
44
56
  - ruby: "3.1"
45
57
  rails: "6.0.0"
58
+ - ruby: "3.1"
59
+ rails: "8.0.0"
46
60
  - ruby: "3.2"
47
61
  rails: "5.2"
48
62
  - ruby: "3.2"
@@ -56,7 +70,7 @@ jobs:
56
70
  - ruby: "3.3"
57
71
  rails: "6.1.0"
58
72
  env:
59
- SQLITE3_VERSION: 1.4.1
73
+ SQLITE3_VERSION: ${{ matrix.rails == '8.0.0' && '2.1.0' || '1.4.1' }}
60
74
  REDIS_URL: redis://localhost:6379/0
61
75
  CI: true
62
76
  RAILS_VERSION: ${{ matrix.rails }}
@@ -8,7 +8,7 @@ jobs:
8
8
  services:
9
9
  redis:
10
10
  image: redis
11
- ports: ['6379:6379']
11
+ ports: ["6379:6379"]
12
12
  options: >-
13
13
  --health-cmd "redis-cli ping"
14
14
  --health-interval 10s
@@ -16,21 +16,35 @@ jobs:
16
16
  --health-retries 5
17
17
  strategy:
18
18
  matrix:
19
- ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
20
- rails: ['5.2', '6.0.0', '6.1.0', '7.0.0', '7.1.0']
19
+ ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"]
20
+ rails: ["5.2", "6.0.0", "6.1.0", "7.0.0", "7.1.0", "7.2.0", "8.0.0"]
21
21
  exclude:
22
22
  - ruby: "2.6"
23
23
  rails: "7.1.0"
24
24
  - ruby: "2.6"
25
25
  rails: "7.0.0"
26
+ - ruby: "2.6"
27
+ rails: "7.2.0"
28
+ - ruby: "2.6"
29
+ rails: "8.0.0"
26
30
  - ruby: "2.7"
27
31
  rails: "7.1.0"
32
+ - ruby: "2.7"
33
+ rails: "7.2.0"
34
+ - ruby: "2.7"
35
+ rails: "8.0.0"
28
36
  - ruby: "3.0"
29
37
  rails: "5.2"
38
+ - ruby: "3.0"
39
+ rails: "7.2.0"
40
+ - ruby: "3.0"
41
+ rails: "8.0.0"
30
42
  - ruby: "3.1"
31
43
  rails: "5.2"
32
44
  - ruby: "3.1"
33
45
  rails: "6.0.0"
46
+ - ruby: "3.1"
47
+ rails: "8.0.0"
34
48
  - ruby: "3.2"
35
49
  rails: "5.2"
36
50
  - ruby: "3.2"
@@ -44,7 +58,7 @@ jobs:
44
58
  - ruby: "3.3"
45
59
  rails: "6.1.0"
46
60
  env:
47
- SQLITE3_VERSION: 1.4.1
61
+ SQLITE3_VERSION: ${{ matrix.rails == '8.0.0' && '2.1.0' || '1.4.1' }}
48
62
  REDIS_URL: redis://localhost:6379/0
49
63
  CI: true
50
64
  RAILS_VERSION: ${{ matrix.rails }}
data/Gemfile CHANGED
@@ -11,7 +11,7 @@ gem 'rake'
11
11
  gem 'statsd-ruby', '~> 1.2.1'
12
12
  gem 'rspec', '~> 3.0'
13
13
  gem 'rack-test'
14
- gem 'rackup'
14
+ gem 'rackup', '= 1.0.0'
15
15
  gem 'sqlite3', "~> #{ENV['SQLITE3_VERSION'] || '1.4.1'}"
16
16
  gem 'rails', "~> #{ENV['RAILS_VERSION'] || '7.1'}"
17
17
  gem 'minitest', '~> 5.18'
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ end
17
17
 
18
18
  desc 'Tags version, pushes to remote, and pushes gem'
19
19
  task release: :build do
20
- # sh 'git', 'tag', "v#{Flipper::VERSION}"
20
+ sh 'git', 'tag', "v#{Flipper::VERSION}"
21
21
  sh 'git push origin main'
22
22
  sh "git push origin v#{Flipper::VERSION}"
23
23
  puts "\nWhat OTP code should be used?"
@@ -1,5 +1,5 @@
1
1
  module Flipper
2
- VERSION = '1.3.1'.freeze
2
+ VERSION = '1.3.2'.freeze
3
3
 
4
4
  REQUIRED_RUBY_VERSION = '2.6'.freeze
5
5
  NEXT_REQUIRED_RUBY_VERSION = '3.0'.freeze
@@ -5,6 +5,8 @@ RSpec.describe Flipper::CLI do
5
5
  let(:stderr) { StringIO.new }
6
6
  let(:cli) { Flipper::CLI.new(stdout: stdout, stderr: stderr) }
7
7
 
8
+ Result = Struct.new(:status, :stdout, :stderr, keyword_init: true)
9
+
8
10
  before do
9
11
  # Prentend stdout/stderr a TTY to test colorization
10
12
  allow(stdout).to receive(:tty?).and_return(true)
@@ -12,7 +14,7 @@ RSpec.describe Flipper::CLI do
12
14
  end
13
15
 
14
16
  # Infer the command from the description
15
- subject(:argv) do
17
+ let(:argv) do
16
18
  descriptions = self.class.parent_groups.map {|g| g.metadata[:description_args] }.reverse.flatten.drop(1)
17
19
  descriptions.map { |arg| Shellwords.split(arg) }.flatten
18
20
  end
@@ -26,7 +28,7 @@ RSpec.describe Flipper::CLI do
26
28
  status = e.status
27
29
  end
28
30
 
29
- OpenStruct.new(status: status, stdout: stdout.string, stderr: stderr.string)
31
+ Result.new(status: status, stdout: stdout.string, stderr: stderr.string)
30
32
  end
31
33
 
32
34
  before do
@@ -6,6 +6,7 @@ return unless Rails::VERSION::MAJOR >= 7
6
6
  require "capybara/cuprite"
7
7
  require "flipper"
8
8
  require "flipper/test_help"
9
+ require "action_controller/railtie"
9
10
 
10
11
  require 'action_dispatch/system_testing/server'
11
12
  ActionDispatch::SystemTesting::Server.silence_puma = true
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: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-04 00:00:00.000000000 Z
11
+ date: 2024-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -314,7 +314,7 @@ metadata:
314
314
  homepage_uri: https://www.flippercloud.io
315
315
  source_code_uri: https://github.com/flippercloud/flipper
316
316
  bug_tracker_uri: https://github.com/flippercloud/flipper/issues
317
- changelog_uri: https://github.com/flippercloud/flipper/releases/tag/v1.3.1
317
+ changelog_uri: https://github.com/flippercloud/flipper/releases/tag/v1.3.2
318
318
  post_install_message:
319
319
  rdoc_options: []
320
320
  require_paths:
@@ -330,7 +330,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
330
330
  - !ruby/object:Gem::Version
331
331
  version: '0'
332
332
  requirements: []
333
- rubygems_version: 3.5.18
333
+ rubygems_version: 3.5.23
334
334
  signing_key:
335
335
  specification_version: 4
336
336
  summary: Beautiful, performant feature flags for Ruby and Rails.