Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
70b2f238
Commit
70b2f238
authored
Apr 18, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Pod:Commmand:Spec] corrected two minor bugs
parent
d2435f24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec.rb
lib/cocoapods/command/spec.rb
+3
-3
No files found.
lib/cocoapods/command/spec.rb
View file @
70b2f238
...
@@ -39,7 +39,7 @@ module Pod
...
@@ -39,7 +39,7 @@ module Pod
def
create
def
create
if
repo_id
=
@name_or_url
[
/github.com\/([^\/\.]*\/[^\/\.]*)\.*/
,
1
]
if
repo_id
=
@name_or_url
[
/github.com\/([^\/\.]*\/[^\/\.]*)\.*/
,
1
]
data
=
github_data_for_template
(
repo_id
)
data
=
github_data_for_template
(
repo_id
)
puts
semantic_versioning_notice
(
repo_id
,
data
[
:name
])
if
data
[
:
tag
]
==
'HEAD
'
puts
semantic_versioning_notice
(
repo_id
,
data
[
:name
])
if
data
[
:
version
]
==
'0.0.1
'
else
else
data
=
default_data_for_template
(
@name_or_url
)
data
=
default_data_for_template
(
@name_or_url
)
end
end
...
@@ -73,11 +73,11 @@ module Pod
...
@@ -73,11 +73,11 @@ module Pod
private
private
def
path_matches_name?
(
path
,
spec
)
def
path_matches_name?
(
path
,
spec
)
(
path
.
dirname
+
"
#{
spec
.
name
}
.podspec"
).
to_s
==
@name
(
path
.
dirname
+
"
#{
spec
.
name
}
.podspec"
).
to_s
==
@name
_or_url
end
end
def
suggested_ref_and_version
(
repo
)
def
suggested_ref_and_version
(
repo
)
tags
=
Octokit
.
tags
(
:username
=>
repo
[
'owner'
][
'login'
],
:repo
=>
repo
[
'name'
]).
map
{
|
tag
|
tag
.
name
}
tags
=
Octokit
.
tags
(
:username
=>
repo
[
'owner'
][
'login'
],
:repo
=>
repo
[
'name'
]).
map
{
|
tag
|
tag
[
"name"
]
}
versions_tags
=
{}
versions_tags
=
{}
tags
.
each
do
|
tag
|
tags
.
each
do
|
tag
|
clean_tag
=
tag
.
gsub
(
/^v(er)? ?/
,
''
)
clean_tag
=
tag
.
gsub
(
/^v(er)? ?/
,
''
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment