Closed thefloweringash closed 1 year ago
FYI this is breaking for me with wrong number of arguments (given 4, expected 1..3)
, trying to figure out why – probably because my uri
is actually a file and IO.open
doesn't like the additional open_options
. Not quite sure what the right fix is yet though.
Okay, it seems this fixes the issue for me, not sure how kosher that solution is though – https://github.com/jaen/bundix/commit/cd5a7931484292a69d0b7984f5d8b514a61c22da
Ugh, I also fixed this before discovering this PR. https://github.com/jdelStrother/bundix/commit/093329b4d07c41418a453a9415658bc48eed5bb7
Any chance of at least one of these solutions getting merged?
Addressed by 3d7820e
Now that the changes from this pull request are effectively in master, I'm going to close it. If there are still issues with fetching files I recommend opening a separate issue or PR.
Ruby 2.7 deprecated using open for URIs, and recommends using URI.open instead.
As of Ruby 3.0 the options argument is gone and bundix skips over http fetches.
Additional context: https://bugs.ruby-lang.org/issues/15893#note-2
Example error: