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
19cf8da7
Commit
19cf8da7
authored
Sep 12, 2011
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a shortcut to define that the pod that a pod is a part of is also its dependency.
parent
d7fad64b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
Podfile
examples/Podfile
+3
-3
specification.rb
lib/cocoa_pods/specification.rb
+5
-0
No files found.
examples/Podfile
View file @
19cf8da7
dependency
'SSZipArchive'
,
'>= 1'
#
dependency 'SSZipArchive', '>= 1'
#dependency 'ASIHTTPRequest', '1.8'
#dependency 'ASIHTTPRequest', '1.8'
dependency
'ASIWebPageRequest'
,
'= 1.8'
#
dependency 'ASIWebPageRequest', '= 1.8'
# is part of ASIHTTPRequest 1.8 and 1.8.1
# is part of ASIHTTPRequest 1.8 and 1.8.1
dependency
'Reachability'
#, '>= 2.0'
dependency
'Reachability'
#, '>= 2.0'
...
@@ -18,5 +18,5 @@ dependency 'Reachability' #, '>= 2.0'
...
@@ -18,5 +18,5 @@ dependency 'Reachability' #, '>= 2.0'
# * the Reachability dependency should be taken from this version
# * the Reachability dependency should be taken from this version
# * the ASIWebPageRequest dependency requirement matches this one so should work
# * the ASIWebPageRequest dependency requirement matches this one so should work
#dependency 'ASIHTTPRequest', '1.8.1'
#dependency 'ASIHTTPRequest', '1.8.1'
dependency
'ASIHTTPRequest'
,
'>= 1.8'
#
dependency 'ASIHTTPRequest', '>= 1.8'
lib/cocoa_pods/specification.rb
View file @
19cf8da7
...
@@ -67,6 +67,11 @@ module Pod
...
@@ -67,6 +67,11 @@ module Pod
@part_of
.
part_of_other_pod
=
true
@part_of
.
part_of_other_pod
=
true
end
end
def
part_of_dependency
(
name
,
*
version_requirements
)
part_of
(
name
,
*
version_requirements
)
dependency
(
name
,
*
version_requirements
)
end
def
source_files
(
*
patterns
)
def
source_files
(
*
patterns
)
@source_files
=
patterns
@source_files
=
patterns
end
end
...
...
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