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 +4 -4
- data/lib/mastercard/core/constants.rb +9 -9
- data/lib/mastercard/core/controller.rb +2 -2
- 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: 944203e87ee923b74bf1ff75a6bdfc7197cd4b32
|
4
|
+
data.tar.gz: 6fbf644b3b92a6a58165da9fe1f14ce654c211f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
40
|
-
|
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
|
-
|
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
|
-
"
|
53
|
-
"
|
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("
|
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!("
|
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.
|
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:
|
11
|
+
date: 2017-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simplecov
|