Commit e30cbd78 authored by Fabio Pelosin's avatar Fabio Pelosin

[Command::Spec#lint] Show Pods project path with '--no-clean' option.

parent b0df1f55
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
- Released [documentation](docs.cocoapods.org). - Released [documentation](docs.cocoapods.org).
- Adds new subcommand `pod spec cat NAME` to print a spec file to standard output. - Adds new subcommand `pod spec cat NAME` to print a spec file to standard output.
- Added Podfile to the Pods project. - 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. - Major clean up and refactor to the code base.
- Extrace models to [CocoaPods-Core](https://github.com/CocoaPods/Core) gem. - Extrace models to [CocoaPods-Core](https://github.com/CocoaPods/Core) gem.
......
...@@ -77,7 +77,7 @@ module Pod ...@@ -77,7 +77,7 @@ module Pod
@quick = argv.flag?('quick') @quick = argv.flag?('quick')
@local = argv.flag?('local') @local = argv.flag?('local')
@only_errors = argv.flag?('only-errors') @only_errors = argv.flag?('only-errors')
@no_clean = argv.flag?('clean', false) @clean = argv.flag?('clean', true)
@podspecs_paths = argv.arguments! @podspecs_paths = argv.arguments!
super super
end end
...@@ -89,10 +89,15 @@ module Pod ...@@ -89,10 +89,15 @@ module Pod
validator = Validator.new(podspec) validator = Validator.new(podspec)
validator.quick = @quick validator.quick = @quick
validator.local = @local validator.local = @local
validator.no_clean = @no_clean validator.no_clean = !@clean
validator.only_errors = @only_errors validator.only_errors = @only_errors
validator.validate validator.validate
invalid_count += 1 unless validator.validated? 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 end
count = podspecs_to_lint.count count = podspecs_to_lint.count
...@@ -156,9 +161,10 @@ module Pod ...@@ -156,9 +161,10 @@ module Pod
best_spec = best_source.specification(set.name, best_version) best_spec = best_source.specification(set.name, best_version)
end end
end end
#-----------------------------------------------------------------------#
# TODO some of the following methods can probably move to one of the subclasses. # TODO some of the following methods can probably move to one of the subclasses.
private private
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment