lib/rake_roll/roller.rb in rake_roll-0.1.0 vs lib/rake_roll/roller.rb in rake_roll-0.1.1
- old
+ new
@@ -48,13 +48,11 @@
puts "----------------------"
puts "Updating tag from #{current_version} to #{new_version}"
end
def parsed_git_log(tag=nil)
- git_log(tag).split("\n").select{|line| line[0] == "*"}.collect do |line|
- line.split(" | ").reverse.join(" | ")
- end
+ git_log(tag).split("\n").select{|line| line[0] == "*"}
end
def push
puts "Rake Rolling..."
if parsed_git_log.empty?
@@ -106,10 +104,11 @@
puts "pushing tag and branch"
system("git push origin #{}")
end
def format
- "--pretty=format:'%s | %an | %h'"
+ #"--pretty=format:'%s | %an | %h'"
+ "--pretty=format:'%s'"
end
def git_log(tag=nil)
tag ||= current_branch
`git log #{current_version}..#{tag} #{format}`