mastercard_api_core 0.0.2 → 0.0.3
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/util.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fccd8bb4ecc7687736857f6f602e65a3bd65166a
|
4
|
+
data.tar.gz: c5fca322f40cc286d53dec2526c3cc88c4f4d44e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32cfb589624d3e9ee8e6212dd7cfa2ad8fc4cdd77a3b3b93f98fc6af2f50e129998442fd1812fd77f3b36c538224377f27cfce1cebf19cb4b6d7bec90cea0437
|
7
|
+
data.tar.gz: 348dcedd35ddde92589db4218c16d3bc33c9bf9a3e27c6846b5d64728ce02781cfd0c684e7b7d35823e484004e5c3373922709315626801b52c31fc8df7cbe7c
|
data/lib/mastercard/core/util.rb
CHANGED
@@ -65,8 +65,8 @@ module MasterCard
|
|
65
65
|
|
66
66
|
normalizedParams[key] = value
|
67
67
|
end
|
68
|
-
|
69
|
-
return normalizedParams.
|
68
|
+
normalizedParams = normalizedParams.map{ |k,v| "#{CGI.escape(k.to_s)}=#{CGI.escape(v.to_s)}"}.join("&")
|
69
|
+
return normalizedParams.gsub("+","%20")
|
70
70
|
end
|
71
71
|
|
72
72
|
|