Rakefile in qu-0.1.1 vs Rakefile in qu-0.1.2
- old
+ new
@@ -12,11 +12,11 @@
FileUtils.mv(Dir['*.gem'], 'pkg')
end
desc 'Tags version, pushes to remote, and pushes gem'
task :release => :build do
- sh "git tag v#{Qu::VERSION}"
+ sh 'git', 'tag', '-m', changelog, "v#{Qu::VERSION}"
sh "git push origin master"
sh "git push origin v#{Qu::VERSION}"
sh "ls pkg/*.gem | xargs -n 1 gem push"
end
@@ -39,8 +39,12 @@
t.pattern = "spec/qu/backend/#{backend}_spec.rb"
end
end
task :backends => Backends
+end
+
+def changelog
+ File.read('ChangeLog').split("\n\n\n", 2).first
end
task :default => :spec
\ No newline at end of file