Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
b681d64e
Commit
b681d64e
authored
5 years ago
by
EricFromCanada
Browse files
Options
Downloads
Patches
Plain Diff
version: handle -stable in tag
parent
f37cd18e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Library/Homebrew/test/language/node_spec.rb
+1
-1
1 addition, 1 deletion
Library/Homebrew/test/language/node_spec.rb
Library/Homebrew/test/version_spec.rb
+1
-1
1 addition, 1 deletion
Library/Homebrew/test/version_spec.rb
Library/Homebrew/version.rb
+2
-2
2 additions, 2 deletions
Library/Homebrew/version.rb
with
4 additions
and
4 deletions
Library/Homebrew/test/language/node_spec.rb
+
1
−
1
View file @
b681d64e
...
...
@@ -6,7 +6,7 @@ describe Language::Node do
describe
"#setup_npm_environment"
do
it
"calls prepend_path when node formula exists only during the first call"
do
node
=
formula
"node"
do
url
"node-test"
url
"node-test
-v1.0
"
end
stub_formula_loader
(
node
)
expect
(
ENV
).
to
receive
(
:prepend_path
)
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/test/version_spec.rb
+
1
−
1
View file @
b681d64e
...
...
@@ -686,7 +686,7 @@ describe Version do
specify
"from tag"
do
expect
(
described_class
.
create
(
"1.2.3"
))
.
to
be_detected_from
(
"https://github.com/foo/bar.git"
,
tag:
"v1.2.3"
)
.
to
be_detected_from
(
"https://github.com/foo/bar.git"
,
tag:
"v1.2.3
-stable
"
)
end
specify
"beta from tag"
do
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/version.rb
+
2
−
2
View file @
b681d64e
...
...
@@ -336,11 +336,11 @@ class Version
return
m
.
captures
.
first
unless
m
.
nil?
# e.g. https://www.openssl.org/source/openssl-0.9.8s.tar.gz
m
=
/-v?([^-]+)/
.
match
(
stem
)
m
=
/-v?(
\d
[^-]+)/
.
match
(
stem
)
return
m
.
captures
.
first
unless
m
.
nil?
# e.g. astyle_1.23_macosx.tar.gz
m
=
/_
(
[^_]+)/
.
match
(
stem
)
m
=
/_
v?(\d
[^_]+)/
.
match
(
stem
)
return
m
.
captures
.
first
unless
m
.
nil?
# e.g. http://mirrors.jenkins-ci.org/war/1.486/jenkins.war
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment