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
47c4e668
Commit
47c4e668
authored
Jul 29, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pretty podfile-info && add license note to changelog
parent
944f3407
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
13 deletions
+19
-13
CHANGELOG.md
CHANGELOG.md
+5
-0
Gemfile.lock
Gemfile.lock
+4
-3
podfile_info.rb
lib/cocoapods/command/podfile_info.rb
+10
-10
No files found.
CHANGELOG.md
View file @
47c4e668
...
@@ -2,6 +2,11 @@
...
@@ -2,6 +2,11 @@
To install or update CocoaPods see this
[
guide
](
http://docs.cocoapods.org/guides/installing_cocoapods.html
)
.
To install or update CocoaPods see this
[
guide
](
http://docs.cocoapods.org/guides/installing_cocoapods.html
)
.
## Master
*
Added license information to
`podfile-info`
subcommand.
[
#1219
](
https://github.com/CocoaPods/CocoaPods/issues/1219
)
## 0.22.3
## 0.22.3
[
CocoaPods
](
https://github.com/CocoaPods/CocoaPods/compare/0.22.2...0.22.3
)
[
CocoaPods
](
https://github.com/CocoaPods/CocoaPods/compare/0.22.2...0.22.3
)
...
...
Gemfile.lock
View file @
47c4e668
...
@@ -54,6 +54,7 @@ GIT
...
@@ -54,6 +54,7 @@ GIT
coveralls (0.6.7)
coveralls (0.6.7)
multi_json (~> 1.3)
multi_json (~> 1.3)
rest-client
rest-client
simplecov (>= 0.7)
term-ansicolor
term-ansicolor
thor
thor
...
@@ -92,7 +93,7 @@ GEM
...
@@ -92,7 +93,7 @@ GEM
rb-inotify (>= 0.9)
rb-inotify (>= 0.9)
rb-kqueue (>= 0.2)
rb-kqueue (>= 0.2)
metaclass (0.0.1)
metaclass (0.0.1)
method_source (0.8.
1
)
method_source (0.8.
2
)
mime-types (1.23)
mime-types (1.23)
mocha (0.14.0)
mocha (0.14.0)
metaclass (~> 0.0.1)
metaclass (~> 0.0.1)
...
@@ -123,13 +124,13 @@ GEM
...
@@ -123,13 +124,13 @@ GEM
multi_json (~> 1.0)
multi_json (~> 1.0)
simplecov-html (~> 0.7.1)
simplecov-html (~> 0.7.1)
simplecov-html (0.7.1)
simplecov-html (0.7.1)
slop (3.4.
5
)
slop (3.4.
6
)
term-ansicolor (1.2.2)
term-ansicolor (1.2.2)
tins (~> 0.8)
tins (~> 0.8)
thor (0.18.1)
thor (0.18.1)
tins (0.8.3)
tins (0.8.3)
yajl-ruby (1.1.0)
yajl-ruby (1.1.0)
yard (0.8.
6.2
)
yard (0.8.
7
)
PLATFORMS
PLATFORMS
ruby
ruby
...
...
lib/cocoapods/command/podfile_info.rb
View file @
47c4e668
...
@@ -5,7 +5,7 @@ module Pod
...
@@ -5,7 +5,7 @@ module Pod
self
.
summary
=
'Shows information on installed Pods.'
self
.
summary
=
'Shows information on installed Pods.'
self
.
description
=
<<-
DESC
self
.
description
=
<<-
DESC
Shows information on installed Pods in current Project.
Shows information on installed Pods in current Project.
If optional `PODFILE_PATH` provided, the info will be shown for
If optional `PODFILE_PATH` provided, the info will be shown for
that specific Podfile
that specific Podfile
DESC
DESC
...
@@ -28,7 +28,7 @@ module Pod
...
@@ -28,7 +28,7 @@ module Pod
def
run
def
run
use_podfile
=
(
@podfile_path
||
!
config
.
lockfile
)
use_podfile
=
(
@podfile_path
||
!
config
.
lockfile
)
if
!
use_podfile
if
!
use_podfile
UI
.
puts
"Using lockfile"
if
config
.
verbose?
UI
.
puts
"Using lockfile"
if
config
.
verbose?
verify_lockfile_exists!
verify_lockfile_exists!
...
@@ -67,9 +67,9 @@ module Pod
...
@@ -67,9 +67,9 @@ module Pod
keys
.
each
{
|
k
|
info
[
k
]
=
spec
.
specification
.
send
(
k
)
}
keys
.
each
{
|
k
|
info
[
k
]
=
spec
.
specification
.
send
(
k
)
}
pods_info
<<
info
pods_info
<<
info
else
else
end
end
end
end
pods_info
pods_info
end
end
...
@@ -77,16 +77,17 @@ module Pod
...
@@ -77,16 +77,17 @@ module Pod
def
pods_info
(
pods
,
in_md
=
false
)
def
pods_info
(
pods
,
in_md
=
false
)
pods
=
pods_info_hash
(
pods
,
[
:name
,
:homepage
,
:summary
,
:license
])
pods
=
pods_info_hash
(
pods
,
[
:name
,
:homepage
,
:summary
,
:license
])
pods
.
each
do
|
pod
|
pods
.
each
do
|
pod
|
if
in_md
if
in_md
UI
.
puts
"* [
#{
pod
[
:name
]
}
](
#{
pod
[
:homepage
]
}
)
-
#{
pod
[
:summary
]
}
-
#{
pod
[
:license
][
:type
]
}
"
UI
.
puts
"* [
#{
pod
[
:name
]
}
](
#{
pod
[
:homepage
]
}
)
[
#{
pod
[
:license
][
:type
]
}
] -
#{
pod
[
:summary
]
}
"
else
else
UI
.
puts
"-
#{
pod
[
:name
]
}
-
#{
pod
[
:summary
]
}
-
#{
pod
[
:license
][
:type
]
}
"
UI
.
puts
"-
#{
pod
[
:name
]
}
[
#{
pod
[
:license
][
:type
]
}
]"
.
green
UI
.
puts
"
#{
pod
[
:summary
]
}
\n\n
"
end
end
end
end
end
end
end
end
end
end
end
end
\ No newline at end of file
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