Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds a version constraint on the psych gem to ensure compatibility with older Ruby versions (2.5 and 2.6) that are still supported by this project. Since psych 5.0+ requires Ruby 2.7+, this constraint prevents installation failures on Ruby 2.5-2.6.
Changes:
- Added psych gem with version constraint
< 5.0to the development group in Gemfile
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| gem "rake" | ||
| gem "rake-compiler" | ||
| gem "rdoc" | ||
| gem "psych", "< 5.0" # psych 5.0+ requires Ruby 2.7+ |
There was a problem hiding this comment.
The version constraint uses "< 5.0" which will exclude psych 5.0.0 but allow 4.x versions. However, consider using "~> 4.0" instead, which is more idiomatic in the Ruby ecosystem and makes it clearer that you're targeting the 4.x series. Alternatively, if you want to be more permissive and include any pre-5.0 version including potential 4.1, 4.2, etc., the current constraint is acceptable but could be written as "< 5" (without the .0) for brevity.
| gem "psych", "< 5.0" # psych 5.0+ requires Ruby 2.7+ | |
| gem "psych", "~> 4.0" # psych 5.0+ requires Ruby 2.7+ |
No description provided.