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
f3b61866
Commit
f3b61866
authored
Jul 06, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Specification] Cleaned authors.
parent
f70d430d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
specification.rb
lib/cocoapods/specification.rb
+9
-5
No files found.
lib/cocoapods/specification.rb
View file @
f3b61866
...
@@ -191,13 +191,10 @@ module Pod
...
@@ -191,13 +191,10 @@ module Pod
top_attr_accessor
:documentation
top_attr_accessor
:documentation
top_attr_accessor
:requires_arc
top_attr_accessor
:requires_arc
top_attr_accessor
:version
,
lambda
{
|
v
|
Version
.
new
(
v
)
}
top_attr_accessor
:version
,
lambda
{
|
v
|
Version
.
new
(
v
)
}
top_attr_accessor
:authors
,
lambda
{
|
a
|
parse_authors
(
a
)
}
top_attr_reader
:description
,
lambda
{
|
instance
,
ivar
|
ivar
||
instance
.
summary
}
top_attr_reader
:description
,
lambda
{
|
instance
,
ivar
|
ivar
||
instance
.
summary
}
top_attr_writer
:description
,
lambda
{
|
d
|
d
.
strip_heredoc
}
top_attr_writer
:description
,
lambda
{
|
d
|
d
.
strip_heredoc
}
alias_method
:author
=
,
:authors
=
# @!method license
# @!method license
#
#
# @abstract
# @abstract
...
@@ -213,14 +210,21 @@ module Pod
...
@@ -213,14 +210,21 @@ module Pod
license
license
}
}
def
self
.
parse_authors
(
*
names_and_email_addresses
)
# @!method authors
#
# @abstract
# The list of the authors (with email) of the pod.
#
top_attr_accessor
:authors
,
lambda
{
|*
names_and_email_addresses
|
list
=
names_and_email_addresses
.
flatten
list
=
names_and_email_addresses
.
flatten
unless
list
.
first
.
is_a?
(
Hash
)
unless
list
.
first
.
is_a?
(
Hash
)
authors
=
list
.
last
.
is_a?
(
Hash
)
?
list
.
pop
:
{}
authors
=
list
.
last
.
is_a?
(
Hash
)
?
list
.
pop
:
{}
list
.
each
{
|
name
|
authors
[
name
]
=
nil
}
list
.
each
{
|
name
|
authors
[
name
]
=
nil
}
end
end
authors
||
list
.
first
authors
||
list
.
first
end
}
alias_method
:author
=
,
:authors
=
### Attributes **with** multiple platform support
### Attributes **with** multiple platform support
...
...
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