Skip to content

Conversation

@alejandrodevs
Copy link
Contributor

@alejandrodevs alejandrodevs commented Jan 4, 2022

Actions:

  • Use SimpleDelegator instead DelegateClass.

@alejandrodevs alejandrodevs self-assigned this Jan 4, 2022
@alejandrodevs alejandrodevs force-pushed the remove-depracations-and-fix-tests branch from 062c487 to cd574d7 Compare January 4, 2022 22:57
@alejandrodevs alejandrodevs changed the title Use SimpleDelegator instead DelegateClass to support ruby 3 Add support for ruby 3 Jan 4, 2022

module Dolly
class Collection < DelegateClass(Array)
class Collection < SimpleDelegator
Copy link
Contributor

Choose a reason for hiding this comment

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

there's no issue with previous versions of ruby with this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It behaves the same and SimpleDelegator is available since ruby 2.4 if I'm not wrong.

Copy link
Member

Choose a reason for hiding this comment

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

If this changes rules out some versions of Ruby, then that should be reflected in the version... This should probably be done on a new branch or something as it would be a breaking change for applications using older rubies

Copy link
Contributor

@ErickFabian ErickFabian left a comment

Choose a reason for hiding this comment

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

:shipit:

Copy link
Member

@brlanier brlanier left a comment

Choose a reason for hiding this comment

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

One comment


module Dolly
class Collection < DelegateClass(Array)
class Collection < SimpleDelegator
Copy link
Member

Choose a reason for hiding this comment

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

If this changes rules out some versions of Ruby, then that should be reflected in the version... This should probably be done on a new branch or something as it would be a breaking change for applications using older rubies

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