Skip to content

Commit f66733b

Browse files
committed
Update to Ruby 3.2, bundle update, and ad the rspec binstub
1 parent 8a54f73 commit f66733b

File tree

4 files changed

+102
-43
lines changed

4 files changed

+102
-43
lines changed

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby 2.7.0
1+
ruby 3.2.0

Gemfile.lock

Lines changed: 70 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,63 +2,93 @@ PATH
22
remote: .
33
specs:
44
identifiable (0.2.0)
5-
activerecord (> 5.2)
5+
activerecord (> 7)
66

77
GEM
88
remote: https://rubygems.org/
99
specs:
10-
activemodel (7.0.7.2)
11-
activesupport (= 7.0.7.2)
12-
activerecord (7.0.7.2)
13-
activemodel (= 7.0.7.2)
14-
activesupport (= 7.0.7.2)
15-
activesupport (7.0.7.2)
16-
concurrent-ruby (~> 1.0, >= 1.0.2)
10+
activemodel (8.0.2)
11+
activesupport (= 8.0.2)
12+
activerecord (8.0.2)
13+
activemodel (= 8.0.2)
14+
activesupport (= 8.0.2)
15+
timeout (>= 0.4.0)
16+
activesupport (8.0.2)
17+
base64
18+
benchmark (>= 0.3)
19+
bigdecimal
20+
concurrent-ruby (~> 1.0, >= 1.3.1)
21+
connection_pool (>= 2.2.5)
22+
drb
1723
i18n (>= 1.6, < 2)
24+
logger (>= 1.4.2)
1825
minitest (>= 5.1)
19-
tzinfo (~> 2.0)
20-
ast (2.4.2)
21-
concurrent-ruby (1.2.2)
22-
diff-lcs (1.5.0)
23-
i18n (1.14.1)
26+
securerandom (>= 0.3)
27+
tzinfo (~> 2.0, >= 2.0.5)
28+
uri (>= 0.13.1)
29+
ast (2.4.3)
30+
base64 (0.3.0)
31+
benchmark (0.4.1)
32+
bigdecimal (3.2.2)
33+
concurrent-ruby (1.3.5)
34+
connection_pool (2.5.3)
35+
diff-lcs (1.6.2)
36+
drb (2.2.3)
37+
i18n (1.14.7)
2438
concurrent-ruby (~> 1.0)
25-
minitest (5.19.0)
26-
parallel (1.22.1)
27-
parser (3.1.2.0)
39+
json (2.12.2)
40+
language_server-protocol (3.17.0.5)
41+
lint_roller (1.1.0)
42+
logger (1.7.0)
43+
mini_portile2 (2.8.9)
44+
minitest (5.25.5)
45+
parallel (1.27.0)
46+
parser (3.3.8.0)
2847
ast (~> 2.4.1)
48+
racc
49+
prism (1.4.0)
50+
racc (1.8.1)
2951
rainbow (3.1.1)
3052
rake (12.3.3)
31-
regexp_parser (2.3.0)
32-
rexml (3.2.5)
33-
rspec (3.11.0)
34-
rspec-core (~> 3.11.0)
35-
rspec-expectations (~> 3.11.0)
36-
rspec-mocks (~> 3.11.0)
37-
rspec-core (3.11.0)
38-
rspec-support (~> 3.11.0)
39-
rspec-expectations (3.11.0)
53+
regexp_parser (2.10.0)
54+
rspec (3.13.1)
55+
rspec-core (~> 3.13.0)
56+
rspec-expectations (~> 3.13.0)
57+
rspec-mocks (~> 3.13.0)
58+
rspec-core (3.13.4)
59+
rspec-support (~> 3.13.0)
60+
rspec-expectations (3.13.5)
4061
diff-lcs (>= 1.2.0, < 2.0)
41-
rspec-support (~> 3.11.0)
42-
rspec-mocks (3.11.1)
62+
rspec-support (~> 3.13.0)
63+
rspec-mocks (3.13.5)
4364
diff-lcs (>= 1.2.0, < 2.0)
44-
rspec-support (~> 3.11.0)
45-
rspec-support (3.11.0)
46-
rubocop (1.28.1)
65+
rspec-support (~> 3.13.0)
66+
rspec-support (3.13.4)
67+
rubocop (1.77.0)
68+
json (~> 2.3)
69+
language_server-protocol (~> 3.17.0.2)
70+
lint_roller (~> 1.1.0)
4771
parallel (~> 1.10)
48-
parser (>= 3.1.0.0)
72+
parser (>= 3.3.0.2)
4973
rainbow (>= 2.2.2, < 4.0)
50-
regexp_parser (>= 1.8, < 3.0)
51-
rexml
52-
rubocop-ast (>= 1.17.0, < 2.0)
74+
regexp_parser (>= 2.9.3, < 3.0)
75+
rubocop-ast (>= 1.45.1, < 2.0)
5376
ruby-progressbar (~> 1.7)
54-
unicode-display_width (>= 1.4.0, < 3.0)
55-
rubocop-ast (1.17.0)
56-
parser (>= 3.1.1.0)
57-
ruby-progressbar (1.11.0)
58-
sqlite3 (1.4.2)
77+
unicode-display_width (>= 2.4.0, < 4.0)
78+
rubocop-ast (1.45.1)
79+
parser (>= 3.3.7.2)
80+
prism (~> 1.4)
81+
ruby-progressbar (1.13.0)
82+
securerandom (0.4.1)
83+
sqlite3 (2.7.0)
84+
mini_portile2 (~> 2.8.0)
85+
timeout (0.4.3)
5986
tzinfo (2.0.6)
6087
concurrent-ruby (~> 1.0)
61-
unicode-display_width (2.1.0)
88+
unicode-display_width (3.1.4)
89+
unicode-emoji (~> 4.0, >= 4.0.4)
90+
unicode-emoji (4.0.4)
91+
uri (1.0.3)
6292

6393
PLATFORMS
6494
ruby

bin/rspec

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
#
5+
# This file was generated by Bundler.
6+
#
7+
# The application 'rspec' is installed as part of a gem, and
8+
# this file is here to facilitate running it.
9+
#
10+
11+
require "pathname"
12+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13+
Pathname.new(__FILE__).realpath)
14+
15+
bundle_binstub = File.expand_path("../bundle", __FILE__)
16+
17+
if File.file?(bundle_binstub)
18+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19+
load(bundle_binstub)
20+
else
21+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23+
end
24+
end
25+
26+
require "rubygems"
27+
require "bundler/setup"
28+
29+
load Gem.bin_path("rspec-core", "rspec")

identifiable.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
1111
spec.summary = 'A quick and easy way to add random, customizable, public-facing IDs to your models.'
1212
spec.homepage = 'https://github.com/tpritc/identifiable'
1313
spec.license = 'MIT'
14-
spec.required_ruby_version = '>= 2.7.0'
14+
spec.required_ruby_version = '>= 3.2.0'
1515

1616
# Specify which files should be added to the gem when it is released.
1717
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
2222
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
2323
spec.require_paths = ['lib']
2424

25-
spec.add_dependency 'activerecord', '> 5.2'
25+
spec.add_dependency 'activerecord', '> 7'
2626
spec.add_development_dependency 'rake', '~> 12.0'
2727
spec.add_development_dependency 'rspec', '~> 3.0'
2828
spec.add_development_dependency 'rubocop', '~> 1.3'

0 commit comments

Comments
 (0)