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
e30cbd78
Commit
e30cbd78
authored
Dec 11, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Command::Spec#lint] Show Pods project path with '--no-clean' option.
parent
b0df1f55
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
CHANGELOG.md
CHANGELOG.md
+1
-0
spec.rb
lib/cocoapods/command/spec.rb
+9
-3
No files found.
CHANGELOG.md
View file @
e30cbd78
...
...
@@ -21,6 +21,7 @@
-
Released
[
documentation
](
docs.cocoapods.org
)
.
-
Adds new subcommand
`pod spec cat NAME`
to print a spec file to standard output.
-
Added Podfile to the Pods project.
-
The
`--no-clean`
option of the
`pod spec lint`
command now displays the Pods project for inspection.
-
Major clean up and refactor to the code base.
-
Extrace models to
[
CocoaPods-Core
](
https://github.com/CocoaPods/Core
)
gem.
...
...
lib/cocoapods/command/spec.rb
View file @
e30cbd78
...
...
@@ -77,7 +77,7 @@ module Pod
@quick
=
argv
.
flag?
(
'quick'
)
@local
=
argv
.
flag?
(
'local'
)
@only_errors
=
argv
.
flag?
(
'only-errors'
)
@
no_clean
=
argv
.
flag?
(
'clean'
,
fals
e
)
@
clean
=
argv
.
flag?
(
'clean'
,
tru
e
)
@podspecs_paths
=
argv
.
arguments!
super
end
...
...
@@ -89,10 +89,15 @@ module Pod
validator
=
Validator
.
new
(
podspec
)
validator
.
quick
=
@quick
validator
.
local
=
@local
validator
.
no_clean
=
@no_
clean
validator
.
no_clean
=
!
@
clean
validator
.
only_errors
=
@only_errors
validator
.
validate
invalid_count
+=
1
unless
validator
.
validated?
unless
@clean
UI
.
puts
"Pods project available at `
#{
validator
.
validation_dir
}
/Pods/Pods.xcodeproj` for inspection."
UI
.
puts
end
end
count
=
podspecs_to_lint
.
count
...
...
@@ -156,9 +161,10 @@ module Pod
best_spec
=
best_source
.
specification
(
set
.
name
,
best_version
)
end
end
#-----------------------------------------------------------------------#
# TODO some of the following methods can probably move to one of the subclasses.
private
...
...
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