murmurs 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/murmurs/git.rb +14 -1
  2. metadata +4 -4
data/lib/murmurs/git.rb CHANGED
@@ -54,6 +54,7 @@ BASH
54
54
  if to_rev == null_rev # delete branch
55
55
  "Someone deleted branch #{branch}."
56
56
  else
57
+ repo_name = File.basename(Dir.getwd)
57
58
  revs = if from_rev == null_rev # new branch
58
59
  to_rev
59
60
  else
@@ -62,7 +63,19 @@ BASH
62
63
  `git rev-list #{revs}`.split("\n").map do |rev|
63
64
  `git log -n 1 #{rev}`
64
65
  end.reverse.map do |msg|
65
- "Repository: #{File.basename(Dir.getwd)}\n#{msg}"
66
+ lines = msg.split("\n")
67
+ commit = lines[0][8..15]
68
+ author = lines[1]
69
+ time = lines[2]
70
+ msg = lines[3..-1]
71
+ <<-MURMUR
72
+ #{author}
73
+
74
+ #{msg.join("\n").strip}
75
+
76
+ commit #{repo_name}:#{commit}
77
+ #{time}
78
+ MURMUR
66
79
  end
67
80
  end
68
81
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: murmurs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-09 00:00:00.000000000 Z
12
+ date: 2014-05-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: api-auth
@@ -74,7 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
74
74
  version: '0'
75
75
  segments:
76
76
  - 0
77
- hash: 4152477486673083389
77
+ hash: 2198047804296557425
78
78
  required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  none: false
80
80
  requirements:
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  version: '0'
84
84
  segments:
85
85
  - 0
86
- hash: 4152477486673083389
86
+ hash: 2198047804296557425
87
87
  requirements: []
88
88
  rubyforge_project:
89
89
  rubygems_version: 1.8.23