mastercard_api_core 1.3.0 → 1.4.0

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: 935f938b44f37f40d32dc83246584931f8859a9f
4
- data.tar.gz: d4b93fb4e1c91b374113ac6008f4b9c78edd9713
3
+ metadata.gz: 944203e87ee923b74bf1ff75a6bdfc7197cd4b32
4
+ data.tar.gz: 6fbf644b3b92a6a58165da9fe1f14ce654c211f9
5
5
  SHA512:
6
- metadata.gz: 19f4e5015aa084f5090fa4d5d245080d03228b48d9ed5d0d424734e8df7e8c3f95f35eb0035efb3a4d55a3f0787a696524ef9d1901b9dca4e8ce40aa8ec2a445
7
- data.tar.gz: 920550390ae05f073b126b369832ec7cb66f002c1d6ba3106879afa4ed13ab18b8249e9c0bcf8e3dea3ab2891f8d3b1a49187aaf377abcd0079da0ed0da6cf59
6
+ metadata.gz: e873d63a12ca97afe302b75f12182509d882650717e0a8eb216807acbab89046d3c8c11add4c50bb87a520f849ec9424b4b863274101e86008744ffe3f29e1ed
7
+ data.tar.gz: 9f98769a65e6682c31c468e4d25eef3b80fe5c9d1f9f546fda3478a9b1699f0e9b0ba9ccc16689b82eb1cb22c0e10b134246efa6dbf4ce7ddae89b5aea95049c
@@ -36,21 +36,21 @@ module MasterCard
36
36
  SANDBOX = "sandbox"
37
37
  STAGE = "stage"
38
38
  DEV = "dev"
39
- MTF = "mtf"
40
- ITF = "itf"
39
+ PRODUCTION_MTF = "production_mtf"
40
+ PRODUCTION_ITF = "production_itf"
41
+ STAGE_MTF = "stage_mtf"
42
+ STAGE_ITF = "stage_itf"
41
43
  LOCALHOST = "localhost"
42
- DEVCLOUD = "devcloud"
43
- LABSCLOUD = "labscloud"
44
- OTHER1 = "other1"
45
- OTHER2 = "other2"
46
- OTHER3 = "other3"
44
+ OTHER = "other"
47
45
  MAPPING = {
48
46
  "production" => ["https://api.mastercard.com", nil],
49
47
  "sandbox" => ["https://sandbox.api.mastercard.com", nil],
50
48
  "stage" => ["https://stage.api.mastercard.com", nil],
51
49
  "dev" => ["https://dev.api.mastercard.com", nil],
52
- "mtf" => ["https://sandbox.api.mastercard.com", "mtf"],
53
- "itf" => ["https://sandbox.api.mastercard.com", "itf"],
50
+ "production_mtf" => ["https://api.mastercard.com", "mtf"],
51
+ "production_itf" => ["https://api.mastercard.com", "itf"],
52
+ "stage_mtf" => ["https://stage.api.mastercard.com", "mtf"],
53
+ "stage_itf" => ["https://stage.api.mastercard.com", "itf"],
54
54
  "localhost" => ["http://localhost:8081", nil]
55
55
  }
56
56
 
@@ -216,14 +216,14 @@ module MasterCard
216
216
  resolvedHost = metadata.getHost()
217
217
 
218
218
  resourcePath = config.getResoucePath().dup
219
- if (resourcePath.index("{:env}"))
219
+ if (resourcePath.index("#env"))
220
220
  contenxt = ""
221
221
 
222
222
  if !metadata.getContext().nil? && !metadata.getContext().empty?
223
223
  contenxt = metadata.getContext()
224
224
  end
225
225
 
226
- resourcePath.sub!("{:env}", contenxt)
226
+ resourcePath.sub!("#env", contenxt)
227
227
  resourcePath.sub!("//", "/")
228
228
  end
229
229
 
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.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - MasterCard Worldwide
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-29 00:00:00.000000000 Z
11
+ date: 2017-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simplecov