griddler-sendgrid 1.0.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: 99daea93402040c7584d5bf32550dc43d26a1189
4
- data.tar.gz: ddbacdea54e3a9554fde47297f7a3215d1d2346d
3
+ metadata.gz: 4b568d22d80b71487ec2d7b13f4c454ce5795908
4
+ data.tar.gz: a7891f96d709940be229de73879869907a537a03
5
5
  SHA512:
6
- metadata.gz: 966ae6c5066e393f93ba03225330fc7f669d24aff2075aea53c5e8601e7f9264ea7a8b7e504817e74d7ecd3b203fe4eba80124aca55eda187b599e1f23b0e9cb
7
- data.tar.gz: ce6fe0b401e16bf63123692b09efc57adcdb881198e1460b196f48a90087a4f6d3ba3600b57be86bd495545dd7ceeb5e7b8551d3b322bbb81cefb7001fed0563
6
+ metadata.gz: 6250647638cd35e7c6cb4d4c2ad3268599f0ac2c8a0e5964bdf222b9085f9727f0368ffb47833bf8800b2232d87925881a99d575e44b98cfee5a8339beb27405
7
+ data.tar.gz: 5826f196ea5320f164c3a693f3795705e1748bddea5d64a1c5c67553b00fbc4b902fd24f39cad8ef7b8ad327383bc7075a2a45c0a75617178ee504f09c94fbd1
@@ -24,7 +24,8 @@ module Griddler
24
24
  attr_reader :params
25
25
 
26
26
  def recipients(key)
27
- Mail::AddressList.new(params[key] || '').addresses
27
+ encoded = Mail::Encodings.address_encode(params[key] || '')
28
+ Mail::AddressList.new(encoded).addresses
28
29
  end
29
30
 
30
31
  def get_bcc
@@ -1,5 +1,5 @@
1
1
  module Griddler
2
2
  module Sendgrid
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -84,6 +84,7 @@ describe Griddler::Sendgrid::Adapter, '.normalize_params' do
84
84
  normalized_params[:to].should eq [
85
85
  '"Mr Fugushima at Fugu, Inc" <hi@example.com>',
86
86
  'Foo bar <foo@example.com>',
87
+ '"Eichhörnchen" <squirrel@example.com>',
87
88
  'no-name@example.com',
88
89
  ]
89
90
  end
@@ -131,7 +132,7 @@ describe Griddler::Sendgrid::Adapter, '.normalize_params' do
131
132
  def default_params
132
133
  {
133
134
  text: 'hi',
134
- to: '"Mr Fugushima at Fugu, Inc" <hi@example.com>, Foo bar <foo@example.com>, <no-name@example.com>',
135
+ to: '"Mr Fugushima at Fugu, Inc" <hi@example.com>, Foo bar <foo@example.com>, Eichhörnchen <squirrel@example.com>, <no-name@example.com>',
135
136
  cc: 'cc@example.com',
136
137
  from: 'there@example.com',
137
138
  envelope: "{\"to\":[\"johny@example.com\"], \"from\": [\"there@example.com\"]}",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: griddler-sendgrid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Thompson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-24 00:00:00.000000000 Z
11
+ date: 2017-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  requirements: []
95
95
  rubyforge_project:
96
- rubygems_version: 2.5.2
96
+ rubygems_version: 2.6.11
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: SendGrid adapter for Griddler