heroku / platform-api

Ruby HTTP client for the Heroku API
MIT License
214 stars 85 forks source link

Bump heroics to 0.1.2 for Ruby 3 compatibility #135

Open jnoconor opened 1 year ago

jnoconor commented 1 year ago

Running a Ruby 3 application with the platform-api gem can fail with an error like this:

LoadError:
  cannot load such file -- webrick
# ./config/environment.rb:8:in `require'
# ./config/environment.rb:8:in `<top (required)>'

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.