Commit a17691c
authored
chore: fix the build for ruby 3.0.x
* Add webrick as a dev dependency
webrick is no longer a bundled dependency for Ruby 3 and up.
* Fix translation errors in Ruby 3.x
Ruby 3 is stricter about hashes being used interchangeably with
keyword arguments, and will give errors like:
ArgumentError: wrong number of arguments (given 2, expected 0..1)
Explicitly map options hash to positional argument with ** to fix
* Replace Proc.new usage for Ruby 3
Ruby 3 no longer supports Proc.new without a block to mean "the block
that was passed to this method". Use an explicit &block instead
This commit does not fix as-notifications, on this line:
https://github.com/bernd/as-notifications/blob/v1.0.0/lib/as/notifications/fanout.rb#L18
* Update as-notifications to 1.0.2
Since 1.0.2 is now compatible with Ruby 3.0, we have one spec
we no longer have to use the Proc.new { } form with.
Thanks Bernd!1 parent 9a6ced4 commit a17691c
File tree
3 files changed
+6
-4
lines changed- lib/webmachine
- dispatcher
3 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
0 commit comments