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
1f17293f
Commit
1f17293f
authored
Apr 05, 2018
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix checksums for external source pods
parent
867d055b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
7 deletions
+13
-7
abstract_external_source.rb
lib/cocoapods/external_sources/abstract_external_source.rb
+6
-2
sandbox_analyzer.rb
lib/cocoapods/installer/analyzer/sandbox_analyzer.rb
+1
-2
file_references_installer.rb
...xcode/pods_project_generator/file_references_installer.rb
+5
-2
sandbox.rb
lib/cocoapods/sandbox.rb
+1
-0
abstract_external_source_spec.rb
spec/unit/external_sources/abstract_external_source_spec.rb
+0
-1
No files found.
lib/cocoapods/external_sources/abstract_external_source.rb
View file @
1f17293f
...
...
@@ -119,10 +119,14 @@ module Pod
rescue
=>
_
raise
Informative
,
"Failed to download '
#{
name
}
'."
end
spec
=
download_result
.
spec
spec
=
download_result
.
spec
raise
Informative
,
"Unable to find a specification for '
#{
name
}
'."
unless
spec
# since the podspec might be cleaned, we want the checksum to refer
# to the json in the sandbox
spec
.
defined_in_file
=
nil
store_podspec
(
sandbox
,
spec
)
sandbox
.
store_pre_downloaded_pod
(
name
)
sandbox
.
store_checkout_source
(
name
,
download_result
.
checkout_options
)
...
...
@@ -161,7 +165,7 @@ module Pod
when
String
path
=
"
#{
name
}
.podspec"
path
<<
'.json'
if
json
Specification
.
from_string
(
spec
,
path
)
Specification
.
from_string
(
spec
,
path
)
.
tap
{
|
s
|
s
.
defined_in_file
=
nil
}
when
Specification
spec
.
dup
else
...
...
lib/cocoapods/installer/analyzer/sandbox_analyzer.rb
View file @
1f17293f
...
...
@@ -103,8 +103,7 @@ module Pod
#
def
pod_added?
(
pod
)
return
true
if
resolved_pods
.
include?
(
pod
)
&&
!
sandbox_pods
.
include?
(
pod
)
return
true
unless
folder_exist?
(
pod
)
return
false
if
!
folder_exist?
(
pod
)
&&
!
sandbox
.
local?
(
pod
)
return
true
if
!
folder_exist?
(
pod
)
&&
!
sandbox
.
local?
(
pod
)
false
end
...
...
lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb
View file @
1f17293f
...
...
@@ -115,6 +115,7 @@ module Pod
next
unless
sandbox
.
local?
(
pod_name
)
root_name
=
Specification
.
root_name
(
pod_name
)
paths
=
file_accessor
.
developer_files
next
if
paths
.
empty?
group
=
pods_project
.
group_for_spec
(
root_name
,
:developer
)
paths
.
each
do
|
path
|
ref
=
pods_project
.
add_file_reference
(
path
,
group
,
false
)
...
...
@@ -203,10 +204,12 @@ module Pod
#
def
add_file_accessors_paths_to_pods_group
(
file_accessor_key
,
group_key
=
nil
,
reflect_file_system_structure_for_development
=
false
)
file_accessors
.
each
do
|
file_accessor
|
pod_name
=
file_accessor
.
spec
.
name
local
=
sandbox
.
local?
(
pod_name
)
paths
=
file_accessor
.
send
(
file_accessor_key
)
paths
=
allowable_project_paths
(
paths
)
next
if
paths
.
empty?
pod_name
=
file_accessor
.
spec
.
name
local
=
sandbox
.
local?
(
pod_name
)
base_path
=
local
?
common_path
(
paths
)
:
nil
group
=
pods_project
.
group_for_spec
(
pod_name
,
group_key
)
paths
.
each
do
|
path
|
...
...
lib/cocoapods/sandbox.rb
View file @
1f17293f
...
...
@@ -272,6 +272,7 @@ module Pod
end
spec
||=
Specification
.
from_file
(
output_path
)
spec
.
defined_in_file
||=
output_path
unless
spec
.
name
==
name
raise
Informative
,
"The name of the given podspec `
#{
spec
.
name
}
` doesn't match the expected one `
#{
name
}
`"
...
...
spec/unit/external_sources/abstract_external_source_spec.rb
View file @
1f17293f
...
...
@@ -69,7 +69,6 @@ module Pod
describe
'Subclasses helpers'
do
it
'pre-downloads the Pod and stores the relevant information in the sandbox'
do
@subject
.
expects
(
:validate_podspec
).
with
do
|
spec
|
spec
.
defined_in_file
.
should
.
be
.
nil
spec
.
name
.
should
==
'Reachability'
end
@subject
.
send
(
:pre_download
,
config
.
sandbox
)
...
...
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