Commit 4af70740 authored by Orta's avatar Orta

Merge pull request #4318 from CocoaPods/seg-hooks-indifferent-acces

[HooksManager] Send user options as a HashWithIndifferentAccess
parents 3e24463e ce70bc7d
require 'rubygems'
require 'active_support/core_ext/hash/indifferent_access'
module Pod
# Provides support for the hook system of CocoaPods. The system is designed
......@@ -112,7 +112,9 @@ module Pod
"`#{hook.block.source_location.first}`" do
block = hook.block
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
block.call(context)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment