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
8a9b76f0
Commit
8a9b76f0
authored
Sep 19, 2011
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup a bit. Not doing the `spec push` command for now.
parent
1bb68e0e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
20 deletions
+8
-20
command.rb
lib/cocoapods/command.rb
+2
-1
spec.rb
lib/cocoapods/command/spec.rb
+6
-19
No files found.
lib/cocoapods/command.rb
View file @
8a9b76f0
...
@@ -36,7 +36,8 @@ module Pod
...
@@ -36,7 +36,8 @@ module Pod
" * $ pod setup --help
\n
"
\
" * $ pod setup --help
\n
"
\
" * $ pod search --help
\n
"
\
" * $ pod search --help
\n
"
\
" * $ pod install --help
\n
"
\
" * $ pod install --help
\n
"
\
" * $ pod repo --help"
" * $ pod repo --help
\n
"
\
" * $ pod spec --help"
end
end
def
self
.
options
def
self
.
options
...
...
lib/cocoapods/command/spec.rb
View file @
8a9b76f0
...
@@ -8,28 +8,19 @@ module Pod
...
@@ -8,28 +8,19 @@ module Pod
pod spec create NAME
pod spec create NAME
Creates a PodSpec, in the current working dir, called `NAME.podspec'.
Creates a PodSpec, in the current working dir, called `NAME.podspec'.
Use this for existing libraries.
pod spec lint NAME.podspec
pod spec lint NAME.podspec
Validates `NAME.podspec'. In case `NAME.podspec' is omitted, it defaults
Validates `NAME.podspec'. In case `NAME.podspec' is omitted, it defaults
to `*.podspec' in the current working dir.
to `*.podspec' in the current working dir.}
pod spec push NAME REMOTE
Validates `NAME.podspec' in the current working dir, copies it to the
local clone of the `REMOTE' spec-repo, and pushes it to the `REMOTE'
spec-repo. In case `REMOTE' is omitted, it defaults to `master'.}
end
end
def
initialize
(
argv
)
def
initialize
(
argv
)
super
unless
argv
.
arguments
.
size
==
2
args
=
argv
.
arguments
case
argv
.
arguments
.
first
unless
(
args
[
0
]
==
'create'
&&
args
.
size
==
2
)
||
when
'create'
,
'lint'
(
args
[
0
]
==
'lint'
&&
args
.
size
<=
2
)
@action
,
@name
=
argv
.
arguments
.
first
(
2
)
when
'push'
@action
,
@name
,
@remote
=
argv
.
arguments
.
first
(
3
)
else
super
super
end
end
@action
,
@name
=
args
.
first
(
2
)
end
end
def
run
def
run
...
@@ -64,14 +55,10 @@ module Pod
...
@@ -64,14 +55,10 @@ module Pod
end
end
def
lint
def
lint
file
=
@name
?
Pathname
.
new
(
@name
)
:
config
.
project_podfile
file
=
@name
?
Pathname
.
new
(
@name
)
:
Pathname
.
pwd
.
glob
(
'*.podspec'
).
first
spec
=
Specification
.
from_podspec
(
file
)
spec
=
Specification
.
from_podspec
(
file
)
spec
.
validate!
spec
.
validate!
end
end
#def push
#end
end
end
end
end
end
end
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