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
9aae39e8
Commit
9aae39e8
authored
Jul 23, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Spec::Lint] Allow a spec out of multiple to fail, and do so gracefully
Closes #3869.
parent
8d3e00a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
CHANGELOG.md
CHANGELOG.md
+5
-0
lint.rb
lib/cocoapods/command/spec/lint.rb
+1
-1
No files found.
CHANGELOG.md
View file @
9aae39e8
...
@@ -13,6 +13,11 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -13,6 +13,11 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[
#3842
](
https://github.com/CocoaPods/CocoaPods/issues/3842
)
[
#3842
](
https://github.com/CocoaPods/CocoaPods/issues/3842
)
[
Samuel Giddins
](
https://github.com/segiddins
)
[
Samuel Giddins
](
https://github.com/segiddins
)
*
Show the correct error when
`pod spec lint`
finds multiple podspecs, and at
least one of them fails linting.
[
#3869
](
https://github.com/CocoaPods/CocoaPods/issues/3869
)
[
Samuel Giddins
](
https://github.com/segiddins
)
## 0.38.0
## 0.38.0
...
...
lib/cocoapods/command/spec/lint.rb
View file @
9aae39e8
...
@@ -72,7 +72,7 @@ module Pod
...
@@ -72,7 +72,7 @@ module Pod
raise
Informative
,
if
count
==
1
raise
Informative
,
if
count
==
1
"The spec did not pass validation, due to
#{
failure_reasons
.
first
}
."
"The spec did not pass validation, due to
#{
failure_reasons
.
first
}
."
else
else
"
#{
invalid_
count
}
out of
#{
count
}
specs failed validation."
"
#{
failure_reasons
.
count
}
out of
#{
count
}
specs failed validation."
end
end
end
end
podspecs_tmp_dir
.
rmtree
if
podspecs_tmp_dir
.
exist?
podspecs_tmp_dir
.
rmtree
if
podspecs_tmp_dir
.
exist?
...
...
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