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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b076767efca0c5510471d075afbe31a1ea99aee
4
- data.tar.gz: b5c58eb1f464f6bcb2a25f9d04640b715a332aac
3
+ metadata.gz: adf29721ca634a2a0b290d41262906d41d821f69
4
+ data.tar.gz: a7766498578940b9468872aa567f61a108d40041
5
5
  SHA512:
6
- metadata.gz: 0d2ad35c787ecef4745b57e24863e18ed6604596bb5502ec908541175b2e3c33ee2dad5416924f43282ea5bd7d209489175325217dbc5fb97a6c10f8f1764b72
7
- data.tar.gz: 6269f6a4d23e912f461128e35975d28ea6d26e1dbef5717e14eb412eb9ff866a627674a67760adabb865959b0f156a1434c53b74638c78c3eefdcef0b8fe6c23
6
+ metadata.gz: 89b735c29e76eac4de7d43a64788a51964ce8f80d7d03f5d1f3c77519996d7b7ce44a23881455568f71715834d5fd4aa1c40993890dd05080d260bfac3523b09
7
+ data.tar.gz: fe57f9b4d5719542845e43bf1a935e6f162e391c4feb6ad0e097c13ce368bd9e7b3bb6c79a7383d0ec2df6fcd0d1822d567e88c43d8aac69c3c2b00124787500
@@ -7,4 +7,5 @@ en:
7
7
  error: Error
8
8
  fatal: Fatal
9
9
  info: Info
10
+ license_violation: License Violation
10
11
  warning: Warning
@@ -17,7 +17,12 @@ module Acception
17
17
  end
18
18
 
19
19
  def occurred_at
20
- (attributes[:occurred_at] || Time.now.utc).iso8601
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
- (attributes[:occurred_at] || Time.now.utc).iso8601
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
@@ -1,7 +1,7 @@
1
1
  module Acception
2
2
  module Client
3
3
 
4
- VERSION = "1.1.0"
4
+ VERSION = "1.2.0"
5
5
 
6
6
  end
7
7
  end
@@ -9,6 +9,7 @@ module Acception
9
9
  error
10
10
  fatal
11
11
  info
12
+ license_violation
12
13
  warning
13
14
  )
14
15
  end
@@ -21,6 +22,7 @@ module Acception
21
22
  # ERROR
22
23
  # FATAL
23
24
  # INFO
25
+ # LICENSE_VIOLATION
24
26
  # WARNING
25
27
 
26
28
  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.1.0
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-22 00:00:00.000000000 Z
11
+ date: 2014-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler