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
20a06e76
Commit
20a06e76
authored
May 21, 2014
by
Olivier Halligon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed CLAide::Argument[] to CLAide::Argument.new as Argument[] was removed
parent
9b95a8e8
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
23 additions
and
22 deletions
+23
-22
help.rb
lib/cocoapods/command/help.rb
+1
-1
init.rb
lib/cocoapods/command/init.rb
+1
-1
inter_process_communication.rb
lib/cocoapods/command/inter_process_communication.rb
+2
-2
lib.rb
lib/cocoapods/command/lib.rb
+2
-2
project.rb
lib/cocoapods/command/project.rb
+1
-1
repo.rb
lib/cocoapods/command/repo.rb
+6
-6
push.rb
lib/cocoapods/command/repo/push.rb
+2
-2
search.rb
lib/cocoapods/command/search.rb
+1
-1
spec.rb
lib/cocoapods/command/spec.rb
+5
-5
help_spec.rb
spec/functional/command/help_spec.rb
+2
-1
No files found.
lib/cocoapods/command/help.rb
View file @
20a06e76
...
...
@@ -3,7 +3,7 @@ module Pod
class
Help
<
Command
self
.
summary
=
'Show help for the given command.'
self
.
arguments
=
[
CLAide
::
Argument
[
'COMMAND'
,
false
]
CLAide
::
Argument
.
new
(
'COMMAND'
,
false
)
]
def
initialize
(
argv
)
...
...
lib/cocoapods/command/init.rb
View file @
20a06e76
...
...
@@ -18,7 +18,7 @@ module Pod
`~/.cocoapods/templates` folder.
DESC
self
.
arguments
=
[
CLAide
::
Argument
[
'XCODEPROJ'
,
:false
]
CLAide
::
Argument
.
new
(
'XCODEPROJ'
,
:false
)
]
def
initialize
(
argv
)
...
...
lib/cocoapods/command/inter_process_communication.rb
View file @
20a06e76
...
...
@@ -16,7 +16,7 @@ module Pod
self
.
summary
=
'Converts a podspec to JSON.'
self
.
description
=
'Converts a podspec to JSON and prints it to STDOUT.'
self
.
arguments
=
[
CLAide
::
Argument
[
'PATH'
,
true
]
CLAide
::
Argument
.
new
(
'PATH'
,
true
)
]
def
initialize
(
argv
)
...
...
@@ -43,7 +43,7 @@ module Pod
self
.
summary
=
'Converts a Podfile to YAML.'
self
.
description
=
'Converts a Podfile to YAML and prints it to STDOUT.'
self
.
arguments
=
[
CLAide
::
Argument
[
'PATH'
,
true
]
CLAide
::
Argument
.
new
(
'PATH'
,
true
)
]
def
initialize
(
argv
)
...
...
lib/cocoapods/command/lib.rb
View file @
20a06e76
...
...
@@ -17,8 +17,8 @@ module Pod
DESC
self
.
arguments
=
[
CLAide
::
Argument
[
'NAME'
,
true
]
,
CLAide
::
Argument
[
'TEMPLATE_URL'
,
false
]
CLAide
::
Argument
.
new
(
'NAME'
,
true
)
,
CLAide
::
Argument
.
new
(
'TEMPLATE_URL'
,
false
)
]
def
initialize
(
argv
)
...
...
lib/cocoapods/command/project.rb
View file @
20a06e76
...
...
@@ -87,7 +87,7 @@ module Pod
DESC
self
.
arguments
=
[
CLAide
::
Argument
[
'POD_NAMES...'
,
false
]
CLAide
::
Argument
.
new
(
'POD_NAMES...'
,
false
)
]
def
initialize
(
argv
)
...
...
lib/cocoapods/command/repo.rb
View file @
20a06e76
...
...
@@ -19,9 +19,9 @@ module Pod
DESC
self
.
arguments
=
[
CLAide
::
Argument
[
'NAME'
,
true
]
,
CLAide
::
Argument
[
'URL'
,
true
]
,
CLAide
::
Argument
[
'BRANCH'
,
false
]
CLAide
::
Argument
.
new
(
'NAME'
,
true
)
,
CLAide
::
Argument
.
new
(
'URL'
,
true
)
,
CLAide
::
Argument
.
new
(
'BRANCH'
,
false
)
]
def
self
.
options
...
...
@@ -69,7 +69,7 @@ module Pod
DESC
self
.
arguments
=
[
CLAide
::
Argument
[
'NAME'
,
false
]
CLAide
::
Argument
.
new
(
'NAME'
,
false
)
]
def
initialize
(
argv
)
...
...
@@ -94,7 +94,7 @@ module Pod
DESC
self
.
arguments
=
[
CLAide
::
Argument
[
%w(NAME DIRECTORY)
,
false
]
CLAide
::
Argument
.
new
(
%w(NAME DIRECTORY)
,
false
)
]
def
self
.
options
...
...
@@ -162,7 +162,7 @@ module Pod
DESC
self
.
arguments
=
[
CLAide
::
Argument
[
'NAME'
,
true
]
CLAide
::
Argument
.
new
(
'NAME'
,
true
)
]
def
initialize
(
argv
)
...
...
lib/cocoapods/command/repo/push.rb
View file @
20a06e76
...
...
@@ -15,8 +15,8 @@ module Pod
DESC
self
.
arguments
=
[
CLAide
::
Argument
[
'REPO'
,
true
]
,
CLAide
::
Argument
[
'NAME.podspec'
,
false
]
CLAide
::
Argument
.
new
(
'REPO'
,
true
)
,
CLAide
::
Argument
.
new
(
'NAME.podspec'
,
false
)
]
def
self
.
options
...
...
lib/cocoapods/command/search.rb
View file @
20a06e76
...
...
@@ -10,7 +10,7 @@ module Pod
DESC
self
.
arguments
=
[
CLAide
::
Argument
[
'QUERY'
,
true
]
CLAide
::
Argument
.
new
(
'QUERY'
,
true
)
]
def
self
.
options
...
...
lib/cocoapods/command/spec.rb
View file @
20a06e76
...
...
@@ -19,7 +19,7 @@ module Pod
DESC
self
.
arguments
=
[
CLAide
::
Argument
[
%w(NAME https://github.com/USER/REPO)
,
false
]
CLAide
::
Argument
.
new
(
%w(NAME https://github.com/USER/REPO)
,
false
)
]
def
initialize
(
argv
)
...
...
@@ -59,7 +59,7 @@ module Pod
DESC
self
.
arguments
=
[
CLAide
::
Argument
[
%w(NAME.podspec DIRECTORY http://PATH/NAME.podspec ...)
,
false
]
CLAide
::
Argument
.
new
(
%w(NAME.podspec DIRECTORY http://PATH/NAME.podspec ...)
,
false
)
]
def
self
.
options
...
...
@@ -153,7 +153,7 @@ module Pod
DESC
self
.
arguments
=
[
CLAide
::
Argument
[
'NAME'
,
false
]
CLAide
::
Argument
.
new
(
'NAME'
,
false
)
]
def
self
.
options
...
...
@@ -187,7 +187,7 @@ module Pod
DESC
self
.
arguments
=
[
CLAide
::
Argument
[
'NAME'
,
false
]
CLAide
::
Argument
.
new
(
'NAME'
,
false
)
]
def
self
.
options
...
...
@@ -229,7 +229,7 @@ module Pod
DESC
self
.
arguments
=
[
CLAide
::
Argument
[
'NAME'
,
false
]
CLAide
::
Argument
.
new
(
'NAME'
,
false
)
]
def
self
.
options
...
...
spec/functional/command/help_spec.rb
View file @
20a06e76
...
...
@@ -15,7 +15,8 @@ module Pod
end
it
"shows the right usage"
do
Pod
::
Command
::
Help
.
arguments
.
should
.
equal
[[
'COMMAND'
,
:optional
]]
args
=
[
CLAide
::
Argument
.
new
(
'COMMAND'
,
false
)]
Pod
::
Command
::
Help
.
arguments
.
should
.
equal
args
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