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
3ece3e70
Commit
3ece3e70
authored
Apr 14, 2014
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warn for deprecated specs on outdated
parent
23aece25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
outdated.rb
lib/cocoapods/command/outdated.rb
+19
-0
No files found.
lib/cocoapods/command/outdated.rb
View file @
3ece3e70
...
@@ -29,14 +29,19 @@ module Pod
...
@@ -29,14 +29,19 @@ module Pod
lockfile
=
config
.
lockfile
lockfile
=
config
.
lockfile
pods
=
lockfile
.
pod_names
pods
=
lockfile
.
pod_names
updates
=
[]
updates
=
[]
deprecated
=
[]
pods
.
each
do
|
pod_name
|
pods
.
each
do
|
pod_name
|
set
=
SourcesManager
.
search
(
Dependency
.
new
(
pod_name
))
set
=
SourcesManager
.
search
(
Dependency
.
new
(
pod_name
))
next
unless
set
next
unless
set
spec
=
set
.
specification
source_version
=
set
.
versions
.
first
source_version
=
set
.
versions
.
first
lockfile_version
=
lockfile
.
version
(
pod_name
)
lockfile_version
=
lockfile
.
version
(
pod_name
)
if
source_version
>
lockfile_version
if
source_version
>
lockfile_version
updates
<<
[
pod_name
,
lockfile_version
,
source_version
]
updates
<<
[
pod_name
,
lockfile_version
,
source_version
]
end
end
if
spec
.
deprecated
||
spec
.
deprecated_in_favor_of
deprecated
<<
spec
end
end
end
if
updates
.
empty?
if
updates
.
empty?
...
@@ -48,6 +53,20 @@ module Pod
...
@@ -48,6 +53,20 @@ module Pod
end
end
end
end
end
end
if
deprecated
.
any?
UI
.
section
'The following pods are deprecated:'
do
deprecated
.
each
do
|
spec
|
if
spec
.
deprecated_in_favor_of
UI
.
puts
"-
#{
spec
.
name
}
in "
\
"favor of
#{
spec
.
deprecated_in_favor_of
}
"
else
UI
.
puts
"-
#{
spec
.
name
}
"
end
end
end
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