Skip to content

Commit 60ca9a7

Browse files
committed
add pod_target as a parameter in block
1 parent d9d8ac3 commit 60ca9a7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/cocoapods-developing-folder/command/folder.rb

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ def use_folders(*skipped_top_level_folder_names)
1717
def inhibit_warnings_with_condition(&condition)
1818
require 'cocoapods-developing-folder/command/inhibit_warnings_with_condition.rb'
1919
Pod.set_inhibit_waning_condition_block proc(&condition)
20-
Pod.inhibit_waning_condition_block.call("aaaaaa")
2120
end
2221

2322
end

lib/cocoapods-developing-folder/command/inhibit_warnings_with_condition.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class PodTarget
2323
# return the original
2424
return old_method.bind(self).()
2525
else
26-
return Pod.inhibit_waning_condition_block.call(pod_name)
26+
return Pod.inhibit_waning_condition_block.call(pod_name, self)
2727
end
2828
end
2929

0 commit comments

Comments
 (0)