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
cadd89f0
Commit
cadd89f0
authored
Jul 29, 2014
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2345 from k0nserv/master
Display pods which are deprecated in a red tone when searching
parents
70c4f8aa
7a6b99b7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
2 deletions
+34
-2
CHANGELOG.md
CHANGELOG.md
+5
-0
Gemfile.lock
Gemfile.lock
+1
-1
user_interface.rb
lib/cocoapods/user_interface.rb
+9
-1
user_interface_spec.rb
spec/functional/user_interface_spec.rb
+19
-0
No files found.
CHANGELOG.md
View file @
cadd89f0
...
@@ -5,6 +5,10 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
...
@@ -5,6 +5,10 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
## Master
## Master
*
Display indication for deprecated pods when searching for pods
[
Hugo Tunius
][
k0nserv
]
[
#2180
](
https://github.com/CocoaPods/CocoaPods/issues/2180
)
##### Bug Fixes
##### Bug Fixes
*
Fixed pod repo push to first check if Specs directory exists and if so push there.
*
Fixed pod repo push to first check if Specs directory exists and if so push there.
...
@@ -2454,4 +2458,5 @@ allowing you to automate Xcode related tasks.
...
@@ -2454,4 +2458,5 @@ allowing you to automate Xcode related tasks.
[
irrationalfab
]:
https://github.com/irrationalfab
[
irrationalfab
]:
https://github.com/irrationalfab
[
kylef
]:
(https://github.com/kylef)
[
kylef
]:
(https://github.com/kylef)
[
neonichu
]:
(https://github.com/neonichu)
[
neonichu
]:
(https://github.com/neonichu)
[
k0nserv
]:
https://github.com/k0nserv
Gemfile.lock
View file @
cadd89f0
...
@@ -7,7 +7,7 @@ GIT
...
@@ -7,7 +7,7 @@ GIT
GIT
GIT
remote: https://github.com/CocoaPods/Core.git
remote: https://github.com/CocoaPods/Core.git
revision:
3b72760a736bd9733a42912882009d9e85838a6d
revision:
b264007943718f32c314e72952d312e92f1626c3
branch: master
branch: master
specs:
specs:
cocoapods-core (0.33.1)
cocoapods-core (0.33.1)
...
...
lib/cocoapods/user_interface.rb
View file @
cadd89f0
...
@@ -162,7 +162,15 @@ module Pod
...
@@ -162,7 +162,15 @@ module Pod
puts_indented
"
#{
set
.
name
}
#{
set
.
versions
.
first
.
version
}
"
puts_indented
"
#{
set
.
name
}
#{
set
.
versions
.
first
.
version
}
"
else
else
pod
=
Specification
::
Set
::
Presenter
.
new
(
set
,
statistics_provider
)
pod
=
Specification
::
Set
::
Presenter
.
new
(
set
,
statistics_provider
)
title
(
"
\n
->
#{
pod
.
name
}
(
#{
pod
.
version
}
)"
.
green
,
''
,
1
)
do
title
=
"
\n
->
#{
pod
.
name
}
(
#{
pod
.
version
}
)"
if
pod
.
deprecated?
title
+=
"
#{
pod
.
deprecation_description
}
"
colored_title
=
title
.
red
else
colored_title
=
title
.
green
end
title
(
colored_title
,
""
,
1
)
do
puts_indented
pod
.
summary
puts_indented
pod
.
summary
puts_indented
"pod '
#{
pod
.
name
}
', '~>
#{
pod
.
version
}
'"
puts_indented
"pod '
#{
pod
.
name
}
', '~>
#{
pod
.
version
}
'"
labeled
(
'Homepage'
,
pod
.
homepage
)
labeled
(
'Homepage'
,
pod
.
homepage
)
...
...
spec/functional/user_interface_spec.rb
View file @
cadd89f0
...
@@ -21,6 +21,25 @@ module Pod
...
@@ -21,6 +21,25 @@ module Pod
output
.
should
.
include?
'https://github.com/CocoaLumberjack/CocoaLumberjack.git'
output
.
should
.
include?
'https://github.com/CocoaLumberjack/CocoaLumberjack.git'
end
end
it
"Presents information about deprecation if the pod is deprecated"
do
specification
=
@set
.
specification
specification
.
deprecated
=
true
@set
.
expects
(
:specification
).
returns
(
specification
)
UI
.
pod
(
@set
)
output
=
UI
.
output
output
.
should
.
include?
"[DEPRECATED]"
end
it
"Presents information about the deprecation in favor of another pod"
do
specification
=
@set
.
specification
specification
.
deprecated_in_favor_of
=
"NewMoreAwesomePod"
@set
.
expects
(
:specification
).
returns
(
specification
)
UI
.
pod
(
@set
)
output
=
UI
.
output
output
.
should
.
include?
"[DEPRECATED in favor of NewMoreAwesomePod]"
end
it
"presents the stats of a specification set"
do
it
"presents the stats of a specification set"
do
Specification
::
Set
::
Presenter
.
any_instance
.
expects
(
:github_last_activity
).
returns
(
'more than a year ago'
)
Specification
::
Set
::
Presenter
.
any_instance
.
expects
(
:github_last_activity
).
returns
(
'more than a year ago'
)
Specification
::
Set
::
Presenter
.
any_instance
.
expects
(
:github_watchers
).
returns
(
'318'
)
Specification
::
Set
::
Presenter
.
any_instance
.
expects
(
:github_watchers
).
returns
(
'318'
)
...
...
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