Skip to content

Ruby 2.4 is deprecating Bignum and Fixnum#557

Closed
daemonsy wants to merge 1 commit intormosolgo:masterfrom
daemonsy:master
Closed

Ruby 2.4 is deprecating Bignum and Fixnum#557
daemonsy wants to merge 1 commit intormosolgo:masterfrom
daemonsy:master

Conversation

@daemonsy
Copy link
Copy Markdown
Contributor

What's up?

Hi, we upgraded an app that uses graphql-ruby to Ruby 2.4 and we're getting a deprecation message on the ID type.

/app/vendor/bundle/ruby/2.4.0/gems/graphql-1.4.4/lib/graphql/id_type.rb:9: warning: constant ::Fixnum is deprecated

https://bugs.ruby-lang.org/issues/12005

Missing things:

  • Tests: Seems like the id_type_spec.rb covered that pretty well, asserting the coercion of integers, doesn't feel there's a need to write a new case unless you feel otherwise
  • This might break with Ruby < 2.4, so probably should have an accompanying gemspec change.

https://bugs.ruby-lang.org/issues/12005

- Getting deprecation warnings: `/app/vendor/bundle/ruby/2.4.0/gems/graphql-1.4.4/lib/graphql/id_type.rb:9: warning: constant ::Fixnum is deprecated`
@rmosolgo
Copy link
Copy Markdown
Owner

Thanks for looking into this! I'm hoping to officially support Ruby 2.4 via #475 but it's been a bit of a struggle getting CI working across all Rubies. Does that branch look like it would cover your needs, too?

@daemonsy
Copy link
Copy Markdown
Contributor Author

Ahh, somehow miss that while browsing the PRs. Yes! that looks good, so far we've only seen one deprecation warning pop up.

Closing this and seeing if there's anything I can contribute to #475

@daemonsy daemonsy closed this Feb 21, 2017
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.

2 participants