mrpin-sdk 1.0.77 → 1.0.78
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mrpin/core/currency_exchanger/currency_exchanger.rb +3 -6
- data/mrpin-sdk.gemspec +1 -1
- 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: 022b94fd2a9d0a0b46e6619f1c7ea7105f1e2596
|
4
|
+
data.tar.gz: 1984b3aa3b118e075278aa8f16b7b58e59421f33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83b220252a0dd4893efc975793e4053ffadfdc1b288f0944b092b47b3f2c760e170449f92becf67c08485d2f67c8e0ab0ebd2ab594ea021f0510fe1bdaf9cc12
|
7
|
+
data.tar.gz: be1a45cdc04805f7a0dd86949d579c9705bb6365106bc5e9460e29b4414b8f65891824217a732ce0ccbbb953ed8ef76b4e988f3f6f24abae56fe1b8bed205244
|
@@ -14,7 +14,7 @@ class CurrencyExchanger
|
|
14
14
|
def get_rate(from_currency, to_currency)
|
15
15
|
from_currency = from_currency.upcase
|
16
16
|
to_currency = to_currency.upcase
|
17
|
-
|
17
|
+
|
18
18
|
result = nil
|
19
19
|
|
20
20
|
if from_currency == to_currency
|
@@ -29,11 +29,8 @@ class CurrencyExchanger
|
|
29
29
|
end
|
30
30
|
|
31
31
|
if result.nil? || result == 0
|
32
|
-
|
33
|
-
|
34
|
-
else
|
35
|
-
result = 1.0
|
36
|
-
end
|
32
|
+
AppInfoBase.instance.on_server_error("can't fetch rate from servers. currency #{from_currency}_#{to_currency}")
|
33
|
+
result = 0.0
|
37
34
|
end
|
38
35
|
|
39
36
|
result
|
data/mrpin-sdk.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'mrpin-sdk'
|
7
|
-
spec.version = '1.0.
|
7
|
+
spec.version = '1.0.78'
|
8
8
|
spec.authors = %w(Gregory Tkach Yakupov Dmitrij)
|
9
9
|
spec.email = %w(gregory.tkach@gmail.com yakupov.dmitrij@gmail.com)
|
10
10
|
spec.description = %q{Mrpin sdk for backend development.}
|