bronto 0.3.1 → 0.3.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
  SHA1:
3
- metadata.gz: 2155865d2f982fa0d349ddc671b5c85338ada37e
4
- data.tar.gz: 006c8edfd04b53ea6107629725c564cd181f23fe
3
+ metadata.gz: 9ecef6f6a33b18193065318d61c2c05ad66eb6bc
4
+ data.tar.gz: 5bc7a98913ab5d3adc1c35cb149065c2a8715606
5
5
  SHA512:
6
- metadata.gz: 3733eb9c3810891218cdca7fa748bb1f7655b8ea9c40f3147f340ae62f0365de2474104f6b962ddb6be3af50e3a4991d46a5e4e55f7b9b2876c32f1fc95f9429
7
- data.tar.gz: 828b06eb9a9a5aec77ddb1e9e411ac7a01eb56e941b609ff53cd6f49bd97f8922416d89b686ff18f71003de54811867316bee42962b953a6200e742332320263
6
+ metadata.gz: 9414d10e373c8483bea255a4f465d2593edf20b3413cb83ab365185ffc83f40d553da3d44284f05916cd8a896ee44ec9caf211f3427ede18f30383a19ed42ebd
7
+ data.tar.gz: 562a6880bbe7f0b4d2693a1725ef105e412d799f9e9678c3834fb2bbe5ff634810e3d41e68aeff730cf24e8b13bdd92e79582ebefdb68963030fa5b1dea2d530
@@ -24,8 +24,16 @@ module Bronto
24
24
  end
25
25
 
26
26
  def to_hash
27
+ start_val = if start.is_a?(String)
28
+ start
29
+ elsif start.respond_to?(:strftime)
30
+ start.strftime("%Y-%m-%dT%H:%M:%S.%6N%:z")
31
+ else
32
+ start
33
+ end
34
+
27
35
  hash = {
28
- id: id, start: start, message_id: message_id, from_email: from_email, from_name: from_name,
36
+ id: id, start: start_val, message_id: message_id, from_email: from_email, from_name: from_name,
29
37
  reply_email: reply_email, recipients: recipients, fields: fields, authentication: authentication,
30
38
  reply_tracking: reply_tracking
31
39
  }
@@ -1,3 +1,3 @@
1
1
  module Bronto
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bronto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Gordon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-16 00:00:00.000000000 Z
11
+ date: 2015-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  version: '0'
119
119
  requirements: []
120
120
  rubyforge_project:
121
- rubygems_version: 2.2.2
121
+ rubygems_version: 2.4.6
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: A Ruby wrapper for the Bronto SOAP API