murmurs 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/murmurs/git.rb +9 -4
- metadata +4 -4
data/README.md
CHANGED
@@ -10,7 +10,7 @@ Usage
|
|
10
10
|
|
11
11
|
What you need from your Mingle site/project:
|
12
12
|
|
13
|
-
1. Mingle project murmurs URL. You can get it by substituting your site name and project identifier to the following URL: https
|
13
|
+
1. Mingle project murmurs URL. You can get it by substituting your site name and project identifier to the following URL: https://<#your-site>.mingle-api.thoughtworks.com/api/v2/projects/<#your-project>/murmurs.xml
|
14
14
|
2. HMAC auth access key id and access secret key to access your Mingle project. You can get it from existing team member, or create a new user and add the user to your project. The HMAC auth access key id and access secret key is generated at "HMAC Auth Key" tab on user's profile page. For further information about Mingle user access key id and secret key, please read: http://www.thoughtworks.com/products/docs/mingle/current/help/configuring_hmac_authentication.html
|
15
15
|
|
16
16
|
On your Git server:
|
data/lib/murmurs/git.rb
CHANGED
@@ -65,14 +65,19 @@ BASH
|
|
65
65
|
end.reverse.map do |msg|
|
66
66
|
lines = msg.split("\n")
|
67
67
|
commit = lines[0].split(' ')[1][0..13]
|
68
|
-
author = lines[1]
|
68
|
+
author = if lines[1] =~ /Author: ([^<]+)\s*<([^>]+)>/
|
69
|
+
name = $1.strip
|
70
|
+
email = $2.strip
|
71
|
+
name = name.empty? ? email.split("@").first : name
|
72
|
+
"[#{name}](mailto:#{email})"
|
73
|
+
else
|
74
|
+
lines[1]
|
75
|
+
end
|
69
76
|
time = lines[2]
|
70
77
|
msg = lines[3..-1]
|
71
78
|
<<-MURMUR
|
72
|
-
#{author}
|
73
|
-
|
79
|
+
Author: #{author}
|
74
80
|
#{msg.join("\n").strip}
|
75
|
-
|
76
81
|
commit #rev-#{commit} (#{repo_name})
|
77
82
|
#{time}
|
78
83
|
MURMUR
|
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.1.
|
4
|
+
version: 0.1.4
|
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-
|
12
|
+
date: 2014-05-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: api-auth
|
@@ -60,7 +60,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
60
60
|
version: '0'
|
61
61
|
segments:
|
62
62
|
- 0
|
63
|
-
hash:
|
63
|
+
hash: 4020071613335990687
|
64
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
version: '0'
|
70
70
|
segments:
|
71
71
|
- 0
|
72
|
-
hash:
|
72
|
+
hash: 4020071613335990687
|
73
73
|
requirements: []
|
74
74
|
rubyforge_project:
|
75
75
|
rubygems_version: 1.8.23
|