mastercard_api_core 1.4.4 → 1.4.5

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: ab5daab04ebb2b7de4426d7a8774e848116710cc
4
- data.tar.gz: 95c1e71ae76e093c6768a1edb92dee53baa259f7
3
+ metadata.gz: 5d6075f6ff61a84c06c710719432a47d66857074
4
+ data.tar.gz: ce0a882ceabb7f1cbf458d157801b1461dc66c58
5
5
  SHA512:
6
- metadata.gz: 967dc035655157dc5ccf201196c83647ab0203226d5aa8dd6ed97a3aa86522166e98ebeb0488005c127d72eced23279b098a6f43a51176563400ebcecb4bbfee
7
- data.tar.gz: 3a61ce06ea6df3063eee750045bf287ad9b12649aaf56ba880e1d10e445ad94969936dd227566feae65d7e62336a5dad315f8e42ff75feca0cf7d37ac712750b
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
- 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
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
- if (error_data_case_insensitive["errors"].is_a?(Hash) && error_data_case_insensitive["errors"].key?("error"))
63
- error_hash = error_data_case_insensitive["errors"]["error"]
64
- elsif error_data_case_insensitive["errors"].is_a?(Array)
65
- error_hash = error_data_case_insensitive["errors"][0]
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
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-03-08 00:00:00.000000000 Z
11
+ date: 2017-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simplecov