This is because the gem relies on heroics 0.1.1, which in turn relies on webrick but does not have it in its gemspec. Ruby 3 no longer includes webrick by default, so it needs to be explicitly added as a dependency. This work was done in https://github.com/interagent/heroics/pull/102 and released under heroics 0.1.2. Bumping the version here should solve the problem with using platform-api with Ruby 3.
Running a Ruby 3 application with the
platform-api
gem can fail with an error like this:This is because the gem relies on
heroics
0.1.1, which in turn relies onwebrick
but does not have it in its gemspec. Ruby 3 no longer includeswebrick
by default, so it needs to be explicitly added as a dependency. This work was done in https://github.com/interagent/heroics/pull/102 and released underheroics
0.1.2. Bumping the version here should solve the problem with usingplatform-api
with Ruby 3.