Skip to content

Commit 76ef6ee

Browse files
authored
Merge pull request #39 from injectablerb/julio/ruby-4.0.0
Bump compatibility and gems to Ruby 4.0
2 parents e048b6c + 6dba206 commit 76ef6ee

File tree

12 files changed

+40
-49
lines changed

12 files changed

+40
-49
lines changed

.github/workflows/rspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
ruby: ['3.2.9', '3.3.10', '3.4.7']
15+
ruby: ['3.2.9', '3.3.10', '3.4.8', '4.0.0']
1616
steps:
1717
- uses: actions/checkout@v4
1818
- name: Set up Ruby ${{ matrix.ruby }}

.github/workflows/rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v4
1818
- uses: ruby/setup-ruby@v1
1919
with:
20-
ruby-version: '3.4'
20+
ruby-version: 4.0.0
2121
bundler-cache: true
2222
- uses: reviewdog/action-rubocop@v2
2323
with:

.github/workflows/simpelcov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Ruby
1717
uses: ruby/setup-ruby@v1
1818
with:
19-
ruby-version: 3.4.7
19+
ruby-version: 4.0.0
2020
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
2121
- name: Build and test with Rake
2222
run: COVERAGE=true bundle exec rake

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ AllCops:
99
Enabled: true
1010
NewCops: enable
1111
SuggestExtensions: false
12-
TargetRubyVersion: 3.4
12+
TargetRubyVersion: 3.2
1313

1414
Layout/EmptyLinesAroundAttributeAccessor:
1515
Enabled: true

.rubocop_todo.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,11 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2025-07-19 18:45:18 UTC using RuboCop version 1.78.0.
3+
# on 2026-01-10 12:23:26 UTC using RuboCop version 1.82.1.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 6
10-
# Configuration parameters: EnforcedStyle, AllowedGems, Include.
11-
# SupportedStyles: Gemfile, gems.rb, gemspec
12-
# Include: **/*.gemspec, **/Gemfile, **/gems.rb
13-
Gemspec/DevelopmentDependencies:
14-
Exclude:
15-
- 'injectable.gemspec'
16-
17-
# Offense count: 1
18-
# Configuration parameters: Severity, Include.
19-
# Include: **/*.gemspec
20-
Gemspec/RequiredRubyVersion:
21-
Exclude:
22-
- 'injectable.gemspec'
23-
249
# Offense count: 4
2510
# Configuration parameters: AllowedMethods.
2611
# AllowedMethods: enums
@@ -104,8 +89,8 @@ RSpec/NamedSubject:
10489
- 'spec/injectable_spec.rb'
10590

10691
# Offense count: 3
107-
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
108-
# Include: **/*_spec.rb
92+
# Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata, InflectorPath, EnforcedInflector.
93+
# SupportedInflectors: default, active_support
10994
RSpec/SpecFilePathFormat:
11095
Exclude:
11196
- '**/spec/routing/**/*'

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.4.7
1+
4.0.0

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Unreleased
22

3-
## 2.1.5 - 2025-11-12
3+
## 2.1.6 - 2026-01-12
4+
5+
* adds Ruby 4 to the support matrix
6+
* upgrades gemspec dependencies
7+
* maintain and appease the authorities (Rubocop)
8+
9+
## 2.1.5 - 2025-11-12
410

511
* adds simplecov
612

Gemfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,12 @@ source 'https://rubygems.org'
22

33
# Specify your gem's dependencies in injectable.gemspec
44
gemspec
5+
6+
gem 'bundler', '~> 4.0'
7+
gem 'pry-byebug', '~> 3.11'
8+
gem 'rake', '~> 13.3'
9+
gem 'rspec', '~> 3.13'
10+
gem 'rubocop', '~> 1.82'
11+
gem 'rubocop-rspec', '~> 3.9'
12+
gem 'simplecov', '~> 0.22'
13+
gem 'simplecov-json', '~> 0.2'

Gemfile.lock

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
injectable (2.1.5)
4+
injectable (2.1.6)
55

66
GEM
77
remote: https://rubygems.org/
@@ -43,23 +43,23 @@ GEM
4343
diff-lcs (>= 1.2.0, < 2.0)
4444
rspec-support (~> 3.13.0)
4545
rspec-support (3.13.4)
46-
rubocop (1.81.7)
46+
rubocop (1.82.1)
4747
json (~> 2.3)
4848
language_server-protocol (~> 3.17.0.2)
4949
lint_roller (~> 1.1.0)
5050
parallel (~> 1.10)
5151
parser (>= 3.3.0.2)
5252
rainbow (>= 2.2.2, < 4.0)
5353
regexp_parser (>= 2.9.3, < 3.0)
54-
rubocop-ast (>= 1.47.1, < 2.0)
54+
rubocop-ast (>= 1.48.0, < 2.0)
5555
ruby-progressbar (~> 1.7)
5656
unicode-display_width (>= 2.4.0, < 4.0)
5757
rubocop-ast (1.48.0)
5858
parser (>= 3.3.7.2)
5959
prism (~> 1.4)
60-
rubocop-rspec (3.7.0)
60+
rubocop-rspec (3.9.0)
6161
lint_roller (~> 1.1)
62-
rubocop (~> 1.72, >= 1.72.1)
62+
rubocop (~> 1.81)
6363
ruby-progressbar (1.13.0)
6464
simplecov (0.22.0)
6565
docile (~> 1.1)
@@ -72,19 +72,19 @@ GEM
7272
simplecov_json_formatter (0.1.4)
7373
unicode-display_width (3.1.4)
7474
unicode-emoji (~> 4.0, >= 4.0.4)
75-
unicode-emoji (4.0.4)
75+
unicode-emoji (4.2.0)
7676

