git_manager 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/config/email.yml +4 -6
- data/lib/blames.rb +10 -2
- data/lib/git_manager.rb +1 -1
- metadata +3 -3
data/config/email.yml
CHANGED
@@ -6,11 +6,9 @@
|
|
6
6
|
# "User 1 Full Name as found in git blame":"associated_email1@domain.com@"
|
7
7
|
# "User 2 Full Name as found in git blame":"associated_email2@domain.com@"
|
8
8
|
authentication:
|
9
|
-
from: you@
|
10
|
-
password:
|
9
|
+
from: you@gmail_hosted_domain.com
|
10
|
+
password: your_password
|
11
11
|
|
12
12
|
users:
|
13
|
-
'
|
14
|
-
'
|
15
|
-
'First Name': 'me@my_gmail_hosted_domain.com'
|
16
|
-
'First Name': 'me@my_gmail_hosted_domain.com'
|
13
|
+
'Joe Schmoe': 'joeschmoe@gmail.com'
|
14
|
+
'Jane Doe': 'janedoe@gmail.com'
|
data/lib/blames.rb
CHANGED
@@ -4,10 +4,18 @@ module Git::Blames
|
|
4
4
|
def blame(options = nil)
|
5
5
|
if !options[:spam]
|
6
6
|
self.tasks_by_collaborator.each_pair do |recipient, message|
|
7
|
+
if message == ''
|
8
|
+
subject = 'Congratulations, you have no pending specs! :)'
|
9
|
+
messy = 'Woot!'
|
10
|
+
else
|
11
|
+
subject = "Please collaborate to fix consolidated list of specs: "
|
12
|
+
messy = message
|
13
|
+
end
|
14
|
+
|
7
15
|
send_gmail(
|
8
16
|
:recipients => [recipient],
|
9
|
-
:subject =>
|
10
|
-
:message =>
|
17
|
+
:subject => subject,
|
18
|
+
:message => messy
|
11
19
|
)
|
12
20
|
end
|
13
21
|
else
|
data/lib/git_manager.rb
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
# in this gems own config/email.yml file
|
10
10
|
# example usage
|
11
11
|
# Git::Managed::Branch.new.delete_branches
|
12
|
-
#
|
12
|
+
# Git::Blames::Pending.new( :root => './lib/logs/' ).blame( :email => true )
|
13
13
|
|
14
14
|
require 'rubygems'
|
15
15
|
require 'net/smtp'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- kikuchiyo
|