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
a6a86b85
Commit
a6a86b85
authored
Apr 25, 2012
by
Will Pragnell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added license method to Local_Pod and removed range key from license
parent
f9e77af9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
2 deletions
+12
-2
local_pod.rb
lib/cocoapods/local_pod.rb
+4
-0
banana-lib.tar.gz
spec/fixtures/banana-lib.tar.gz
+0
-0
local_pod_spec.rb
spec/unit/local_pod_spec.rb
+8
-0
specification_spec.rb
spec/unit/specification_spec.rb
+0
-2
No files found.
lib/cocoapods/local_pod.rb
View file @
a6a86b85
...
@@ -75,6 +75,10 @@ module Pod
...
@@ -75,6 +75,10 @@ module Pod
source_files
.
select
{
|
f
|
f
.
extname
==
'.h'
}
source_files
.
select
{
|
f
|
f
.
extname
==
'.h'
}
end
end
def
license
specification
.
license
end
def
link_headers
def
link_headers
copy_header_mappings
.
each
do
|
namespaced_path
,
files
|
copy_header_mappings
.
each
do
|
namespaced_path
,
files
|
@sandbox
.
add_header_files
(
namespaced_path
,
files
)
@sandbox
.
add_header_files
(
namespaced_path
,
files
)
...
...
spec/fixtures/banana-lib.tar.gz
View file @
a6a86b85
No preview for this file type
spec/unit/local_pod_spec.rb
View file @
a6a86b85
...
@@ -49,6 +49,14 @@ describe Pod::LocalPod do
...
@@ -49,6 +49,14 @@ describe Pod::LocalPod do
@pod
.
header_files
.
should
==
[
Pathname
.
new
(
"BananaLib/Classes/Banana.h"
)]
@pod
.
header_files
.
should
==
[
Pathname
.
new
(
"BananaLib/Classes/Banana.h"
)]
end
end
it
'returns a license'
do
@pod
.
license
.
should
==
{
:type
=>
"MIT"
,
:file
=>
"LICENSE"
,
:text
=>
"Permission is hereby granted ..."
}
end
it
'can clean up after itself'
do
it
'can clean up after itself'
do
@pod
.
clean_paths
.
tap
do
|
paths
|
@pod
.
clean_paths
.
tap
do
|
paths
|
@pod
.
clean
@pod
.
clean
...
...
spec/unit/specification_spec.rb
View file @
a6a86b85
...
@@ -177,13 +177,11 @@ describe "A Pod::Specification, in general," do
...
@@ -177,13 +177,11 @@ describe "A Pod::Specification, in general," do
@spec
.
license
=
{
@spec
.
license
=
{
:type
=>
'MIT'
,
:type
=>
'MIT'
,
:file
=>
'LICENSE'
,
:file
=>
'LICENSE'
,
:range
=>
1
..
15
,
:text
=>
'Permission is hereby granted ...'
:text
=>
'Permission is hereby granted ...'
}
}
@spec
.
license
.
should
==
{
@spec
.
license
.
should
==
{
:type
=>
'MIT'
,
:type
=>
'MIT'
,
:file
=>
'LICENSE'
,
:file
=>
'LICENSE'
,
:range
=>
1
..
15
,
:text
=>
'Permission is hereby granted ...'
:text
=>
'Permission is hereby granted ...'
}
}
end
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