7777
PLATFORMS
7878
ruby
7979

8080
DEPENDENCIES
81-
bundler (~> 2.7)
81+
bundler (~> 4.0)
8282
injectable!
8383
pry-byebug (~> 3.11)
8484
rake (~> 13.3)
8585
rspec (~> 3.13)
86-
rubocop (~> 1.81)
87-
rubocop-rspec (~> 3.7)
86+
rubocop (~> 1.82)
87+
rubocop-rspec (~> 3.9)
8888
simplecov (~> 0.22)
8989
simplecov-json (~> 0.2)
9090

@@ -94,7 +94,7 @@ CHECKSUMS
9494
coderay (1.1.3) sha256=dc530018a4684512f8f38143cd2a096c9f02a1fc2459edcfe534787a7fc77d4b
9595
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
9696
docile (1.4.1) sha256=96159be799bfa73cdb721b840e9802126e4e03dfc26863db73647204c727f21e
97-
injectable (2.1.5)
97+
injectable (2.1.6)
9898
json (2.13.0) sha256=a4bdf1ce8db5617ec6c59e021db4a398e54b57b335e1fa417ac7badc3fb7c1a0
9999
language_server-protocol (3.17.0.5) sha256=fd1e39a51a28bf3eec959379985a72e296e9f9acfce46f6a79d31ca8760803cc
100100
lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
@@ -113,16 +113,16 @@ CHECKSUMS
113113
rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
114114
rspec-mocks (3.13.5) sha256=e4338a6f285ada9fe56f5893f5457783af8194f5d08884d17a87321d5195ea81
115115
rspec-support (3.13.4) sha256=184b1814f6a968102b57df631892c7f1990a91c9a3b9e80ef892a0fc2a71a3f7
116-
rubocop (1.81.7) sha256=6fb5cc298c731691e2a414fe0041a13eb1beed7bab23aec131da1bcc527af094
116+
rubocop (1.82.1) sha256=09f1a6a654a960eda767aebea33e47603080f8e9c9a3f019bf9b94c9cab5e273
117117
rubocop-ast (1.48.0) sha256=22df9bbf3f7a6eccde0fad54e68547ae1e2a704bf8719e7c83813a99c05d2e76
118-
rubocop-rspec (3.7.0) sha256=b7b214da112034db9c6d00f2d811a354847e870f7b6ed2482b29649c3d42058f
118+
rubocop-rspec (3.9.0) sha256=8fa70a3619408237d789aeecfb9beef40576acc855173e60939d63332fdb55e2
119119
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
120120
simplecov (0.22.0) sha256=fe2622c7834ff23b98066bb0a854284b2729a569ac659f82621fc22ef36213a5
121121
simplecov-html (0.13.2) sha256=bd0b8e54e7c2d7685927e8d6286466359b6f16b18cb0df47b508e8d73c777246
122122
simplecov-json (0.2.3) sha256=c63823b5dfc95c85ff4cb94251765f08a166bdd68098f259368cbfe738e281f7
123123
simplecov_json_formatter (0.1.4) sha256=529418fbe8de1713ac2b2d612aa3daa56d316975d307244399fa4838c601b428
124124
unicode-display_width (3.1.4) sha256=8caf2af1c0f2f07ec89ef9e18c7d88c2790e217c482bfc78aaa65eadd5415ac1
125-
unicode-emoji (4.0.4) sha256=2c2c4ef7f353e5809497126285a50b23056cc6e61b64433764a35eff6c36532a
125+
unicode-emoji (4.2.0) sha256=519e69150f75652e40bf736106cfbc8f0f73aa3fb6a65afe62fefa7f80b0f80f
126126

127127
BUNDLED WITH
128-
2.7.2
128+
4.0.3

injectable.gemspec

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,4 @@ Gem::Specification.new do |spec|
2424
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
2525
spec.require_paths = ['lib']
2626
spec.required_ruby_version = '>= 3.2'
27-
28-
spec.add_development_dependency 'bundler', '~> 2.7'
29-
spec.add_development_dependency 'pry-byebug', '~> 3.11'
30-
spec.add_development_dependency 'rake', '~> 13.3'
31-
spec.add_development_dependency 'rspec', '~> 3.13'
32-
spec.add_development_dependency 'rubocop', '~> 1.81'
33-
spec.add_development_dependency 'rubocop-rspec', '~> 3.7'
34-
spec.add_development_dependency 'simplecov', '~> 0.22'
35-
spec.add_development_dependency 'simplecov-json', '~> 0.2'
3627
end

0 commit comments

Comments
 (0)