lib/ormdev/command/lint.rb in ormdev-0.0.8 vs lib/ormdev/command/lint.rb in ormdev-0.0.9
- old
+ new
@@ -15,18 +15,16 @@
CLAide::Argument.new('PATH', false)
]
def self.options
[
- ['--source', '依赖库源码更新'],
].concat(super)
end
def initialize(argv)
@podspec_file = argv.shift_argument
@podspec_files = Pathname.pwd.children.select { |pn| pn.extname == '.podspec' }
- @source = argv.flag?('source', false)
super
end
def validate!
super
@@ -42,12 +40,12 @@
def run
super
OrmDev::LogUtil.info '[插件管理] 验证Pod'.green
@spec = Pod::Specification.from_file(@podspec_path)
- ORM::SHUtil.run_command("pod cache clean #{@spec.name} --all",'清除Pod缓存',false)
+ OrmDev::SHUtil.run_command("pod cache clean #{@spec.name} --all",'清除Pod缓存',false)
pod_lint_command = ''
- pod_lint_command << "#{@spec.name}_Lib=1" unless @source
+ pod_lint_command << "#{@spec.name}_SOURCE=1"
pod_lint_command << ' pod lib lint --sources=orm,master --allow-warnings --use-libraries --verbose'
OrmDev::SHUtil.run_command(pod_lint_command,'更验证Pod',false)
end
end
end
\ No newline at end of file