Skip to content

Commit a2863f8

Browse files
authored
chore: drop Ruby 3.2 support, add Ruby 4.0 CI (#38)
* chore: drop Ruby 3.2 support, add Ruby 4.0 CI - Remove Ruby 3.2 workflow from CircleCI - Add Ruby 4.0 workflow to CircleCI (bundle-audit, rubocop, rspec-unit) - Bump required_ruby_version to >= 3.3 in gemspec
1 parent 486b466 commit a2863f8

3 files changed

Lines changed: 20 additions & 20 deletions

File tree

.circleci/config.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ orbs:
77
defaults: &defaults
88
notify_failure: false
99

10-
ruby_3_2_defaults: &ruby_3_2_defaults
11-
<<: *defaults
12-
e:
13-
name: ruby/ruby
14-
ruby-version: '3.2'
15-
1610
ruby_3_3_defaults: &ruby_3_3_defaults
1711
<<: *defaults
1812
e:
@@ -25,20 +19,14 @@ ruby_3_4_defaults: &ruby_3_4_defaults
2519
name: ruby/ruby
2620
ruby-version: '3.4'
2721

22+
ruby_4_0_defaults: &ruby_4_0_defaults
23+
<<: *defaults
24+
e:
25+
name: ruby/ruby
26+
ruby-version: '4.0'
27+
2828
workflows:
2929
version: 2
30-
ruby_3_2:
31-
jobs:
32-
- ruby/bundle-audit:
33-
<<: *ruby_3_2_defaults
34-
name: ruby-3_2-bundle_audit
35-
- ruby/rubocop:
36-
<<: *ruby_3_2_defaults
37-
name: ruby-3_2-rubocop
38-
- ruby/rspec-unit:
39-
<<: *ruby_3_2_defaults
40-
name: ruby-3_2-rspec_unit
41-
db: false
4230
ruby_3_3:
4331
jobs:
4432
- ruby/bundle-audit:
@@ -63,3 +51,15 @@ workflows:
6351
<<: *ruby_3_4_defaults
6452
name: ruby-3_4-rspec_unit
6553
db: false
54+
ruby_4_0:
55+
jobs:
56+
- ruby/bundle-audit:
57+
<<: *ruby_4_0_defaults
58+
name: ruby-4_0-bundle_audit
59+
- ruby/rubocop:
60+
<<: *ruby_4_0_defaults
61+
name: ruby-4_0-rubocop
62+
- ruby/rspec-unit:
63+
<<: *ruby_4_0_defaults
64+
name: ruby-4_0-rspec_unit
65+
db: false

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
AllCops:
2-
TargetRubyVersion: 3.2
2+
TargetRubyVersion: 3.3
33
Exclude:
44
- spec/**/*
55
- .bundle/**/*

bc-prometheus-ruby.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
3131

3232
spec.files = Dir['README.md', 'CHANGELOG.md', 'CODE_OF_CONDUCT.md', 'lib/**/*', 'bc-prometheus-ruby.gemspec']
3333
spec.require_paths = ['lib']
34-
spec.required_ruby_version = '>= 3.2'
34+
spec.required_ruby_version = '>= 3.3'
3535

3636
spec.add_runtime_dependency 'bigcommerce-multitrap', '~> 0.1'
3737
spec.add_runtime_dependency 'prometheus_exporter', '~> 0.7'

0 commit comments

Comments
 (0)