deltavista_crif_dva_interface 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -41,8 +41,12 @@ module DeltavistaCrifDvaInterface
41
41
 
42
42
  def check_response!(response)
43
43
  unless valid_response? response
44
- raise NotFoundError(response.class, response.body) if response.class == Net::HTTPNotFound
45
- raise ServiceNotAvailableError(response.class, response.body)
44
+ if response.class == Net::HTTPNotFound
45
+ ex = NotFoundError.new response.class, response.body
46
+ raise ex if response.class == Net::HTTPNotFound
47
+ end
48
+ ex = ServiceNotAvailableError.new response.class, response.body
49
+ raise ex
46
50
  end
47
51
  response
48
52
  end
@@ -1,3 +1,3 @@
1
1
  module DeltavistaCrifDvaInterface
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deltavista_crif_dva_interface
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: