Skip to content

Commit 20caa7f

Browse files
authored
Merge pull request #74 from luispadron/luis/update-ruby-version-3.3.9
Update to Ruby version 3.3.9
2 parents e9e70b0 + 35f1745 commit 20caa7f

File tree

8 files changed

+51
-43
lines changed

8 files changed

+51
-43
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
ruby-version: ["2.7.4", "3.0.6", "3.1.4", "3.2.2", "3.3.0-preview3"]
15+
ruby-version: ["3.2.2", "3.3.9", "3.4.0", "3.5.0-preview1"]
1616
experimental: [false]
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v5
1919
- name: Set up Ruby
2020
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
2121
# change this to (see https://github.com/ruby/setup-ruby#versioning):

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
inherit_from: .rubocop_todo.yml
22

33
AllCops:
4-
TargetRubyVersion: 2.7
4+
TargetRubyVersion: 3.2
55
NewCops: enable
66

77
Naming/FileName:

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.3.9

Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ source 'https://rubygems.org'
55
group :development do
66
gem 'bundler'
77
gem 'rake'
8-
gem 'rubocop', install_if: -> { RUBY_VERSION >= '2.3' }
8+
gem 'rubocop', install_if: -> { RUBY_VERSION >= '3.2' }
99
end
1010

11+
gem 'logger'
1112
gem 'rspec'
1213

1314
gemspec

Gemfile.lock

Lines changed: 39 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,61 +7,68 @@ PATH
77
GEM
88
remote: https://rubygems.org/
99
specs:
10-
ast (2.4.2)
10+
ast (2.4.3)
1111
colorize (1.1.0)
12-
diff-lcs (1.5.0)
13-
json (2.6.3)
14-
language_server-protocol (3.17.0.3)
15-
parallel (1.23.0)
16-
parser (3.2.2.4)
12+
diff-lcs (1.6.2)
13+
json (2.15.0)
14+
language_server-protocol (3.17.0.5)
15+
lint_roller (1.1.0)
16+
logger (1.7.0)
17+
parallel (1.27.0)
18+
parser (3.3.9.0)
1719
ast (~> 2.4.1)
1820
racc
19-
racc (1.7.3)
21+
prism (1.5.1)
22+
racc (1.8.1)
2023
rainbow (3.1.1)
21-
rake (13.1.0)
22-
regexp_parser (2.8.2)
23-
rexml (3.2.6)
24-
rspec (3.12.0)
25-
rspec-core (~> 3.12.0)
26-
rspec-expectations (~> 3.12.0)
27-
rspec-mocks (~> 3.12.0)
28-
rspec-core (3.12.2)
29-
rspec-support (~> 3.12.0)
30-
rspec-expectations (3.12.3)
24+
rake (13.3.0)
25+
regexp_parser (2.11.3)
26+
rspec (3.13.1)
27+
rspec-core (~> 3.13.0)
28+
rspec-expectations (~> 3.13.0)
29+
rspec-mocks (~> 3.13.0)
30+
rspec-core (3.13.5)
31+
rspec-support (~> 3.13.0)
32+
rspec-expectations (3.13.5)
3133
diff-lcs (>= 1.2.0, < 2.0)
32-
rspec-support (~> 3.12.0)
33-
rspec-mocks (3.12.6)
34+
rspec-support (~> 3.13.0)
35+
rspec-mocks (3.13.5)
3436
diff-lcs (>= 1.2.0, < 2.0)
35-
rspec-support (~> 3.12.0)
36-
rspec-support (3.12.1)
37-
rubocop (1.57.2)
37+
rspec-support (~> 3.13.0)
38+
rspec-support (3.13.6)
39+
rubocop (1.81.1)
3840
json (~> 2.3)
39-
language_server-protocol (>= 3.17.0)
41+
language_server-protocol (~> 3.17.0.2)
42+
lint_roller (~> 1.1.0)
4043
parallel (~> 1.10)
41-
parser (>= 3.2.2.4)
44+
parser (>= 3.3.0.2)
4245
rainbow (>= 2.2.2, < 4.0)
43-
regexp_parser (>= 1.8, < 3.0)
44-
rexml (>= 3.2.5, < 4.0)
45-
rubocop-ast (>= 1.28.1, < 2.0)
46+
regexp_parser (>= 2.9.3, < 3.0)
47+
rubocop-ast (>= 1.47.1, < 2.0)
4648
ruby-progressbar (~> 1.7)
47-
unicode-display_width (>= 2.4.0, < 3.0)
48-
rubocop-ast (1.30.0)
49-
parser (>= 3.2.1.0)
49+
unicode-display_width (>= 2.4.0, < 4.0)
50+
rubocop-ast (1.47.1)
51+
parser (>= 3.3.7.2)
52+
prism (~> 1.4)
5053
ruby-progressbar (1.13.0)
51-
unicode-display_width (2.5.0)
54+
unicode-display_width (3.2.0)
55+
unicode-emoji (~> 4.1)
56+
unicode-emoji (4.1.0)
5257

