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
d484bcf8
Commit
d484bcf8
authored
Sep 26, 2014
by
Kyle Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Rubocop] Silence some warnings
parent
f19d8483
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
sources_manager.rb
lib/cocoapods/sources_manager.rb
+1
-1
validator.rb
lib/cocoapods/validator.rb
+1
-1
No files found.
lib/cocoapods/sources_manager.rb
View file @
d484bcf8
...
@@ -232,7 +232,7 @@ module Pod
...
@@ -232,7 +232,7 @@ module Pod
versions
=
version_information
(
dir
)
versions
=
version_information
(
dir
)
unless
repo_compatible?
(
dir
)
unless
repo_compatible?
(
dir
)
min
,
max
=
versions
[
'min'
],
versions
[
'max'
]
min
,
max
=
versions
[
'min'
],
versions
[
'max'
]
version_msg
=
(
min
==
max
)
?
min
:
"
#{
min
}
-
#{
max
}
"
version_msg
=
(
min
==
max
)
?
min
:
"
#{
min
}
-
#{
max
}
"
raise
Informative
,
"The `
#{
dir
.
basename
}
` repo requires "
\
raise
Informative
,
"The `
#{
dir
.
basename
}
` repo requires "
\
"CocoaPods
#{
version_msg
}
(currently using
#{
Pod
::
VERSION
}
)
\n
"
.
red
+
"CocoaPods
#{
version_msg
}
(currently using
#{
Pod
::
VERSION
}
)
\n
"
.
red
+
'Update CocoaPods, or checkout the appropriate tag in the repo.'
'Update CocoaPods, or checkout the appropriate tag in the repo.'
...
...
lib/cocoapods/validator.rb
View file @
d484bcf8
...
@@ -357,7 +357,7 @@ module Pod
...
@@ -357,7 +357,7 @@ module Pod
end
end
if
consumer
.
spec
.
root?
if
consumer
.
spec
.
root?
unless
file_accessor
.
license
||
spec
.
license
&&
(
spec
.
license
[
:type
]
==
'Public Domain'
||
spec
.
license
[
:text
])
unless
file_accessor
.
license
||
spec
.
license
&&
(
spec
.
license
[
:type
]
==
'Public Domain'
||
spec
.
license
[
:text
])
warning
'Unable to find a license file'
warning
'Unable to find a license file'
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