Commit e906fc10 authored by Mark Schall's avatar Mark Schall

Fixing rubocop errors

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