-
Notifications
You must be signed in to change notification settings - Fork 0
Fix swap-deps to use correct Bundler syntax for Git tags (#38) #43
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2486ff6
Fix swap-deps to use correct Bundler syntax for Git tags
justin808 5a2a88f
Handle edge cases: tags named main/master and master branch default
justin808 44e7541
Add concrete examples for tag syntax in documentation
justin808 803484e
Add tag and branch syntax examples to .new-demo-versions
justin808 8636f47
Make new-demo consistent with swap-deps GitHub syntax
justin808 722579b
Eliminate code duplication by using shared GitHubSpecParser
justin808 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,9 +10,19 @@ | |
| RAILS_VERSION="8.0.3" | ||
|
|
||
| # Shakapacker version (use ~> for compatibility range, or specific version) | ||
| # Examples: | ||
| # SHAKAPACKER_VERSION="~> 9.0" # Published gem version | ||
| # SHAKAPACKER_VERSION="github:shakacode/shakapacker" # GitHub main branch (default) | ||
| # SHAKAPACKER_VERSION="github:shakacode/shakapacker#fix-hmr" # GitHub branch (use #) | ||
| # SHAKAPACKER_VERSION="github:shakacode/[email protected]" # GitHub tag (use @) | ||
| SHAKAPACKER_VERSION="github:shakacode/shakapacker" | ||
|
|
||
| # React on Rails version (use ~> for compatibility range, or specific version) | ||
| # Examples: | ||
| # REACT_ON_RAILS_VERSION="~> 16.1" # Published gem version | ||
| # REACT_ON_RAILS_VERSION="github:shakacode/react_on_rails" # GitHub main branch (default) | ||
| # REACT_ON_RAILS_VERSION="github:shakacode/react_on_rails#feature-x" # GitHub branch (use #) | ||
| # REACT_ON_RAILS_VERSION="github:shakacode/[email protected]" # GitHub tag (use @) | ||
| REACT_ON_RAILS_VERSION="~> 16.1" | ||
|
|
||
| # ═══════════════════════════════════════════════════════════════════════ | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,24 +30,31 @@ gems: | |
| # Repos are cloned to ~/.cache/swap-deps/ and built automatically | ||
| github: | ||
| # Simple format (uses 'main' branch by default) | ||
| shakapacker: shakacode/shakapacker | ||
| # shakapacker: shakacode/shakapacker | ||
|
|
||
| # With custom branch or tag: | ||
| # Format 1: String with #branch or @tag | ||
| # react_on_rails: shakacode/react_on_rails#feature-branch | ||
| # Branch example: Use # for branches | ||
| # shakapacker: shakacode/shakapacker#fix-hmr | ||
|
|
||
| # Tag example: Use @ for tags (Bundler will use 'tag:' parameter) | ||
| # react_on_rails: shakacode/[email protected] | ||
|
|
||
| # Format 2: Hash with repo and branch | ||
| # Format 2: Hash with repo and branch/tag | ||
| # react_on_rails: | ||
| # repo: shakacode/react_on_rails | ||
| # branch: feature-branch-name | ||
| # ref_type: branch # or :tag | ||
|
|
||
| # Examples: | ||
| # Common examples: | ||
| # - Test a PR branch: shakacode/shakapacker#fix-hmr | ||
| # - Test from a fork: yourname/react_on_rails#experimental | ||
| # - Use a release tag: shakacode/[email protected] | ||
| # - Use a specific release tag: shakacode/[email protected] | ||
| # - Use a pre-release tag: shakacode/[email protected] | ||
| # - Use stable branch: shakacode/shakapacker#v8-stable | ||
|
|
||
| # Real-world tag examples: | ||
| # shakapacker: shakacode/[email protected] # Generates: gem "shakapacker", github: "...", tag: "v9.0.0" | ||
| # react_on_rails: shakacode/[email protected] # Generates: gem "react_on_rails", github: "...", tag: "v16.1.0" | ||
|
|
||
| # You can mix local paths (gems:) and GitHub repos (github:) | ||
| # GitHub repos are cloned, built, and treated like local paths | ||
|
|
||
|
|
||
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
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
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
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
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
Oops, something went wrong.
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.
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.
The documentation comment indicates
org/repo@branchreturns:branchfor backward compatibility, but the actual implementation on line 23 returns:tag. This inconsistency between documentation and implementation could confuse users.