Commit a5d6e9af authored by Fabio Pelosin's avatar Fabio Pelosin

Removed trailing white spaces

parent 5981e6ca
......@@ -3,19 +3,19 @@ module Pod
attr_reader :specification
attr_reader :sandbox
attr_reader :platform
def initialize(specification, sandbox, platform)
@specification, @sandbox, @platform = specification, sandbox, platform
end
def self.from_podspec(podspec, sandbox, platform)
new(Specification.from_file(podspec), sandbox, platform)
end
def root
@sandbox.root + specification.name
end
def to_s
if specification.local?
"#{specification} [LOCAL]"
......@@ -23,28 +23,28 @@ module Pod
specification.to_s
end
end
def name
specification.name
end
def create
root.mkpath unless exists?
end
def exists?
root.exist?
end
def chdir(&block)
create
Dir.chdir(root, &block)
end
def implode
root.rmtree if exists?
end
def clean
clean_paths.each { |path| FileUtils.rm_rf(path) }
end
......@@ -54,19 +54,19 @@ module Pod
@sandbox.root + specification.name + prefix_header
end
end
def source_files
expanded_paths(specification.source_files, :glob => '*.{h,m,mm,c,cpp}', :relative_to_sandbox => true)
end
def absolute_source_files
expanded_paths(specification.source_files, :glob => '*.{h,m,mm,c,cpp}')
end
def clean_paths
expanded_paths(specification.clean_paths)
end
def resources
expanded_paths(specification.resources, :relative_to_sandbox => true)
end
......@@ -74,19 +74,19 @@ module Pod
def header_files
source_files.select { |f| f.extname == '.h' }
end
def link_headers
copy_header_mappings.each do |namespaced_path, files|
@sandbox.add_header_files(namespaced_path, files)
end
end
def add_to_target(target)
implementation_files.each do |file|
target.add_source_file(file, nil, specification.compiler_flags[@platform.name].strip)
end
end
def requires_arc?
specification.requires_arc
end
......@@ -94,13 +94,13 @@ module Pod
def dependencies
specification.dependencies[@platform.name]
end
private
def implementation_files
source_files.select { |f| f.extname != '.h' }
end
def relative_root
root.relative_path_from(@sandbox.root)
end
......@@ -115,7 +115,7 @@ module Pod
mappings
end
end
def expanded_paths(platforms_with_patterns, options = {})
patterns = platforms_with_patterns.is_a?(Hash) ? platforms_with_patterns[@platform.name] : platforms_with_patterns
patterns.map do |pattern|
......
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