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
0d80c0d7
Commit
0d80c0d7
authored
Jun 06, 2015
by
Daniel Tomlinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Validate the CocoaPods version against the specification
parent
9620191c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
analyzer.rb
lib/cocoapods/installer/analyzer.rb
+1
-0
podspec_finder.rb
lib/cocoapods/sandbox/podspec_finder.rb
+1
-0
No files found.
lib/cocoapods/installer/analyzer.rb
View file @
0d80c0d7
...
...
@@ -451,6 +451,7 @@ module Pod
UI
.
section
"Resolving dependencies of
#{
UI
.
path
podfile
.
defined_in_file
}
"
do
resolver
=
Resolver
.
new
(
sandbox
,
podfile
,
locked_dependencies
,
sources
)
specs_by_target
=
resolver
.
resolve
specs_by_target
.
values
.
flatten
(
1
).
each
(
&
:validate_cocoapods_version
)
end
specs_by_target
end
...
...
lib/cocoapods/sandbox/podspec_finder.rb
View file @
0d80c0d7
...
...
@@ -14,6 +14,7 @@ module Pod
spec_files
.
sort_by
{
|
p
|
-
p
.
to_path
.
split
(
File
::
SEPARATOR
).
size
}.
each
do
|
file
|
begin
spec
=
Specification
.
from_file
(
file
)
spec
.
validate_cocoapods_version
@specs_by_name
[
spec
.
name
]
=
spec
rescue
=>
e
UI
.
warn
"Unable to load a podspec from `
#{
file
.
basename
}
`, skipping:
\n\n
#{
e
}
"
...
...
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