mastercard_api_core 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eaace8e42ca4512e5c646aeb38a80e618f24ac15
4
- data.tar.gz: 2103ad5fd5f01b2c32463eac4f2cebc8e1619bfd
3
+ metadata.gz: 2150f2800cafbbaffe3222bc742bbf71da53bd47
4
+ data.tar.gz: 552b61b4877c7d07439631ab14df512e08302083
5
5
  SHA512:
6
- metadata.gz: bbfecc3d34189d931472d46032f186305aea93451d966f8095e1a30876438902c61141eab82239613de84b2fa1255e1357a9188d64f341b9005ce3b9f5a53bf3
7
- data.tar.gz: 1b29b096869b4b6048db37068c1d851b183b4fb1fe546bbf3385bd744db0906765e87bda82bd18362e7a6e6c859365de0750be9467cae4936d8ca8a8c11293a9
6
+ metadata.gz: 64be18bc473d661d8592be890cc5317d70a1f8208da4c35cf82c26741f65308eb5651e003f96005d78667501dd32a382e642d36eab462e4bc4130446a5931bcc
7
+ data.tar.gz: 09c632919282c1643d74d9704e38dfce46bdcf0ca73787ef9174bc82b227951378d2ee7d3c49cb9f7ce83b8887b4aee9682ec944590a8dac01fa953f9a214a20
@@ -137,20 +137,10 @@ module MasterCard
137
137
 
138
138
  if 200 <= status && status <= 299
139
139
  return content
140
- elsif 300 <= status && status <= 399
141
- raise InvalidRequestException.new("Unexpected response code returned from the API causing redirect",status,content)
142
- elsif status == 400
143
- raise InvalidRequestException.new("Bad request",status,content)
144
- elsif status == 401
145
- raise APIException.new("You are not authorized to make this request",status,content)
146
- elsif status == 403
147
- raise APIException.new("You are not authorized to make this request",status,content)
148
- elsif status == 404
149
- raise ObjectNotFoundException.new("Object not found",status,content)
150
- elsif status == 405
140
+ else
151
141
  raise APIException.new("Operation not allowed",status,content)
152
142
  else
153
- raise SystemException.new("Internal Server Error",status,content)
143
+
154
144
  end
155
145
 
156
146
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastercard_api_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - MasterCard Worldwide