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
5c62253a
Commit
5c62253a
authored
May 06, 2012
by
Will Pragnell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made Acknowledgements Plist title configurable
parent
2c944345
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
plist.rb
lib/cocoapods/generator/acknowledgements/plist.rb
+7
-3
plist_spec.rb
spec/unit/generator/acknowledgements/plist_spec.rb
+6
-0
No files found.
lib/cocoapods/generator/acknowledgements/plist.rb
View file @
5c62253a
...
@@ -13,12 +13,16 @@ module Pod
...
@@ -13,12 +13,16 @@ module Pod
def
plist
def
plist
{
{
:Title
=>
"Acknowledgements"
,
:Title
=>
plist_title
,
:StringsTable
=>
"Acknowledgements"
,
:StringsTable
=>
plist_title
,
:PreferenceSpecifiers
=>
licenses
:PreferenceSpecifiers
=>
licenses
}
}
end
end
def
plist_title
"Acknowledgements"
end
def
licenses
def
licenses
licences_array
=
[
header_hash
]
licences_array
=
[
header_hash
]
@pods
.
each
do
|
pod
|
@pods
.
each
do
|
pod
|
...
...
spec/unit/generator/acknowledgements/plist_spec.rb
View file @
5c62253a
...
@@ -14,6 +14,12 @@ describe Pod::Generator::Plist do
...
@@ -14,6 +14,12 @@ describe Pod::Generator::Plist do
@plist
.
licenses
.
count
.
should
==
3
@plist
.
licenses
.
count
.
should
==
3
end
end
it
"returns a string for the plist title"
do
@pods
[
0
].
unstub
(
:license_text
)
@pods
[
0
].
unstub
(
:name
)
@plist
.
plist_title
.
should
.
be
.
kind_of
(
String
)
end
it
"returns a correctly formed license hash for each pod"
do
it
"returns a correctly formed license hash for each pod"
do
@plist
.
hash_for_pod
(
@pods
[
0
]).
should
==
{
@plist
.
hash_for_pod
(
@pods
[
0
]).
should
==
{
:Type
=>
"PSGroupSpecifier"
,
:Type
=>
"PSGroupSpecifier"
,
...
...
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