Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix gemspec ruby version checks (#259)
* Fix: Conditional dependency logic in gemspec - Fixed the logic in the gemspec file to correctly compare the current Ruby version with the required version. - Replaced string comparison of `RUBY_VERSION` with `Gem::Version` for better semantic version handling. - Addressed edge cases, such as "3.10" being greater than "3.2". Why: The previous comparison caused a `LoadError` for `syntax_suggest` on Ruby 3.1.6 due to incorrect string-based version comparison. RUBY_VERSION returns a string, not a comparable version, breaking the current comparison in some cases. * Fix: Update `syntax_suggest` dependency version constraint - `”syntax_suggest", "~> 1.1.0"` to `”syntax_suggest", ">= 1.1.0"` in the gemspec Why: Allows greater flexibility for users by supporting newer versions of `syntax_suggest` beyond the `1.x` range, especially as 2.x requires ruby >= 3.0
- Loading branch information