intercom 2.1.2 → 2.1.3

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: bfa7fdd97efe351ed92aaeb329120fa12544523c
4
- data.tar.gz: 2fdd8a519b9f5f27cf25706467671dfd34c760ab
3
+ metadata.gz: 6976bd2a07095bf95783f7be2c63e77831c7ec9d
4
+ data.tar.gz: 54f2e7cd0cb0b33c8499daece9f1a113ea322ea7
5
5
  SHA512:
6
- metadata.gz: a7c1c1db29702c1b4dab017afbe3b80b4a67ab6cbb419e35e426b0d5ac3d73d72307b67f9dd171c45bde0365c6e4fae88d22d490643135cb2a61b179cbcf1dcf
7
- data.tar.gz: c45e08a51fc9462b587ef2529e2752359b26edbe470d9d33d739c68bdbe975059d19ded0839ea928e099d0c28ac649876b1d187596f5708d6a3f3ec1f798a9ee
6
+ metadata.gz: 7bf7d2d7b646065cf719d56cf5df4f9503b549e466330d2013580333c3ac5ae55456c1587b2f98e55a432436b5a0b3dfb5a20adae248137db37614bd209f021b
7
+ data.tar.gz: df456322206c0889a328fb0308421302b3606617cfcbe4219eb13fe6f4a731eecdabc74a1c68194c940c1bf8398ae4321a8541e3684d434ad70f72e85fd77517
data/README.md CHANGED
@@ -19,7 +19,7 @@ Additionally, the new version uses Ruby 2.
19
19
 
20
20
  Using bundler:
21
21
 
22
- gem 'intercom', "~> 2.1.1"
22
+ gem 'intercom', "~> 2.1.3"
23
23
 
24
24
  ## Basic Usage
25
25
 
@@ -1,4 +1,4 @@
1
- 2.2.2
1
+ 2.1.2
2
2
  - Clean up some spec warnings
3
3
  - Fix incrementing of custom data
4
4
 
@@ -68,7 +68,7 @@ module Intercom
68
68
  parsed_body
69
69
  end
70
70
  rescue Timeout::Error
71
- raise Intercom::ServiceUnavailableError
71
+ raise Intercom::ServiceUnavailableError.new('Service Unavailable')
72
72
  end
73
73
 
74
74
  def decode(content_encoding, body)
@@ -78,15 +78,15 @@ module Intercom
78
78
 
79
79
  def raise_errors_on_failure(res)
80
80
  if res.code.to_i.eql?(404)
81
- raise Intercom::ResourceNotFound
81
+ raise Intercom::ResourceNotFound.new('Resource Not Found')
82
82
  elsif res.code.to_i.eql?(401)
83
- raise Intercom::AuthenticationError
83
+ raise Intercom::AuthenticationError.new('Unauthorized')
84
84
  elsif res.code.to_i.eql?(500)
85
- raise Intercom::ServerError
85
+ raise Intercom::ServerError.new('Server Error')
86
86
  elsif res.code.to_i.eql?(502)
87
- raise Intercom::BadGatewayError
87
+ raise Intercom::BadGatewayError.new('Bad Gateway Error')
88
88
  elsif res.code.to_i.eql?(503)
89
- raise Intercom::ServiceUnavailableError
89
+ raise Intercom::ServiceUnavailableError.new('Service Unavailable')
90
90
  end
91
91
  end
92
92
 
@@ -1,3 +1,3 @@
1
1
  module Intercom #:nodoc:
2
- VERSION = "2.1.2"
2
+ VERSION = "2.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intercom
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben McRedmond
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2014-07-01 00:00:00.000000000 Z
18
+ date: 2014-07-28 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: minitest