Commit 81c5fe25 authored by Fabio Pelosin's avatar Fabio Pelosin

[Sandbox::FileAccessor] Add support for private_header_files

Closes #998
parent caf5b161
......@@ -80,11 +80,13 @@ module Pod
#
def public_headers
public_headers = paths_for_attribute(:public_header_files)
private_headers = paths_for_attribute(:private_header_files)
if public_headers.nil? || public_headers.empty?
headers
header_files = headers
else
public_headers
header_files = public_headers
end
header_files - private_headers
end
# @return [Hash{ Symbol => Array<Pathname> }] the resources of the
......
......@@ -73,6 +73,14 @@ module Pod
]
end
it "filters the private headers form the public headers" do
@spec_consumer.stubs(:public_header_files).returns([])
@spec_consumer.stubs(:private_header_files).returns(['**/*Private*'])
@accessor.public_headers.sort.should == [
@root + "Classes/Banana.h",
]
end
it "returns the resources" do
@accessor.resources.sort.should == [
@root + "Resources/logo-sidebar.png",
......
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