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
ce70bc7d
Commit
ce70bc7d
authored
Oct 05, 2015
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[HooksManager] Send user options as a HashWithIndifferentAccess
parent
3e24463e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
hooks_manager.rb
lib/cocoapods/hooks_manager.rb
+4
-2
No files found.
lib/cocoapods/hooks_manager.rb
View file @
ce70bc7d
require
'
rubygem
s'
require
'
active_support/core_ext/hash/indifferent_acces
s'
module
Pod
module
Pod
# Provides support for the hook system of CocoaPods. The system is designed
# Provides support for the hook system of CocoaPods. The system is designed
...
@@ -112,7 +112,9 @@ module Pod
...
@@ -112,7 +112,9 @@ module Pod
"`
#{
hook
.
block
.
source_location
.
first
}
`"
do
"`
#{
hook
.
block
.
source_location
.
first
}
`"
do
block
=
hook
.
block
block
=
hook
.
block
if
block
.
arity
>
1
if
block
.
arity
>
1
block
.
call
(
context
,
whitelisted_plugins
[
hook
.
plugin_name
])
user_options
=
whitelisted_plugins
[
hook
.
plugin_name
]
user_options
=
user_options
.
with_indifferent_access
if
user_options
block
.
call
(
context
,
user_options
)
else
else
block
.
call
(
context
)
block
.
call
(
context
)
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