-
Notifications
You must be signed in to change notification settings - Fork 4
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
Use a version constant instead of parsing gemspec #23
Conversation
Kudos, SonarCloud Quality Gate passed! |
0304fe0
to
331126a
Compare
@vanessa-passage Would I be able to get a review on this PR? Without it it's hard to deploy to a containerized environment. |
The test failures seem to be related to my fork not including the expected environment variables: env:
API_KEY:
APP_ID:
PSG_JWT:
TEST_USER_ID: |
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.
@DerekStride looks good!
Tested locally, all tests are passing.
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.
Sorry for the request after the approval. Can you revert the version bump?
Kudos, SonarCloud Quality Gate passed! |
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.
All good, I've updated the PR, should be good to go. Let me know if there's anything else I can update.
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.
👍 LGTM
Issue
When deploying an application to a container that doesn't contain
git
the passage client throws an error when trying to add the version number to the header.passage-ruby/lib/passageidentity/client.rb
Lines 99 to 101 in 3bd08db
This line calls out to the shell to run the
git ls-files
command:passage-ruby/passageidentity.gemspec
Line 22 in 3bd08db
Error
Solution
This PR changes this project to use the more standard RubyGems approach to have a
VERSION
constant defined and loaded in the gemspec. I've tested my fork on my application and it seems to work as expected.