name | version | authors |
license | homepage | source |
summary | description | documentation |
source_files | exclude_source_files | public_header_files |
[Required] The name of the Pod.
s.name = 'MyPod'
[Required] The version of the Pod (see Semver).
s.version = '0.0.1'
[Required] The email and the name of the authors of the library.
s.authors = 'Darth Vader'
s.authors = 'Darth Vader', 'Wookiee'
s.authors = { 'Darth Vader' => '[email protected]',
'Wookiee' => '[email protected]' }
[Required] The license of the Pod, unless the source contains a file named
LICENSE.*
or LICENCE.*
the path of the file containing the license
or the text of the license should be specified.
This attribute supports the following keys: type
, file
, text
.
s.license = 'MIT'
s.license = { :type => 'MIT', :file => 'MIT-LICENSE.txt' }
s.license = { :type => 'MIT', :text => <<-LICENSE
Copyright 2012
Permission is granted to...
LICENSE
}
[Required] The URL of the homepage of the Pod.
s.homepage = 'www.example.com'
[Required] The location from where the library should be retrieved.
This attribute supports the following keys:
-
git
:commit
,tag
,submodules
-
hg
:todo
-
svn
:todo
-
http
:todo
s.source = :git => www.example.com/repo.git
s.source = :git => www.example.com/repo.git, :tag => 'v0.0.1'
s.source = :git => www.example.com/repo.git, :tag => "v#{0.0.1}"
[Required] A short description (max 140 characters).
s.summary = 'A library that computes the meaning of life.'
An optional longer description that can be used in place of the summary.
s.description = <<-DESC
A library that computes the meaning of life. Features:
1. Is self aware
...
42. Likes candies.
DESC
Any additional option to pass to the appledoc tool.
s.documentation = :appledoc => ['--no-repeat-first-par',
'--no-warn-invalid-crossref']
The source files of the specification.
This attribute supports multi-platform values.
s.source_files = "Classes/**/*.{h,m}"
s.source_files = "Classes/**/*.{h,m}", "More_Classes/**/*.{h,m}"
The pattern to ignore source files.
This attribute supports multi-platform values.
s.ios.exclude_source_files = "Classes/osx"
s.exclude_source_files = "Classes/**/unused.{h,m}"