Skip to content

Commit

Permalink
Upgrade ruby to v3.2 as 2.7 is not maintained anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
driv3r committed Oct 5, 2023
1 parent 3dc7ace commit 43a622d
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: 3.2
bundler-cache: true

- name: Starting up MySQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests_5.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: 3.2
bundler-cache: true

- name: Starting up MySQL
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ source "https://rubygems.org"
group :test do
gem "minitest"
gem "mysql2"
gem "webrick"

gem "minitest-hooks"
gem "minitest-reporters", "~> 1.4"
Expand Down
20 changes: 11 additions & 9 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,26 @@ GEM
byebug (11.1.3)
coderay (1.1.3)
method_source (1.0.0)
minitest (5.14.4)
minitest (5.20.0)
minitest-fail-fast (0.1.0)
minitest (~> 5)
minitest-hooks (1.5.0)
minitest-hooks (1.5.1)
minitest (> 5.3)
minitest-reporters (1.4.3)
minitest-reporters (1.6.1)
ansi
builder
minitest (>= 5.0)
ruby-progressbar
mysql2 (0.5.3)
pry (0.13.1)
mysql2 (0.5.5)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.9.0)
pry-byebug (3.10.1)
byebug (~> 11.0)
pry (~> 0.13.0)
ruby-progressbar (1.11.0)
tqdm (0.3.0)
pry (>= 0.13, < 0.15)
ruby-progressbar (1.13.0)
tqdm (0.4.1)
webrick (1.8.1)

PLATFORMS
ruby
Expand All @@ -37,6 +38,7 @@ DEPENDENCIES
mysql2
pry-byebug
tqdm
webrick

BUNDLED WITH
2.2.22
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ test-go:

test-ruby:
bundle install
ruby test/main.rb
bundle exec ruby test/main.rb

test: test-go test-ruby

Expand Down
2 changes: 1 addition & 1 deletion dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ up:
or: [mysql@5.7]
conflicts: [mysql-connector-c, mysql, mysql-client]

- ruby: "2.7.3"
- ruby: "3.2.2"
- bundler
- go:
version: "1.16"
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def new_ghostferry(filepath, config: {})
end

def new_ghostferry_with_interrupt_after_row_copy(filepath, config: {}, after_batches_written: 0)
g = new_ghostferry(filepath, config)
g = new_ghostferry(filepath, config: config)

batches_written = 0
g.on_status(Ghostferry::Status::AFTER_ROW_COPY) do
Expand Down

0 comments on commit 43a622d

Please sign in to comment.