markdown_gmail_sender 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c6634629622b785adfb7629f8664b7aaa6f629b
4
- data.tar.gz: 7aeec7461c016d95c7391d92002243780e3f7bee
3
+ metadata.gz: 82dc323182e5b8cf7df9d9ffa2effc7d28ecbc30
4
+ data.tar.gz: ed2c25fe6f4f8ebd4006a4a2d8c08bdd42f5f3c4
5
5
  SHA512:
6
- metadata.gz: e180dd4c66981c5bd9645dde2ff2e6744a10633706a95861f8eb3972b8bebfc0c6c9f8e00a356c69d6bb9ef3617aa6736358217ad051da6f64db101d1a3616d1
7
- data.tar.gz: f084bbeb2cf4c836f403b6ac7b7255d2b6192d21abc444cc1906f119c0d273a0960d27bfb22341d2ec60c077190686da4140418121734106d47dc918cf16af53
6
+ metadata.gz: 778dad467fa98f2b09e980c6795298d6b6752179becc50570d37ca98ff2e60f9a62638840547beadf0e3c9da487137a1aa987f71918fc1a2957ccf0516b5e9d6
7
+ data.tar.gz: 5d9759c543f6275d8d2503d32ff8c9473c0c777b0382b5e3ea05fbe9164c2dbd54b8751bc4ba085d952a7ff7c4227df62a9217aef1e01aa41750ce1b872dee78
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -53,7 +53,10 @@ class MarkdownGmailSender
53
53
 
54
54
  @messages.each.with_index do |x, i|
55
55
 
56
- gmail = Gmail.new(username=x[:from], password=@accounts[x[:from]])
56
+ from = x[:from][/(?:.*<)?(\w+(?:\.\w+)?@\S+)>/,1]
57
+ username, password = from, @accounts[from]
58
+
59
+ gmail = Gmail.new(username, password)
57
60
 
58
61
  if not gmail.signed_in? then
59
62
  raise "markdown_gmail_sender: Gmail user #{username} not signed in"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdown_gmail_sender
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  OLGmpGkaE9Sobz20K+IVp5+s3z06CrVYK7TN2gXYiGZRGAxmnd3sd0F8Aewu4uWI
32
32
  HiWyElQDGz9Bjw==
33
33
  -----END CERTIFICATE-----
34
- date: 2016-06-28 00:00:00.000000000 Z
34
+ date: 2016-07-14 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: gmail
metadata.gz.sig CHANGED
Binary file