-
-
Notifications
You must be signed in to change notification settings - Fork 221
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
fix GLI usage breaking faraday >= 2.7.0 #434
fix GLI usage breaking faraday >= 2.7.0 #434
Conversation
be86f7a
to
f41c529
Compare
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.
These files are auto-generated to keep up with the API, so you want to modify the .erb template and re-generate them, not delete the template. You can do a 1-time update separately so that we can have something clean for this PR, let's start there?
That's what I did, I just did it while the code to update the submodule was commented out. What documentation updates are required when new API features are pulled in? I don't really understand the scope of changes that come with updating the submodule. |
Generated by 🚫 Danger |
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.
Looks good! Danger complained re:CHANGELOG format, could you please fix and I'll merge?
Only CHANGELOG. You can leave that alone for now. |
when using include at the top level, the module gets included in the Object class Faraday::Middleware checks whether it responds to on_error, which then finds GLI's on_error, which has a different signature and meaning this resolves that by wrapping the entire CLI in a class so that GLI::App is not included in Object we also use GLI's built-in commands_from method to avoid having to reference every command file individually
f41c529
to
1ab48c2
Compare
Fixed! |
FYI I decided to rename |
I'm pretty indifferent on that particular point as long as it's consistent. |
when using include at the top level, the module gets included in the Object class
Faraday::Middleware
checks whether it responds toon_error
, which then finds GLI'son_error
, which has a different signature and meaningthis resolves that by wrapping the entire CLI in a class so that
GLI::App
is not included inObject
we also use GLI's built-in
commands_from
method to avoid having to reference every command file individuallyResolves #433
Note: The
slack:web:api:update
task seemed to want to pull in some new stuff - since that usually seems to be done separately I have intentionally excluded that but can include it if you want