griddler-ses 1.0 → 1.0.1

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: 96e0b0f54f1b00a46b12ae82cadb29dd52986091
4
- data.tar.gz: d6c672a6b79f102995957f643421be3061e1de55
3
+ metadata.gz: 4e8a8dc6b0a47c33b42449f0d33681023887dee6
4
+ data.tar.gz: 9e4c2cdafbf1bfcb04e8847ea5b62e00b6427f34
5
5
  SHA512:
6
- metadata.gz: 82b591b291899aac81572b1b2773e7f692baac826041a45e78f3cf1637fa7b91fcdb1bdae51c0f65120f0fa4f697c9252ce27b09e1095c03dda2bc886130ea74
7
- data.tar.gz: f2e613ae216668b85d139b291090fafc26d513d18092dd80474ab8974ee87c2eaacc5611e361372d4158e7ae05a8450b91996795f507bb30cf2e3455511bb2c3
6
+ metadata.gz: 760e0626163545aca32eefbe2634ef9f98b7de781a830667e23590321add74bfb0b2b1331ff733a30e5008941f2cb97a76fd1c65d5daf3e83d2fe1a25fb9f056
7
+ data.tar.gz: 626135972c580d7c952460cd45d56d170aa1b134026841333e8b2692c8156217aaf7324f660786b24ed60aad0ce5f9869a2b5b2785d57e9c8026e2a763b01987
data/circle.yml ADDED
@@ -0,0 +1,4 @@
1
+ machine:
2
+ ruby:
3
+ version:
4
+ 2.2.4
@@ -33,6 +33,7 @@ module Griddler
33
33
  to: recipients,
34
34
  from: sender,
35
35
  cc: cc,
36
+ bcc: bcc,
36
37
  subject: subject,
37
38
  text: text_part,
38
39
  html: html_part,
@@ -58,7 +59,7 @@ module Griddler
58
59
  end
59
60
 
60
61
  def recipients
61
- email_json['receipt']['recipients']
62
+ email_json['mail']['commonHeaders']['to']
62
63
  end
63
64
 
64
65
  def sender
@@ -66,7 +67,11 @@ module Griddler
66
67
  end
67
68
 
68
69
  def cc
69
- email_json['mail']['commonHeaders']['cc']
70
+ email_json['mail']['commonHeaders']['cc'] || []
71
+ end
72
+
73
+ def bcc
74
+ email_json['mail']['commonHeaders']['bcc'] || []
70
75
  end
71
76
 
72
77
  def subject
@@ -1,5 +1,5 @@
1
1
  module Griddler
2
2
  module Ses
3
- VERSION = "1.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: griddler-ses
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kent Mewhort @ Coupa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-12 00:00:00.000000000 Z
11
+ date: 2016-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: griddler
@@ -107,6 +107,7 @@ files:
107
107
  - LICENSE.txt
108
108
  - README.md
109
109
  - Rakefile
110
+ - circle.yml
110
111
  - griddler-ses.gemspec
111
112
  - lib/griddler/ses.rb
112
113
  - lib/griddler/ses/adapter.rb
@@ -131,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
132
  version: '0'
132
133
  requirements: []
133
134
  rubyforge_project:
134
- rubygems_version: 2.4.6
135
+ rubygems_version: 2.4.5.1
135
136
  signing_key:
136
137
  specification_version: 4
137
138
  summary: Griddler adapter for AWS SES (handle incoming email replies through SES)