navi_client 1.2.1 → 1.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 609b9b03bc62a21b9b0462830c4628726a8904d625190dc16058a370ec7477ea
4
- data.tar.gz: 88c842652c3302b3880d2ba90c111a82cf6c14d0e41791a674dfd04ac16bbca6
3
+ metadata.gz: 7a0485cba6f8c100d0c4aa7e7a95a59b2112666ec12071c6c3553e9d379f4c54
4
+ data.tar.gz: 6621f2f9480e172d718fccc9673bf573ec5aac9e7a1c9c3e616bd54ca7926f9a
5
5
  SHA512:
6
- metadata.gz: 037c22b499e6117bf0bbee7b59bef0a6fff14853842f8f767b8af2277e25a7802e2504c6a2f1d2ff966ebaeb2fec22753e5919c0688c92cc625b4ee0a609eeac
7
- data.tar.gz: f5113e27c7760d98b4b571d939d6a3cec119ae55b8ed0a6613a3e4582934eb89f9f55f47f618d84abbd0604188655b90f245f03f9a6a0095883d76088edee02f
6
+ metadata.gz: cbdb3689e03cfa8757788a81caa7257b3d73b2b2886161b99afd1074ef6bcd5bf4ae96d342eb4dedf2730075c60b5e0514dc55d380564b9bb12c4e60bdf33321
7
+ data.tar.gz: 2d67988f1f8608e9d3f5e6baee15088e48bc342c1aa7dee3fbcbb9c0f5eccbc9d408b33a9aec8d192d221fa4ebc24ef24f349c404757a822b35258b630ba3553
data/lib/client.rb CHANGED
@@ -92,12 +92,11 @@ module Client
92
92
  custom_uid = (Time.now.to_f * 1000).to_s + "_" + mail.__id__.to_s
93
93
 
94
94
  invalid_to_email = mail.to.nil? || !mail.to.is_a?(Array)
95
- return '' if invalid_to_email
96
95
 
97
96
  invalid_cc_email = mail.cc.nil? || !mail.cc.is_a?(Array)
98
97
 
99
98
  meta["from"] = mail.from.first
100
- meta["to"] = mail.to.join(";")
99
+ meta["to"] = invalid_to_email ? mail.to : mail.to.join(";")
101
100
  meta["cc"] = mail.cc.join(";") unless invalid_cc_email
102
101
  meta["subject"] = mail.subject
103
102
  meta["date"] = mail.date.to_s
@@ -1,3 +1,3 @@
1
1
  module NaviClient
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: navi_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Surya
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-28 00:00:00.000000000 Z
11
+ date: 2018-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement