Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
81c5fe25
Commit
81c5fe25
authored
Apr 29, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Sandbox::FileAccessor] Add support for private_header_files
Closes #998
parent
caf5b161
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
file_accessor.rb
lib/cocoapods/sandbox/file_accessor.rb
+4
-2
file_accessor_spec.rb
spec/unit/sandbox/file_accessor_spec.rb
+8
-0
No files found.
lib/cocoapods/sandbox/file_accessor.rb
View file @
81c5fe25
...
@@ -80,11 +80,13 @@ module Pod
...
@@ -80,11 +80,13 @@ module Pod
#
#
def
public_headers
def
public_headers
public_headers
=
paths_for_attribute
(
:public_header_files
)
public_headers
=
paths_for_attribute
(
:public_header_files
)
private_headers
=
paths_for_attribute
(
:private_header_files
)
if
public_headers
.
nil?
||
public_headers
.
empty?
if
public_headers
.
nil?
||
public_headers
.
empty?
headers
header
_files
=
header
s
else
else
public_headers
header_files
=
public_headers
end
end
header_files
-
private_headers
end
end
# @return [Hash{ Symbol => Array<Pathname> }] the resources of the
# @return [Hash{ Symbol => Array<Pathname> }] the resources of the
...
...
spec/unit/sandbox/file_accessor_spec.rb
View file @
81c5fe25
...
@@ -73,6 +73,14 @@ module Pod
...
@@ -73,6 +73,14 @@ module Pod
]
]
end
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
it
"returns the resources"
do
@accessor
.
resources
.
sort
.
should
==
[
@accessor
.
resources
.
sort
.
should
==
[
@root
+
"Resources/logo-sidebar.png"
,
@root
+
"Resources/logo-sidebar.png"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment