Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Ruby 3.2 #53

Merged
merged 3 commits into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ jobs:
- 2.7.8
- 3.0.6
- 3.1.4
- 3.2.2
mongo-image:
- mongo:4.4
include:
- { "ruby-version": 3.1.4, "mongo-image": "mongo:4.2" }
- { "ruby-version": 3.1.4, "mongo-image": "mongo:5.0" }
- { "ruby-version": 3.1.4, "mongo-image": "mongo:6.0" }
- { "ruby-version": 3.1.4, "mongo-image": "mongo:7.0" }
- { "ruby-version": 3.2.2, "mongo-image": "mongo:4.2" }
- { "ruby-version": 3.2.2, "mongo-image": "mongo:5.0" }
- { "ruby-version": 3.2.2, "mongo-image": "mongo:6.0" }
- { "ruby-version": 3.2.2, "mongo-image": "mongo:7.0" }
services:
mongo:
image: ${{ matrix.mongo-image }}
Expand Down
10 changes: 5 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ PATH
GEM
remote: https://rubygems.org/
specs:
bson (4.10.0)
bson (4.15.0)
byebug (11.1.3)
coderay (1.1.3)
diff-lcs (1.4.4)
ffi (1.13.1)
ffi (1.16.3)
formatador (0.2.5)
guard (2.16.2)
formatador (>= 0.2.4)
Expand All @@ -31,14 +31,14 @@ GEM
guard (~> 2.1)
guard-compat (~> 1.1)
rspec (>= 2.99.0, < 4.0)
listen (3.2.1)
listen (3.8.0)
Copy link
Contributor Author

@a2ikm a2ikm Dec 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got the following error to run bundle install with Ruby 3.2.2.

listen-3.2.1 requires ruby version >= 2.2.7, ~> 2.2, which is
incompatible with the current version, ruby 3.2.2p53

So I update listen gem with the following command.

$ bundle update listen --conservative

rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
log_buddy (0.7.0)
lumberjack (1.2.8)
method_source (1.0.0)
mongo (2.13.0)
bson (>= 4.8.2, < 5.0.0)
mongo (2.19.3)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got the following error while running bundle exec rake.

/Users/masato/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/rspec-core-3.9.2/exe/rspec: warning: Exception in finalizer #<Proc:0x000000010488e6b8 /
+Users/masato/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/mongo-2.13.0/lib/mongo/server.rb:285>
/Users/masato/.rbenv/versions/3.2.2/lib/ruby/3.2.0/timeout.rb:101:in `new': can't alloc thread (ThreadError)

So I updated mongo gem with the following command.

$ bundle update mongo --conservative

bson (>= 4.14.1, < 5.0.0)
nenv (0.3.0)
notiffany (0.1.3)
nenv (~> 0.1)
Expand Down
Loading