Commit c6b210b0 authored by Eloy Durán's avatar Eloy Durán

Various doc and style fixes.

parent c8ce4ad1
......@@ -8,7 +8,7 @@ module Pod
#
attr_reader :sandbox
# @return [Array<Library>] The libraries of the installation.
# @return [Array<PodTarget>] The libraries of the installation.
#
attr_reader :libraries
......@@ -17,7 +17,7 @@ module Pod
attr_reader :pods_project
# @param [Sandbox] sandbox @see sandbox
# @param [Array<Library>] libraries @see libraries
# @param [Array<PodTarget>] libraries @see libraries
# @param [Project] libraries @see libraries
#
def initialize(sandbox, libraries, pods_project)
......@@ -167,11 +167,12 @@ module Pod
# Computes the destination sub-directory in the sandbox
#
# @param [Pathname] headers_sandbox
# The sandbox where the headers links should be stored for this
# The sandbox where the header links should be stored for this
# Pod.
#
# @param [Specification::Consumer] consumer
# The consumer for which the headers need to be linked.
# @param [Sandbox::FileAccessor] file_accessor
# The consumer file accessor for which the headers need to be
# linked.
#
# @param [Array<Pathname>] headers
# The absolute paths of the headers which need to be mapped.
......
......@@ -149,7 +149,7 @@ module Pod
# @return [Pathname] The path of the auto-detected README file.
#
def readme
path_list.glob(%w( readme{*,.*} )).first
path_list.glob(['readme{*,.*}']).first
end
# @return [Pathname] The path of the license file as indicated in the
......@@ -159,7 +159,7 @@ module Pod
if spec_consumer.spec.root.license[:file]
path_list.root + spec_consumer.spec.root.license[:file]
else
path_list.glob(%w( licen{c,s}e{*,.*} )).first
path_list.glob(['licen{c,s}e{*,.*}']).first
end
end
......@@ -195,12 +195,12 @@ module Pod
#
# @return [String] the glob pattern.
#
def glob_for_attribute(attrbute)
def glob_for_attribute(attribute)
globs = {
:source_files => '*.{h,hpp,hh,m,mm,c,cpp}'.freeze,
:public_header_files => "*.{#{ HEADER_EXTENSIONS * ',' }}".freeze,
}
globs[attrbute]
globs[attribute]
end
# Matches the given patterns to the file present in the root of the path
......
......@@ -74,7 +74,7 @@ module Pod
]
end
it 'filters the private headers form the public headers' do
it 'filters the private headers from the public headers' do
@spec_consumer.stubs(:public_header_files).returns([])
@spec_consumer.stubs(:private_header_files).returns(['**/*Private*'])
@accessor.public_headers.sort.should == [
......
......@@ -12,7 +12,7 @@ module Pod
@header_dir.root.should == temporary_directory + 'Sandbox/Headers/Public'
end
it "can add namespaced headers to it's header path using symlinks and return the relative path" do
it "can add namespaced headers to its header path using symlinks and return the relative path" do
FileUtils.mkdir_p(@sandbox.root + 'ExampleLib/')
namespace_path = Pathname.new('ExampleLib')
relative_header_paths = [
......
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