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
11daa2af
Commit
11daa2af
authored
Jan 13, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2991 from timshadel/patch-2
Fix uninitialized constant Class::YAML crash
parents
644d62ff
23f30290
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
CHANGELOG.md
CHANGELOG.md
+3
-0
sources_manager.rb
lib/cocoapods/sources_manager.rb
+1
-0
No files found.
CHANGELOG.md
View file @
11daa2af
...
@@ -195,6 +195,9 @@ For more details, see :memo: [CocoaPods 0.35](http://blog.cocoapods.org/CocoaPod
...
@@ -195,6 +195,9 @@ For more details, see :memo: [CocoaPods 0.35](http://blog.cocoapods.org/CocoaPod
copying resources to main application bundle.
copying resources to main application bundle.
[
Yan Rabovik
](
https://github.com/rabovik
)
[
Yan Rabovik
](
https://github.com/rabovik
)
*
Fix uninitialized constant Class::YAML crash in some cases.
[
Tim Shadel
](
https://github.com/timshadel
)
##### Enhancements
##### Enhancements
*
`pod search`
,
`pod spec which`
,
`pod spec cat`
and
`pod spec edit`
*
`pod search`
,
`pod spec which`
,
`pod spec cat`
and
`pod spec edit`
...
...
lib/cocoapods/sources_manager.rb
View file @
11daa2af
...
@@ -144,6 +144,7 @@ module Pod
...
@@ -144,6 +144,7 @@ module Pod
def
updated_search_index
def
updated_search_index
unless
@updated_search_index
unless
@updated_search_index
if
search_index_path
.
exist?
if
search_index_path
.
exist?
require
'yaml'
stored_index
=
YAML
.
load
(
search_index_path
.
read
)
stored_index
=
YAML
.
load
(
search_index_path
.
read
)
if
stored_index
&&
stored_index
.
is_a?
(
Hash
)
if
stored_index
&&
stored_index
.
is_a?
(
Hash
)
search_index
=
aggregate
.
update_search_index
(
stored_index
)
search_index
=
aggregate
.
update_search_index
(
stored_index
)
...
...
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