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
bd2297c1
Commit
bd2297c1
authored
Feb 02, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FileAcessor] Use the consumer #license and #prefix_header
parent
da6c6e67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
file_accessor.rb
lib/cocoapods/sandbox/file_accessor.rb
+8
-3
No files found.
lib/cocoapods/sandbox/file_accessor.rb
View file @
bd2297c1
...
@@ -99,7 +99,9 @@ module Pod
...
@@ -99,7 +99,9 @@ module Pod
# @return [Pathname] The of the prefix header file of the specification.
# @return [Pathname] The of the prefix header file of the specification.
#
#
def
prefix_header
def
prefix_header
path_list
.
root
+
spec_consumer
.
prefix_header_file
if
spec_consumer
.
prefix_header_file
path_list
.
root
+
spec_consumer
.
prefix_header_file
end
end
end
# @return [Pathname] The path of the auto-detected README file.
# @return [Pathname] The path of the auto-detected README file.
...
@@ -112,8 +114,11 @@ module Pod
...
@@ -112,8 +114,11 @@ module Pod
# specification or auto-detected.
# specification or auto-detected.
#
#
def
license
def
license
specified
=
path_list
.
root
+
spec_consumer
.
spec
.
root
.
license
[
:file
]
if
spec_consumer
.
spec
.
root
.
license
[
:file
]
specified
||
path_list
.
glob
(
%w[ licen{c,s}e{*,.*} ]
).
first
path_list
.
root
+
spec_consumer
.
spec
.
root
.
license
[
:file
]
else
path_list
.
glob
(
%w[ licen{c,s}e{*,.*} ]
).
first
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