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
4036b663
Commit
4036b663
authored
Jun 21, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[LocalPod] Specs and fix all_specs_public_header_files.
Introduced Chameleon fixture.
parent
337ef587
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
4 deletions
+11
-4
.gitignore
.gitignore
+1
-0
Rakefile
Rakefile
+1
-1
local_pod.rb
lib/cocoapods/local_pod.rb
+9
-3
chameleon.tar.gz
spec/fixtures/chameleon.tar.gz
+0
-0
local_pod_spec.rb
spec/unit/local_pod_spec.rb
+0
-0
No files found.
.gitignore
View file @
4036b663
...
@@ -13,6 +13,7 @@ examples/Pods
...
@@ -13,6 +13,7 @@ examples/Pods
examples/**/Pods
examples/**/Pods
examples/RelativePathProject/RelativePathProject/RelativePathProject.xcodeproj
examples/RelativePathProject/RelativePathProject/RelativePathProject.xcodeproj
spec/fixtures/banana-lib
spec/fixtures/banana-lib
spec/fixtures/chameleon
spec/fixtures/integration/Headers/
spec/fixtures/integration/Headers/
/concatenated.*
/concatenated.*
spec/fixtures/mercurial-repo/.hg/*cache
spec/fixtures/mercurial-repo/.hg/*cache
...
...
Rakefile
View file @
4036b663
...
@@ -145,7 +145,7 @@ namespace :gem do
...
@@ -145,7 +145,7 @@ namespace :gem do
# Update the last version in CocoaPods-version.yml
# Update the last version in CocoaPods-version.yml
specs_branch
=
'0.6'
specs_branch
=
'0.6'
Dir
.
chdir
(
'../Specs'
)
do
Dir
.
chdir
(
'../Specs'
)
do
puts
Dir
.
pwd
puts
Dir
.
pwd
sh
"git checkout
#{
specs_branch
}
"
sh
"git checkout
#{
specs_branch
}
"
sh
"git pull"
sh
"git pull"
...
...
lib/cocoapods/local_pod.rb
View file @
4036b663
...
@@ -304,7 +304,12 @@ module Pod
...
@@ -304,7 +304,12 @@ module Pod
raise
Informative
,
"The pod is cleaned and cannot compute the all the "
\
raise
Informative
,
"The pod is cleaned and cannot compute the all the "
\
"header files as they might be deleted."
"header files as they might be deleted."
end
end
header_files
all_specs
=
[
top_specification
]
+
top_specification
.
subspecs
options
=
{
:glob
=>
'*.{h}'
}
files
=
paths_by_spec
(
:source_files
,
options
,
all_specs
).
values
.
flatten!
headers
=
files
.
select
{
|
f
|
f
.
extname
==
'.h'
}
headers
end
end
# @!group Target integration
# @!group Target integration
...
@@ -396,11 +401,12 @@ module Pod
...
@@ -396,11 +401,12 @@ module Pod
# @param [Symbol] accessor The accessor to use to obtain the paths patterns.
# @param [Symbol] accessor The accessor to use to obtain the paths patterns.
# @param [Hash] options (see #expanded_paths)
# @param [Hash] options (see #expanded_paths)
#
#
def
paths_by_spec
(
accessor
,
options
=
{})
def
paths_by_spec
(
accessor
,
options
=
{},
specs
=
nil
)
specs
||=
specifications
paths_by_spec
=
{}
paths_by_spec
=
{}
processed_paths
=
[]
processed_paths
=
[]
specs
=
spec
ification
s
.
sort_by
{
|
s
|
s
.
name
.
length
}
specs
=
specs
.
sort_by
{
|
s
|
s
.
name
.
length
}
specs
.
each
do
|
spec
|
specs
.
each
do
|
spec
|
paths
=
expanded_paths
(
spec
.
send
(
accessor
),
options
)
paths
=
expanded_paths
(
spec
.
send
(
accessor
),
options
)
unless
paths
.
empty?
unless
paths
.
empty?
...
...
spec/fixtures/chameleon.tar.gz
0 → 100644
View file @
4036b663
File added
spec/unit/local_pod_spec.rb
View file @
4036b663
This diff is collapsed.
Click to expand it.
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