git_manager 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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@your_gmail_hosted_domain.com
10
- password: your_password_here
9
+ from: you@gmail_hosted_domain.com
10
+ password: your_password
11
11
 
12
12
  users:
13
- 'First Name': 'me@my_gmail_hosted_domain.com'
14
- 'First Name': 'me@my_gmail_hosted_domain.com'
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'
@@ -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 => "Please collaborate to fix consolidated list of specs: ",
10
- :message => message
17
+ :subject => subject,
18
+ :message => messy
11
19
  )
12
20
  end
13
21
  else
@@ -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
- # Git::Blames::Pending.new( :root => './lib/logs/' ).blame( :email => true )
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: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - kikuchiyo