Skip to content

Commit 975ae55

Browse files
committed
Merge pull request CocoaPods#235 from CocoaPods/kylef/podfile-pod-subspecs
[Podfile DSL] Document how subspecs can be included
2 parents 7751aa2 + f234429 commit 975ae55

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
##### Enhancements
66

77
* Allow specifying multiple subspec pod dependencies inline in the Podfile,
8-
via `pod 'Pod', subspecs: ['Subspec1', 'Subspec2']`.
8+
via `pod 'Pod', :subspecs => ['Subspec1', 'Subspec2']`.
99
[Samuel Giddins](https://github.com/segiddins)
1010
[#221](https://github.com/CocoaPods/Core/issues/221)
1111

lib/cocoapods-core/podfile/dsl.rb

+15
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,21 @@ module DSL
112112
#
113113
# ------
114114
#
115+
# ### Subspecs
116+
#
117+
# When installing a Pod via it's name, it will install all of the
118+
# default subspecs defined in the podspec.
119+
#
120+
# You may install a specific subspec using the following:
121+
#
122+
# pod 'QueryKit/Attribute'
123+
#
124+
# You may specify a collection of subspecs to be installed as follows:
125+
#
126+
# pod 'QueryKit', :subspecs => ['Attribute', 'QuerySet']
127+
#
128+
# ------
129+
#
115130
# Dependencies can be obtained also from external sources.
116131
#
117132
#

0 commit comments

Comments
 (0)