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

Replace Array#sum with Array#reduce #414

Merged
merged 1 commit into from
Oct 18, 2021
Merged

Conversation

dzunk
Copy link
Contributor

@dzunk dzunk commented Oct 15, 2021

Restores compatibility with Ruby 2.3 by replacing the Array#sum method that was introduced in Ruby 2.4. Fixes #413.

Not sure what the appetite is for maintaining legacy compatibility, but if it's worth releasing a new version for it, here's the fix.

Copy link
Contributor

@jonabc jonabc left a comment

Choose a reason for hiding this comment

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

👍 thanks for fixing this! if this is all that's needed for 2.3 support then :shipit: .

As an FYI, I'm not sure whether further/deeper changes would be desirable in the name of supporting older ruby versions. Generally the minimum bar for support in licensed is tied to the underlying tools/languages/frameworks, and in this case the oldest non-EOL version of ruby is 2.6

@jonabc jonabc merged commit 47350c2 into github:master Oct 18, 2021
@dzunk dzunk deleted the fix_ruby_23 branch October 18, 2021 21:01
jonabc added a commit that referenced this pull request Dec 14, 2021
## 3.4.0

2021-12-14

### Added

- New Yarn enumerator with support for berry versions (#423)

### Fixed

- Error handling cases return correct values in the Yarn enumerator (#425)
- Fixed link in command documentation (:tada: @chibicco #416)
- Fixed minor backwards compatibility issue for Ruby 2.3 support (:tada: @dzunk #414)

### Changed

- Licensed's own dependencies are cached in the repository and kept up to date with GitHub Actions (#421)
@jonabc jonabc mentioned this pull request Dec 14, 2021
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.

Not compatible with Ruby 2.3
2 participants