Commit ac99599
committed
Add support for Ruby 4.0
Ruby 4.0 removed some gems from its standard library (e.g. ostruct),
used by Rack. This is fixed in newer versions of Rack, but this require
a newer version of Sinatra, which is currently restricted in the
gemspec.
Bump the minimum version of Sinatra so that we have a version of Rack
that includ the fix. Provide appropriate fix to the code, and also
include rackup and a webserver that used to be bundled with rack but is
not anymore in the Gemfile (so that other components can be used by end
users to serve riemann-dash).
While here, prevent usage of minitest 6.0 which has some breaking
changes we do not cope with (yet).1 parent c75816a commit ac99599
4 files changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments