agilibox 1.4.0 → 1.4.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
  SHA256:
3
- metadata.gz: 698634df72b0e0a386b55326f55b22246c392bbf4488d0c78b0fb97b7f230c4f
4
- data.tar.gz: 9cf623860c2e7dc514435ac01116a46948b6d415d0113b765bb239407fd44b72
3
+ metadata.gz: 98e93b2f05d0b8471961e987fda804de4ca8a7c34bdb56cd1db0ef2266d43bd0
4
+ data.tar.gz: 05ff513ffa80fa570b3f9cd749cf6e522670fac031eb55e7a66f9279874ecf08
5
5
  SHA512:
6
- metadata.gz: 1da109149aa05456d4d5b156f103788a66e998436218137a5aca38dc9d66a5e78eefdd7df302d2d3dc86708468f2e58e73b0a1067e4a5a227e6642260cdd6f63
7
- data.tar.gz: dde577f9d385392ba9aa5546cc1e9882989a58edb1ec5956bdf51cd1f61f1128efa5820e0d3bb812b7eb41512000f34ed26747f23ced3e053310933418d5236e
6
+ metadata.gz: 40ed3cf046b5c1ed49c0ea3593586508d15e58488c75ba227287ee4b72056fce8a5438bbf86da982f8c23d9c067d78c3bb05f1d60442dec43fce22b3183aea36
7
+ data.tar.gz: 558aecddbb9594170054a257fe1d83797a7d3e481425452f8b390f1ab2dac7cc1336a01ecab869ffc5043cdc75b8d0131492d0c5ba103ed613d0ee7308532be9
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## 1.4.1
6
+
7
+ - FCM request handle JSON errors
8
+
5
9
  ## 1.4.0
6
10
 
7
11
  - Add `Agilibox::Email`
@@ -24,6 +24,9 @@ class Agilibox::FCM::Request < Agilibox::Service
24
24
 
25
25
  @response_json = JSON.parse(response_body).deep_symbolize_keys
26
26
 
27
+ self
28
+ rescue JSON::ParserError
29
+ @response_json = {success: 0, failure: 1, results: [{:error => "InvalidJsonResponse"}]}
27
30
  self
28
31
  end
29
32
 
@@ -1,3 +1,3 @@
1
1
  module Agilibox
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agilibox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - agilidée
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-30 00:00:00.000000000 Z
11
+ date: 2018-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails-i18n