Sha256: 6d17266f96875842d66bde225a452663c739aa71d432db87d5ef07dac7fd74f7

Contents?: true

Size: 567 Bytes

Versions: 1

Compression:

Stored size: 567 Bytes

Contents

#!/usr/bin/env ruby

require 'bundler/setup'
require 'method_log'
require 'method_log/repository'
require 'method_log/api'

repository = MethodLog::Repository.new(path: Dir.pwd)
api = MethodLog::API.new(repository: repository)
api.diffs(ARGV[0]).each do |method_commit, method_diff|
  puts "commit #{method_commit.sha}"
  puts "Author: #{method_commit.author[:name]} <#{method_commit.author[:email]}>"
  puts "Date:   #{method_commit.author[:time].strftime('%a %b %-e %T %Y %z')}"
  puts
  puts method_commit.message
  puts
  puts method_diff.to_s(:color)
  puts
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
method_log-0.0.3 bin/method_log