git_manager 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/git_manager.rb +3 -1
- metadata +3 -3
data/lib/git_manager.rb
CHANGED
@@ -21,16 +21,18 @@ module Git
|
|
21
21
|
@email_from = config['authentication']['from']
|
22
22
|
@email_password = config['authentication']['password']
|
23
23
|
@email_mappings = config['users']
|
24
|
+
puts "email_mappings = #{@email_mappings.inspect}"
|
24
25
|
end
|
25
26
|
|
26
27
|
def send_gmail options
|
27
28
|
load_configuration
|
28
29
|
recipients = options[:recipients]
|
30
|
+
puts "recipients = #{recipients.inspect}"
|
29
31
|
msg = "Subject: #{options[:subject]}\n\n#{options[:message]}"
|
30
32
|
smtp = Net::SMTP.new 'smtp.gmail.com', 587
|
31
33
|
smtp.enable_starttls
|
32
34
|
smtp.start( '', @email_from, @email_password, :login ) do
|
33
|
-
smtp.send_message(msg, @email_from, recipients.map{ |recipient| @email_mappings[recipient]})
|
35
|
+
smtp.send_message( msg, @email_from, recipients.map{ |recipient| @email_mappings["#{recipient.gsub(' ', '_') }" ] } )
|
34
36
|
end
|
35
37
|
end
|
36
38
|
end
|
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: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- kikuchiyo
|