Commit bd2297c1 authored by Fabio Pelosin's avatar Fabio Pelosin

[FileAcessor] Use the consumer #license and #prefix_header

parent da6c6e67
...@@ -99,7 +99,9 @@ module Pod ...@@ -99,7 +99,9 @@ module Pod
# @return [Pathname] The of the prefix header file of the specification. # @return [Pathname] The of the prefix header file of the specification.
# #
def prefix_header def prefix_header
path_list.root + spec_consumer.prefix_header_file if spec_consumer.prefix_header_file
path_list.root + spec_consumer.prefix_header_file
end
end end
# @return [Pathname] The path of the auto-detected README file. # @return [Pathname] The path of the auto-detected README file.
...@@ -112,8 +114,11 @@ module Pod ...@@ -112,8 +114,11 @@ module Pod
# specification or auto-detected. # specification or auto-detected.
# #
def license def license
specified = path_list.root + spec_consumer.spec.root.license[:file] if spec_consumer.spec.root.license[:file]
specified || path_list.glob(%w[ licen{c,s}e{*,.*} ]).first path_list.root + spec_consumer.spec.root.license[:file]
else
path_list.glob(%w[ licen{c,s}e{*,.*} ]).first
end
end 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