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

Ruby 3.1 #548

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.7
3.1.3
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ gem 'ddtrace', require: false
# Slack
gem 'slack-ruby-client', require: false

# Avoid "Psych::BadAlias: Unknown alias: default"
gem 'psych', '~> 3.1'

group :development do
gem 'annotate'
end
Expand Down
18 changes: 17 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ GEM
concurrent-ruby (1.2.0)
connection_pool (2.3.0)
crass (1.0.6)
date (3.3.3)
ddtrace (1.9.0)
debase-ruby_core_source (>= 0.10.16, <= 3.2.0)
libdatadog (~> 1.0.1.1.0)
Expand Down Expand Up @@ -263,8 +264,11 @@ GEM
loofah (2.19.1)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
mail (2.8.1)
mini_mime (>= 0.1.1)
net-imap
net-pop
net-smtp
marcel (1.0.2)
mecab (0.996)
memoist (0.16.2)
Expand All @@ -285,6 +289,15 @@ GEM
natto (1.2.0)
ffi (>= 1.9.0)
naught (1.1.0)
net-imap (0.3.4)
date
net-protocol
net-pop (0.1.2)
net-protocol
net-protocol (0.2.1)
timeout
net-smtp (0.3.3)
net-protocol
nio4r (2.5.8)
nokogiri (1.14.2)
mini_portile2 (~> 2.8.0)
Expand Down Expand Up @@ -312,6 +325,7 @@ GEM
orm_adapter (0.5.0)
os (1.1.4)
parallel (1.22.1)
psych (3.3.4)
public_suffix (4.0.6)
puma (5.6.4)
nio4r (~> 2.0)
Expand Down Expand Up @@ -438,6 +452,7 @@ GEM
thor (1.2.1)
thread_safe (0.3.6)
tilt (2.0.11)
timeout (0.3.1)
trailblazer-option (0.1.2)
twitter-text (3.1.0)
idn-ruby
Expand Down Expand Up @@ -502,6 +517,7 @@ DEPENDENCIES
oj
omniauth-rails_csrf_protection
omniauth-twitter
psych (~> 3.1)
puma (~> 5.0)
rack-timeout
rack-user_agent
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/api_client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
let(:args) { [] }
let(:kwargs) { {} }
it do
expect(instance).to receive(:call_api).with(method, args)
expect(instance).to receive(:call_api).with(method, args, kwargs)
instance.send(method, args, kwargs)
end
end
Expand Down
4 changes: 2 additions & 2 deletions spec/lib/twitter_client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

[:user_agent, :user_token?, :credentials, :proxy, :timeouts].each do |method|
describe "##{method}" do
let(:args) { [] }
let(:args) { [1] }
let(:kwargs) { {} }
it do
expect(twitter).to receive(method).with(*args, **kwargs)
Expand All @@ -23,7 +23,7 @@
let(:args) { [] }
let(:kwargs) { {} }
it do
expect(instance).to receive(:call_api).with(method, *args, **kwargs)
expect(instance).to receive(:call_api).with(method, *args, kwargs)
instance.send(method, *args, kwargs)
end
end
Expand Down