ad_leads 0.1.5 → 0.1.6

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: b4264d8910ed535e642bb79e3a04281bd1a7f999
4
- data.tar.gz: 37c27b15afe0b73473a0abe80e4f54627fbadd00
3
+ metadata.gz: 479cda63e3f226132b2ad9999f038fc771067333
4
+ data.tar.gz: 1e32eb9c367cee86ec90477121e6ee8be83dc9ad
5
5
  SHA512:
6
- metadata.gz: c4e9ce8253ead574d16fa355086a62b87aa2607538718feb99401ac09bb57872b3d6aa0908aed620ec5b8f5b105595c89f0699e9cca9db0ebcd2eb0469b55e07
7
- data.tar.gz: 2607fdd4eac9e8e053a4f03ea15315433bec596003dc3f9df458815873f1cfaf57a92b47816ef31470f59565d055b6062531ef61de379f051b52df8fa44eead5
6
+ metadata.gz: a2171e5b43e829b1fcc0ddd65491b9c4d2bb69b621b2b5868f0bc9f83d203245d9a834778a0dce6cf81173a3edd61d12b1a40dea8868550c983ba083089f612b
7
+ data.tar.gz: a87f9ad97458846d1751bd7e8ed5631646d588f39bddb78f070f86a5b2bd982fdddc15f3bd0a35ef3bd2b89bfcd2b85f712581118cf2c76b8ed84899b9206f34
@@ -87,7 +87,7 @@ module AdLeads
87
87
  case response.status
88
88
  when 400 then raise ArgError.new response.body
89
89
  when 401 then raise AuthError.new "token: #{token}" + response.body.to_s
90
- when 500 then raise ApiError.new response.body
90
+ when 500 then raise ApiServerError.new response.body
91
91
  else
92
92
  response
93
93
  end
@@ -97,13 +97,13 @@ module AdLeads
97
97
 
98
98
  end
99
99
 
100
- class Error < StandardError
100
+ class ApiError < StandardError
101
101
  def initialize(message)
102
102
  Logger.new(STDOUT).error message
103
103
  super(message)
104
104
  end
105
105
  end
106
- class AuthError < Error; end
107
- class ApiError < Error; end
108
- class ArgError < Error; end
106
+ class AuthError < ApiError; end
107
+ class ApiServerError < ApiError; end
108
+ class ArgError < ApiError; end
109
109
  end
@@ -1,3 +1,3 @@
1
1
  module AdLeads
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ad_leads
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dinshaw