lib/gistory/cli/main.rb in gistory-0.2.0 vs lib/gistory/cli/main.rb in gistory-0.2.1
- old
+ new
@@ -30,21 +30,21 @@
raise(Gistory::Error, "Gem '#{gem_name}' not found in lock file, maybe a typo?")
end
@io.puts "Gem: #{gem_name}"
@io.puts "Current version: #{changes.first.version}"
- @io.puts ''
+ @io.puts ""
print_change_history(changes)
- @io.puts ''
+ @io.puts ""
print_configuration_info
end
def print_change_history(changes)
- @io.puts 'Change history:'
+ @io.puts "Change history:"
max_length = changes.map { |c| c.version.length }.max
changes.each do |change|
@io.puts "#{change.version.ljust(max_length)} on #{change.date.strftime('%a, %e %b %Y %H:%M %Z')} " \
"(commit #{change.short_hash})"
@@ -57,10 +57,10 @@
@io.puts "The last #{max} changes to the lock file were fetched."
else
@io.puts "The last #{max} commits made to the current branch were fetched."
end
- @io.puts 'To see farther in the past use the -m switch'
+ @io.puts "To see farther in the past use the -m switch"
end
end
end
end