mastercard_api_core 1.4.4 → 1.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mastercard/core/controller.rb +6 -6
- data/lib/mastercard/core/exceptions.rb +8 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d6075f6ff61a84c06c710719432a47d66857074
|
4
|
+
data.tar.gz: ce0a882ceabb7f1cbf458d157801b1461dc66c58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85354c75ea5d395a50fe06e9ec5c4bcb22b8f8a2a1aa893c719dc44afbd47f8327c4a7d90fdad0e3aab3654192204a165ad22050941e5b7f0f83b725e661b3be
|
7
|
+
data.tar.gz: 032791873c7becb1cb7c1c2f865b9ad95e604087e520f54cbaf61ff1cecea29f308e599f07f12f11e917234b8603d707b446842c2eaec48fa31af8d92fc86feb
|
@@ -308,12 +308,12 @@ module MasterCard
|
|
308
308
|
|
309
309
|
#This step is if id is in inputMap but was not specified in URL as /{id}
|
310
310
|
#If the action is read,update or delete we add this id
|
311
|
-
if inputMap.has_key?(KEY_ID)
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
end
|
311
|
+
#if inputMap.has_key?(KEY_ID)
|
312
|
+
# if [ACTION_READ,ACTION_UPDATE,ACTION_DELETE].include? action.upcase
|
313
|
+
# resourcePath += "/"+inputMap[KEY_ID].to_s
|
314
|
+
# inputMap.delete(KEY_ID) #Remove from input path otherwise this would get add in query params as well
|
315
|
+
# end
|
316
|
+
#end
|
317
317
|
|
318
318
|
return resourcePath
|
319
319
|
|
@@ -59,10 +59,14 @@ module MasterCard
|
|
59
59
|
|
60
60
|
# If error_data is of type hash and has Key 'Errors' which has a key 'Error'
|
61
61
|
if error_data_case_insensitive.key?("errors")
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
error_hash =
|
62
|
+
|
63
|
+
error_hash = error_data_case_insensitive["errors"]
|
64
|
+
if (error_hash.is_a?(Hash) && error_hash.key?("error"))
|
65
|
+
error_hash = error_hash["error"]
|
66
|
+
end
|
67
|
+
|
68
|
+
if error_hash.is_a?(Array)
|
69
|
+
error_hash = error_hash[0]
|
66
70
|
end
|
67
71
|
|
68
72
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mastercard_api_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MasterCard Worldwide
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simplecov
|