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

Make graphlient run on Ruby 3.0 #81

Merged
merged 7 commits into from
Dec 28, 2020
Merged

Make graphlient run on Ruby 3.0 #81

merged 7 commits into from
Dec 28, 2020

Conversation

Burgestrand
Copy link
Contributor

@Burgestrand Burgestrand commented Dec 25, 2020

Upon trying graphlient on Ruby 3.0 I noticed a few issues, one of them being critical: effbf5d

All the other commits were made to get either CI to pass, tests to pass, or rubocop to pass. 😄

@@ -15,7 +15,7 @@ before_install:

matrix:
include:
- rvm: 2.3.6
- rvm: 2.7.2
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This could arguably be 3.0… but I'm not sure I wanted to risk it :D

@@ -91,7 +91,7 @@
expect do
client.execute(query, id: '42')
end.to raise_error Graphlient::Errors::GraphQLError do |e|
expect(e.to_s).to eq 'Variable id of type Int was provided invalid value'
expect(e.to_s).to eq 'Variable $id of type Int was provided invalid value'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is due to allowing a newer graphql version, which was required for Ruby 3.0-compatibility.

AllCops:
TargetRubyVersion: 2.3

Lint/SplatKeywordArguments:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is an old cop that has long since been removed.

@@ -1,3 +1,9 @@
AllCops:
TargetRubyVersion: 2.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.

We could definitely use a newer version here (this used to be picked up from .ruby-version), but that generated new cop warnings so I decided against it.

@dblock dblock merged commit df1d99f into ashkan18:master Dec 28, 2020
@dblock
Copy link
Collaborator

dblock commented Dec 28, 2020

👍

@ashkan18
Copy link
Owner

Just cut a new release 0.5.0 🙌

@Burgestrand Burgestrand deleted the kbs/update-for-ruby-3.0 branch December 29, 2020 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants