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
1bffe1cd
Commit
1bffe1cd
authored
May 25, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[LocalPod] Fix made license_file always return the absolute path.
parent
85c65849
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
local_pod.rb
lib/cocoapods/local_pod.rb
+6
-3
No files found.
lib/cocoapods/local_pod.rb
View file @
1bffe1cd
...
@@ -116,8 +116,11 @@ module Pod
...
@@ -116,8 +116,11 @@ module Pod
end
end
def
license_file
def
license_file
file
=
top_specification
.
license
[
:file
]
if
top_specification
.
license
if
top_specification
.
license
&&
top_specification
.
license
[
:file
]
file
||
expanded_paths
(
%w[ LICENSE{*,.*} licence{*,.*} ]
).
first
root
+
top_specification
.
license
[
:file
]
else
expanded_paths
(
%w[ LICENSE{*,.*} licence{*,.*} ]
).
first
end
end
end
def
license_text
def
license_text
...
@@ -125,7 +128,7 @@ module Pod
...
@@ -125,7 +128,7 @@ module Pod
if
(
result
=
license_hash
[
:text
])
if
(
result
=
license_hash
[
:text
])
result
result
elsif
license_file
elsif
license_file
result
=
IO
.
read
(
root
+
license_file
)
result
=
IO
.
read
(
license_file
)
end
end
end
end
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