-
Notifications
You must be signed in to change notification settings - Fork 84
[changelog skip] Updated CI to run with currently supported ruby versions & other hatchet improvements #149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,8 @@ | ||
| module PlatformAPI::SpecHelperMethods | ||
| def hatchet_app | ||
| config = { "FOO" => "bar" } | ||
| @hatchet_app ||= begin | ||
| app = Hatchet::Runner.new("default_ruby", buildpacks: ["heroku/ruby"]) | ||
| app = Hatchet::Runner.new("default_ruby", buildpacks: ["heroku/ruby"], config: config) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had to add this to fix the test where config vars are checked. The config vars were returning empty and causing the test to fail. By adding this, we force the hatchet app to have some config vars that can be checked in the test. I am not sure how this worked before, but my guess is that it used |
||
| app.in_directory do | ||
| app.setup! | ||
| app.push_with_retry! | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is no longer supported in Ruby 4.0. The fix is to set the path with
bundle config set path 'vendor/bundle'