5358
PLATFORMS
5459
arm64-darwin-22
5560
arm64-darwin-23
61+
arm64-darwin-24
5662
x64-mingw-ucrt
5763
x86_64-linux
5864

5965
DEPENDENCIES
6066
bundler
6167
git-fastclone!
68+
logger
6269
rake
6370
rspec
6471
rubocop
6572

6673
BUNDLED WITH
67-
2.4.22
74+
2.5.22

git-fastclone.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ Gem::Specification.new do |gem|
3434
gem.homepage = 'http://square.github.io/git-fastclone/'
3535
gem.license = 'Apache'
3636

37-
gem.required_ruby_version = '>= 2.7'
37+
gem.required_ruby_version = '>= 3.2'
3838

39-
gem.add_runtime_dependency 'colorize'
39+
gem.add_dependency 'colorize'
4040
gem.metadata['rubygems_mfa_required'] = 'true'
4141
end

lib/git-fastclone.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,26 +293,26 @@ def thread_update_submodule(submodule_url, submodule_path, threads, pwd)
293293
end
294294
end
295295

296-
def with_reference_repo_lock(url, &block)
296+
def with_reference_repo_lock(url, &)
297297
# Sane POSIX implementations remove exclusive flocks when a process is terminated or killed
298298
# We block here indefinitely. Waiting for other git-fastclone processes to release the lock.
299299
# With the default timeout of 0 we will wait forever, this can be overridden on the command line.
300300
lockfile = reference_repo_lock_file(url, reference_dir, using_local_repo)
301301
Timeout.timeout(flock_timeout_secs) { lockfile.flock(File::LOCK_EX) }
302-
with_reference_repo_thread_lock(url, &block)
302+
with_reference_repo_thread_lock(url, &)
303303
ensure
304304
# Not strictly necessary to do this unlock as an ensure. If ever exception is caught outside this
305305
# primitive, ensure protection may come in handy.
306306
lockfile.flock(File::LOCK_UN)
307307
lockfile.close
308308
end
309309

310-
def with_reference_repo_thread_lock(url, &block)
310+
def with_reference_repo_thread_lock(url, &)
311311
# We also need thread level locking because pre-fetch means multiple threads can
312312
# attempt to update the same repository from a single git-fastclone process
313313
# file locks in posix are tracked per process, not per userland thread.
314314
# This gives us the equivalent of pthread_mutex around these accesses.
315-
reference_mutex[reference_repo_name(url)].synchronize(&block)
315+
reference_mutex[reference_repo_name(url)].synchronize(&)
316316
end
317317

318318
def update_submodule_reference(url, submodule_url_list)

spec/git_fastclone_runner_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def create_lockfile_double
4545
it 'should initialize properly' do
4646
stub_const('GitFastClone::DEFAULT_REFERENCE_REPO_DIR', 'new_dir')
4747

48-
expect(Hash).to respond_to(:new).with(2).arguments
4948
expect(GitFastClone::DEFAULT_REFERENCE_REPO_DIR).to eq('new_dir')
5049
expect(subject.prefetch_submodules).to eq(true)
5150
expect(subject.reference_mutex).to eq({})

0 commit comments

Comments
 (0)