Commit e906fc10 authored by Mark Schall's avatar Mark Schall

Fixing rubocop errors

parent e846dc89
......@@ -180,7 +180,7 @@ module Pod
message = "[Add] #{spec}"
end
FileUtils.mkdir_p(output_path)
if @use_json
json_file_name = "#{spec.name}.podspec.json"
json_file = File.join(output_path, json_file_name)
......@@ -188,7 +188,7 @@ module Pod
else
FileUtils.cp(spec_file, output_path)
end
Dir.chdir(repo_dir) do
# only commit if modified
if git!('status', '--porcelain').include?(spec.name)
......
......@@ -98,7 +98,7 @@ module Pod
e.message.should.match(/repo.*not clean/)
(@upstream + 'PushTest/1.4/PushTest.podspec').should.not.exist?
end
it 'generate a message for commit' do
cmd = command('repo', 'push', 'master')
Dir.chdir(@upstream) { `git checkout -b tmp_for_push -q` }
......@@ -117,7 +117,7 @@ module Pod
Dir.chdir(@upstream) { `git checkout master -q` }
(@upstream + 'PushTest/1.4/PushTest.podspec').read.should.include('PushTest')
end
it 'successfully pushes converted JSON podspec' do
cmd = command('repo', 'push', 'master', '--use-json')
Dir.chdir(@upstream) { `git checkout -b tmp_for_push -q` }
......
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