Conversation
|
@gdelugre Sorry to bother you, but would it be possible to merge this PR and release a new version to fix the warnings? My company is also actively using this gem, so I would be happy to help with maintaining it if you are looking for some help |
|
Related: Ruby 3.0 & origami (2.1.0): Origami::Date.now throws ArgumentError #80 |
|
@gdelugre seems to have completely disappeared. It may be worth officially migrating to a fork of this gem |
|
so - shall we fork? |
|
@corwinstephen @krtschmr yes it's probably time to fork. We still use Origami and need to keep it maintained. We will maintain a fork here: https://github.com/DocSpring/origami-docspring And will release new Ruby gems under the name: I'm getting some errors on Ruby 3.4.2 that I want to fix as well: |
|
I've pushed Please feel free to open PRs here: https://github.com/DocSpring/origami-docspring/pulls I'm going to work on fixes for Ruby 3.4.2 now, and will also get the CI running on GitHub actions (instead of TravisCI) |
|
@corwinstephen @krtschmr Are you still using Origami, and if so, what minimum version of Ruby do we need to support in our fork? See: https://www.ruby-lang.org/en/downloads/branches/ Ruby 3.1 is almost eol (end-of-life) so I am thinking that we will just support >= 3.2. But if it's easy enough to keep it working for older versions, then anyone is more than welcome to open a PR and get CI passing. |
|
@ndbroadbent Thank you for your work! |
This pull request resolves Ruby 2.7 keyword argument warnings.
The warnings are introduced since Ruby 2.7. In short, we need to keyword splat operator (
**) to use a hash as keyword arguments.details: https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/
We can confirm the warning from this repository with the test cases.
And this pull request fixes all of them.