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
0d18c2b5
Commit
0d18c2b5
authored
Nov 23, 2011
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't install specs which are only wrappers for subspecs.
parent
2463b914
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
installer.rb
lib/cocoapods/installer.rb
+3
-1
specification.rb
lib/cocoapods/specification.rb
+4
-0
specification_spec.rb
spec/unit/specification_spec.rb
+7
-0
No files found.
lib/cocoapods/installer.rb
View file @
0d18c2b5
...
...
@@ -6,7 +6,9 @@ module Pod
end
def
build_specifications
dependent_specifications
.
reject
{
|
spec
|
spec
.
defined_in_set
.
only_part_of_other_pod?
}
dependent_specifications
.
reject
do
|
spec
|
spec
.
wrapper?
||
spec
.
defined_in_set
.
only_part_of_other_pod?
end
end
def
download_only_specifications
...
...
lib/cocoapods/specification.rb
View file @
0d18c2b5
...
...
@@ -149,6 +149,10 @@ module Pod
include
Config
::
Mixin
def
wrapper?
source_files
.
empty?
&&
!
subspecs
.
empty?
end
def
subspec_by_name
(
name
)
# Remove this spec's name from the beginning of the name we’re looking for
# and take the first component from the remainder, which is the spec we need
...
...
spec/unit/specification_spec.rb
View file @
0d18c2b5
...
...
@@ -292,12 +292,19 @@ describe "A Pod::Specification subspec" do
s
.
requires_arc
=
true
s
.
subspec
'FirstSubSpec'
do
|
fss
|
fss
.
source_files
=
'some/file'
fss
.
subspec
'SecondSubSpec'
do
|
sss
|
end
end
end
end
it
"makes a parent spec a wrapper if it has no source files of its own"
do
@spec
.
should
.
be
.
wrapper
@spec
.
subspecs
.
first
.
should
.
not
.
be
.
wrapper
end
it
"returns the top level parent spec"
do
@spec
.
subspecs
.
first
.
top_level_parent
.
should
==
@spec
@spec
.
subspecs
.
first
.
subspecs
.
first
.
top_level_parent
.
should
==
@spec
...
...
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