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
1fcac040
Commit
1fcac040
authored
May 03, 2014
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Command] Support CLAide version logic
parent
2e3bf3d7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
19 deletions
+21
-19
CHANGELOG.md
CHANGELOG.md
+17
-7
Gemfile.lock
Gemfile.lock
+2
-2
command.rb
lib/cocoapods/command.rb
+1
-8
command_spec.rb
spec/functional/command_spec.rb
+1
-2
No files found.
CHANGELOG.md
View file @
1fcac040
...
...
@@ -6,8 +6,17 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
##### Enhancements
*
The extremely meta
`cocoaPods-plugin`
is now installed by default providing
information about the available and the installed plug-ins.
*
The
`--version`
flag is now only supported for the root
`pod`
command. If
used in conjunction with the
`--verbose`
flag the version of the detected
plugins will be printed as well.
[
Fabio Pelosin
][
irrationalfab
]
[
CLAide#13
](
https://github.com/CocoaPods/CLAide/issues/13
)
[
CLAide#14
](
https://github.com/CocoaPods/CLAide/issues/14
)
*
The extremely meta
`cocoaPods-plugins`
is now installed by default providing
information about the available and the installed plug-ins.
[
David Grandinetti
](
https://github.com/dbgrandi
)
[
Olivier Halligon
](
https://github.com/AliSoftware
)
[
Fabio Pelosin
][
irrationalfab
]
[
#2092
](
https://github.com/CocoaPods/CocoaPods/issues/2092
)
...
...
@@ -15,8 +24,8 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
docset_url in podspecs we while linting a specification.
[
Kyle Fuller
](
https://github.com/kylef
)
[
#2025
](
https://github.com/CocoaPods/CocoaPods/issues/2025
)
*
Print current version when the repo/lockfile requires a higher version
*
Print current version when the repo/lockfile requires a higher version
.
[
Samuel E. Giddins
](
https://github.com/segiddins
)
[
#2049
](
https://github.com/CocoaPods/CocoaPods/issues/2049
)
...
...
@@ -27,7 +36,7 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
##### Bug Fixes
*
Show the actual executable when external commands fail.
*
Show the actual executable when external commands fail.
[
Boris Bügling
][
neonichu
]
[
#2102
](
https://github.com/CocoaPods/CocoaPods/issues/2102
)
...
...
@@ -36,11 +45,12 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
[
Fabio Pelosin
][
irrationalfab
]
[
Xcodeproj#105
](
https://github.com/CocoaPods/Xcodeproj/pull/150
)
*
Show a helpful error message when reading version information with merge conflict
*
Show a helpful error message when reading version information with merge
conflict.
[
Samuel E. Giddins
][
segiddins
]
[
#1853
](
https://github.com/CocoaPods/CocoaPods/issues/1853
)
*
Show deprecated specs when invoking
`pod outdated`
*
Show deprecated specs when invoking
`pod outdated`
.
[
Samuel E. Giddins
](
https://github.com/segiddins
)
[
#2003
](
https://github.com/CocoaPods/CocoaPods/issues/2003
)
...
...
Gemfile.lock
View file @
1fcac040
GIT
remote: https://github.com/CocoaPods/CLAide.git
revision:
d14c7622e87fb19e3158656b2a459c284fbe4015
revision:
fbbb2a35e92f03ac034175daa6d8e34cd8426852
branch: master
specs:
claide (0.5.0)
GIT
remote: https://github.com/CocoaPods/Core.git
revision:
bb05ef7ba950275b2fcdb5199ee297c4e5a641db
revision:
fa565c17339bf624dc309e6d8cd81894f3865868
branch: master
specs:
cocoapods-core (0.32.1)
...
...
lib/cocoapods/command.rb
View file @
1fcac040
...
...
@@ -23,13 +23,13 @@ module Pod
self
.
abstract_command
=
true
self
.
command
=
'pod'
self
.
version
=
VERSION
self
.
description
=
'CocoaPods, the Objective-C library package manager.'
self
.
plugin_prefix
=
'cocoapods'
def
self
.
options
[
[
'--silent'
,
'Show nothing'
],
[
'--version'
,
'Show the version of CocoaPods'
],
].
concat
(
super
)
end
...
...
@@ -43,13 +43,6 @@ module Pod
def
self
.
run
(
argv
)
help!
"You cannot run CocoaPods as root."
if
Process
.
uid
==
0
argv
=
CLAide
::
ARGV
.
new
(
argv
)
if
argv
.
flag?
(
'version'
)
UI
.
puts
VERSION
exit
0
end
super
(
argv
)
UI
.
print_warnings
end
...
...
spec/functional/command_spec.rb
View file @
1fcac040
...
...
@@ -5,8 +5,7 @@ module Pod
extend
SpecHelper
::
Command
it
"displays the current version number with the --version flag"
do
lambda
{
Pod
::
Command
.
run
([
'--version'
])
}.
should
.
raise
SystemExit
UI
.
output
.
should
.
include
VERSION
Pod
::
Command
.
version
.
should
==
VERSION
end
it
"reports the location of the AFNetworking spec"
do
...
...
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