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
Expand supported rouge versions #29
Expand supported rouge versions #29
Conversation
tty-markdown.gemspec
Outdated
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec| | |||
|
|||
spec.add_dependency "kramdown", ">= 1.16.2", "< 3.0" | |||
spec.add_dependency "pastel", "~> 0.8" | |||
spec.add_dependency "rouge", "~> 3.14" | |||
spec.add_dependency "rouge", ">= 3.14", "< 4.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thought: I went with "< 4.2"
because I tested (manually and ran the specs) against rouge 4.1.0
and it worked fine, so it should be OK to at least then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd take a leap of faith here and further relax the constraint to "< 5.0"
. Otherwise, this may cause a bit of churn having to nudge the upper limit up whenever new versions of 4.x
are released.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated 👍
For additional context, we use https://docs.renovatebot.com/ruby/ to keep our Ruby gems up-to-date and it's automatically created an MR at https://gitlab.com/gitlab-org/gitlab/-/merge_requests/111543 which highlights the problem I'm hoping to fix here 🙂🙏 WDYT @piotrmurach? |
Hi Ash 👋 Thanks for this PR. Agreed, let's relax the rouge constraint. This is a backwards-compatible change so we should be good to release as |
3a6501a
to
e6ae34f
Compare
Thanks for the swift reply @piotrmurach 🙇 I've updated with your suggestions 🏓 |
I'm not sure what's happening with CI @piotrmurach, seems to be stuck? |
Looking forward to 0.7.2 release with this change. 🙇 This will allow us to update |
@piotrmurach, is there anything we can assist with in getting this PR merged please? 🙏🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the silence - busy times. Small nitpicky changes to the changelog.
CHANGELOG.md
Outdated
@@ -1,5 +1,8 @@ | |||
# Change log | |||
|
|||
## [v0.7.2] - unreleased | |||
* Expand supported rouge versions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please insert a 'Changed' header and keep an empty line before? (Please see previous entries for how it should look.) Can you also please modify to say 'Change gemspec to expand...' and add your full name with GitHub ref in brackets at the end?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done (I hope I did it right? 😅)
CHANGELOG.md
Outdated
@@ -1,5 +1,8 @@ | |||
# Change log | |||
|
|||
## [v0.7.2] - unreleased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove version and keep the 'unreleased' only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
e6ae34f
to
7ad7f4d
Compare
Thank you ❤️ |
Released version |
Thanks @piotrmurach! 💜 |
Describe the change
This PR increases the supported versions of
rouge
to be">= 3.14", "< 5.0"
as there are new4.x
versions ofrouge
.Why are we doing this?
The changes allows projects to install this gem as well as versions
4.x
of therouge
gem.Benefits
Same as above.
Drawbacks
https://github.com/rouge-ruby/rouge/releases/tag/v4.0.0 dropped support for versions of Ruby < 2.7, so versions 2.7+ are only supported with
rouge
4.x
.Requirements
master
branch?