Debian Patches

Status for ruby-pathutil/0.16.1-2.1

Patch Description Author Forwarded Bugs Origin Last update
fix-ruby-keyword-parameter-deprecation-warnings.patch [PATCH] Fix ruby keyword parameter deprecation warnings
In ruby 2.7, using the last argument as keyword parameters became
deprecated in preparation for ruby 3.0. When running the tests, we saw
numerous deprecation warnings. This commit fixes up those deprecation
warnings by explicitly passing the last argument(s) as keyword
argument(s).


Fixes #4

Side note: this commit did not fix the `#binread` method because it was
untested, and when attempting to add tests, we got the following failing
test:

```
1) Pathutil#binread when set to normalize should use encode to convert CRLF to LF
Failure/Error:
File.binread(self, *args, kwd).encode({
:universal_newline => true
})

TypeError:
no implicit conversion of Hash into Integer
# ./lib/pathutil.rb:509:in `binread'
# ./lib/pathutil.rb:509:in `binread'
# ./spec/tests/lib/pathutil_spec.rb:943:in `block (4 levels) in <top (required)>'
```

...which appears to be occuring because of an interface mismatch as
`IO#binread` does not take keyword arguments.

https://ruby-doc.org/core-2.7.1/IO.html#method-c-binread
Tom Dunlap <tom@motevets.com> yes debian upstream upstream, https://github.com/envygeeks/pathutil/pull/5/commits/3451a10c362fc867b20c7e471a551b31c40a0246 2022-07-21

All known versions for source package 'ruby-pathutil'

Links