acception-client 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/locales/en.yml +1 -0
- data/lib/acception/client/data/create.rb +6 -1
- data/lib/acception/client/messages/create.rb +6 -1
- data/lib/acception/client/open_messages/create.rb +9 -0
- data/lib/acception/client/version.rb +1 -1
- data/lib/acception/message_type.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adf29721ca634a2a0b290d41262906d41d821f69
|
4
|
+
data.tar.gz: a7766498578940b9468872aa567f61a108d40041
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89b735c29e76eac4de7d43a64788a51964ce8f80d7d03f5d1f3c77519996d7b7ce44a23881455568f71715834d5fd4aa1c40993890dd05080d260bfac3523b09
|
7
|
+
data.tar.gz: fe57f9b4d5719542845e43bf1a935e6f162e391c4feb6ad0e097c13ce368bd9e7b3bb6c79a7383d0ec2df6fcd0d1822d567e88c43d8aac69c3c2b00124787500
|
data/config/locales/en.yml
CHANGED
@@ -17,7 +17,12 @@ module Acception
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def occurred_at
|
20
|
-
|
20
|
+
occurred_at = attributes[:occurred_at]
|
21
|
+
return Time.now.utc.iso8601 unless occurred_at
|
22
|
+
|
23
|
+
occurred_at.is_a?( String ) ?
|
24
|
+
occurred_at :
|
25
|
+
occurred_at.iso8601
|
21
26
|
end
|
22
27
|
|
23
28
|
def variables
|
@@ -17,7 +17,12 @@ module Acception
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def occurred_at
|
20
|
-
|
20
|
+
occurred_at = attributes[:occurred_at]
|
21
|
+
return Time.now.utc.iso8601 unless occurred_at
|
22
|
+
|
23
|
+
occurred_at.is_a?( String ) ?
|
24
|
+
occurred_at :
|
25
|
+
occurred_at.iso8601
|
21
26
|
end
|
22
27
|
|
23
28
|
def endpoint
|
@@ -13,6 +13,15 @@ module Acception
|
|
13
13
|
(attributes[:occurred_at] || Time.now.utc).iso8601
|
14
14
|
end
|
15
15
|
|
16
|
+
def occurred_at
|
17
|
+
occurred_at = attributes[:occurred_at]
|
18
|
+
return Time.now.utc.iso8601 unless occurred_at
|
19
|
+
|
20
|
+
occurred_at.is_a?( String ) ?
|
21
|
+
occurred_at :
|
22
|
+
occurred_at.iso8601
|
23
|
+
end
|
24
|
+
|
16
25
|
def endpoint
|
17
26
|
'/messages'
|
18
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acception-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- C. Jason Harrelson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|