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
6ac6f7e1
Commit
6ac6f7e1
authored
Apr 03, 2018
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix storing cached specs in the sandbox
parent
5762646a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
abstract_external_source.rb
lib/cocoapods/external_sources/abstract_external_source.rb
+6
-3
sandbox.rb
lib/cocoapods/sandbox.rb
+2
-2
No files found.
lib/cocoapods/external_sources/abstract_external_source.rb
View file @
6ac6f7e1
...
@@ -170,14 +170,15 @@ module Pod
...
@@ -170,14 +170,15 @@ module Pod
rescue
Pod
::
DSLError
=>
e
rescue
Pod
::
DSLError
=>
e
raise
Informative
,
"Failed to load '
#{
name
}
' podspec:
#{
e
.
message
}
"
raise
Informative
,
"Failed to load '
#{
name
}
' podspec:
#{
e
.
message
}
"
end
end
defined_in_file
=
spec
.
defined_in_file
spec
.
defined_in_file
=
nil
validate_podspec
(
spec
)
validate_podspec
(
spec
)
spec
.
defined_in_file
=
defined_in_file
sandbox
.
store_podspec
(
name
,
spec
,
true
,
true
)
sandbox
.
store_podspec
(
name
,
spec
,
true
,
true
)
end
end
def
validate_podspec
(
podspec
)
def
validate_podspec
(
podspec
)
defined_in_file
=
podspec
.
defined_in_file
podspec
.
defined_in_file
=
nil
validator
=
validator_for_podspec
(
podspec
)
validator
=
validator_for_podspec
(
podspec
)
validator
.
quick
=
true
validator
.
quick
=
true
validator
.
allow_warnings
=
true
validator
.
allow_warnings
=
true
...
@@ -188,6 +189,8 @@ module Pod
...
@@ -188,6 +189,8 @@ module Pod
unless
validator
.
validated?
unless
validator
.
validated?
raise
Informative
,
"The `
#{
name
}
` pod failed to validate due to
#{
validator
.
failure_reason
}
:
\n
#{
validator
.
results_message
}
"
raise
Informative
,
"The `
#{
name
}
` pod failed to validate due to
#{
validator
.
failure_reason
}
:
\n
#{
validator
.
results_message
}
"
end
end
ensure
podspec
.
defined_in_file
=
defined_in_file
end
end
def
validator_for_podspec
(
podspec
)
def
validator_for_podspec
(
podspec
)
...
...
lib/cocoapods/sandbox.rb
View file @
6ac6f7e1
...
@@ -266,8 +266,8 @@ module Pod
...
@@ -266,8 +266,8 @@ module Pod
raise
ArgumentError
unless
json
raise
ArgumentError
unless
json
output_path
.
open
(
'w'
)
{
|
f
|
f
.
puts
(
podspec
.
to_pretty_json
)
}
output_path
.
open
(
'w'
)
{
|
f
|
f
.
puts
(
podspec
.
to_pretty_json
)
}
spec
=
podspec
.
dup
spec
=
podspec
.
dup
spec
.
defined_in_file
=
output_path
else
else
raise
ArgumentError
raise
ArgumentError
,
"Unknown type for podspec:
#{
podspec
.
inspect
}
"
end
end
spec
||=
Specification
.
from_file
(
output_path
)
spec
||=
Specification
.
from_file
(
output_path
)
...
...
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