Commit 78b9f6dc authored by Fabio Pelosin's avatar Fabio Pelosin

Merge branch 'master' into develop

* master:
  [Gemfile.lock] Update.
  Release 0.6.0.rc4
  [Rakefile] Improvements to release.
parents 224c72ef 6182b4a2
...@@ -8,7 +8,7 @@ GIT ...@@ -8,7 +8,7 @@ GIT
PATH PATH
remote: . remote: .
specs: specs:
cocoapods (0.6.0.rc3) cocoapods (0.6.0.rc4)
colored (~> 1.2) colored (~> 1.2)
escape (~> 0.0.4) escape (~> 0.0.4)
faraday (~> 0.8.1) faraday (~> 0.8.1)
......
...@@ -77,7 +77,7 @@ namespace :gem do ...@@ -77,7 +77,7 @@ namespace :gem do
end end
desc "Run all specs, build and install gem, commit version change, tag version change, and push everything" desc "Run all specs, build and install gem, commit version change, tag version change, and push everything"
task :release => :build do task :release do
unless ENV['SKIP_CHECKS'] unless ENV['SKIP_CHECKS']
if `git symbolic-ref HEAD 2>/dev/null`.strip.split('/').last != 'master' if `git symbolic-ref HEAD 2>/dev/null`.strip.split('/').last != 'master'
...@@ -93,14 +93,14 @@ namespace :gem do ...@@ -93,14 +93,14 @@ namespace :gem do
puts "You are about to release `#{gem_version}', is that correct? [y/n]" puts "You are about to release `#{gem_version}', is that correct? [y/n]"
exit if $stdin.gets.strip.downcase != 'y' exit if $stdin.gets.strip.downcase != 'y'
diff_lines = `git diff --numstat`.strip.split("\n") diff_lines = `git diff --name-only`.strip.split("\n")
if diff_lines.size == 0 || !diff_lines.first.include?('lib/cocoapods.rb') if diff_lines.size == 0
$stderr.puts "[!] Change the version number yourself in lib/cocoapods.rb" $stderr.puts "[!] Change the version number yourself in lib/cocoapods.rb"
exit 1 exit 1
end end
if diff_lines.size > 1 || !diff_lines.first.include?('lib/cocoapods.rb') if diff_lines != ['Gemfile.lock', 'lib/cocoapods.rb']
$stderr.puts "[!] Only change the version number in a release commit!" $stderr.puts "[!] Only change the version number in a release commit!"
exit 1 exit 1
end end
...@@ -125,6 +125,8 @@ namespace :gem do ...@@ -125,6 +125,8 @@ namespace :gem do
tmp = File.expand_path('../tmp', __FILE__) tmp = File.expand_path('../tmp', __FILE__)
tmp_gems = File.join(tmp, 'gems') tmp_gems = File.join(tmp, 'gems')
Rake::Task['gem:build'].invoke
puts "* Testing gem installation (tmp/gems)" puts "* Testing gem installation (tmp/gems)"
silent_sh "rm -rf '#{tmp}'" silent_sh "rm -rf '#{tmp}'"
silent_sh "gem install --install-dir='#{tmp_gems}' #{gem_filename}" silent_sh "gem install --install-dir='#{tmp_gems}' #{gem_filename}"
......
module Pod module Pod
VERSION = '0.6.0.rc3' VERSION = '0.6.0.rc4'
class PlainInformative < StandardError class PlainInformative < StandardError
end end
......
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