This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Add a gem signatures command#51
Merged
Merged
Conversation
0349c06 to
e42802d
Compare
rochlefebvre
commented
Dec 16, 2021
| # end | ||
|
|
||
| def execute | ||
| gem_path = get_one_gem_name |
rochlefebvre
commented
Dec 16, 2021
rochlefebvre
commented
Dec 16, 2021
| require 'rubygems/command_manager' | ||
| require 'rubygems/sigstore' | ||
| require 'rubygems/commands/signatures_command' | ||
| require 'rubygems/commands/sign_command' |
Author
There was a problem hiding this comment.
In a follow up PR, we'll rip out the dedicated sign and verify commands.
rochlefebvre
commented
Dec 16, 2021
|
|
||
| @gem_path = gem_path("hello-world.gem") | ||
| @cmd = Gem::Commands::SignaturesCommand.new | ||
| end |
Author
There was a problem hiding this comment.
I chose to move the request stubbing into the tests. There is no overlap between signing and verifying requests.
jchestershopify
approved these changes
Dec 16, 2021
jchestershopify
left a comment
There was a problem hiding this comment.
Some questions, but otherwise LGTM.
Comment on lines
+51
to
+53
| # def usage # :nodoc: | ||
| # "gem signatures GEMNAME" | ||
| # end |
There was a problem hiding this comment.
Should this be commented out? Removed?
Author
There was a problem hiding this comment.
I thought of leaving it as an eyesore so we write a proper usage blurb in a follow up documentation/copy PR.
doodzik
approved these changes
Dec 17, 2021
e42802d to
7c00ea3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #35, replaces #49. I will update #35 with our discussion and decisions.
🎩
Help (proper copy and USAGE will come in later PRs)
Default command behaviour: --verify
Short and long forms for --verify
Long form for --sign (signing with my @Shopify address)
Verify works when the gem is signed
Sign and then verify in the same command (signing with my @gmail address)