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
cffe89f7
Commit
cffe89f7
authored
Mar 05, 2012
by
Fabio
Committed by
Fabio
Mar 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#149 added documentation, license_text, and license_text_lines attributes to spec
parent
ea918cd9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
spec.rb
lib/cocoapods/command/spec.rb
+11
-1
specification.rb
lib/cocoapods/specification.rb
+4
-1
No files found.
lib/cocoapods/command/spec.rb
View file @
cffe89f7
...
...
@@ -40,11 +40,13 @@ module Pod
Pod::Spec.new do |s|
s.name = '
#{
@name
}
'
s.version = '1.0.0'
s.license = 'MIT'
s.summary = 'A short description of
#{
@name
}
.'
s.homepage = 'http://EXAMPLE/
#{
@name
}
'
s.author = { '
#{
author
}
' => '
#{
email
}
' }
# Specify the atom link pointing to the documentation set of the Pod.
# s.documentation = 'http://example.com/com.company.
#{
@name
}
.atom'
# Specify the location from where the source should be retreived.
#
s.source = { :git => 'http://EXAMPLE/
#{
@name
}
.git', :tag => '1.0.0' }
...
...
@@ -53,6 +55,14 @@ module Pod
s.description = 'An optional longer description of
#{
@name
}
.'
# Specify the license type and the path of the file containing the license text.
# If a single license file is not available specify a file containing the
# license text and the range of the relevant lines in a [int]..[int] format.
#
s.license = 'MIT'
s.license_text = 'LICENSE'
# s.license_text_lines = '1..15'
# If this Pod runs only on iOS or OS X, then specify that with one of
# these, or none if it runs on both platforms.
#
...
...
lib/cocoapods/specification.rb
View file @
cffe89f7
...
...
@@ -41,6 +41,9 @@ module Pod
attr_accessor
:description
attr_accessor
:source
attr_accessor
:license
attr_accessor
:license_text
attr_accessor
:license_text_lines
attr_accessor
:documentation
attr_reader
:version
def
version
=
(
version
)
...
...
@@ -378,7 +381,7 @@ module Pod
end
# Override the getters to always return the value of the top level parent spec.
[
:version
,
:summary
,
:platform
,
:license
,
:
authors
,
:requires_arc
,
:compiler_flags
].
each
do
|
attr
|
[
:version
,
:summary
,
:platform
,
:license
,
:
license_text
,
:license_text_lines
,
:authors
,
:requires_arc
,
:compiler_flags
,
:documentation
].
each
do
|
attr
|
define_method
(
attr
)
{
top_level_parent
.
send
(
attr
)
}
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