light_currency_convert 0.2 → 0.3

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: ed4bbb54ec082fd1edd190927286346bac4958ed
4
- data.tar.gz: d534c81f62c773884c3d66955e3e05e93f33cc64
3
+ metadata.gz: d8caad31e3d49059f38affcb147edfc4e13f3ec2
4
+ data.tar.gz: 9c83b7dd3bf734917ede1f7f34ee18a74dab51e4
5
5
  SHA512:
6
- metadata.gz: 9628dfa0f3c37ee77699bfaa6cfea1e266b6eebe3776fa162794a85bc28851aa91496637e2ddf3272c838990104e613545951dc7126619cb0c97f195e9b9b1fc
7
- data.tar.gz: 8355b65e12e634cb154dcdbdd7f148fabd43526b678a1eae4da79da4cfba891b08ba93013f6fbb2e98e85b6e4339b0a1c67751fdb1968e7f6dc3506311781de3
6
+ metadata.gz: 64e2b4441988f28c555599d1ab27271e0d9ed90d3f6813fce1cbafa3574eb6ce8ba724818f0c863e95077d5e03c7993da3ffdd0337e746893fc4f89c80ab8d01
7
+ data.tar.gz: 75e61f227b96017771e26fa2da8be81f7a3fa180c496d359badfcf9b19348e50fcea92a00e0dbfa56d1e8c308b44d109815ddb1e9082b533e1f7c53e3045fb87
@@ -18,11 +18,11 @@ module LightCurrencyConverter
18
18
  end
19
19
 
20
20
  def normal_convert(amount)
21
- ((amount.to_f / from.value.to_f) * to.value.to_f).round(2)
21
+ ((amount.to_f / from.value.to_f) * to.value.to_f)
22
22
  end
23
23
 
24
24
  def invers_convert(amount)
25
- ((amount.to_f / to.value.to_f) * from.value.to_f).round(2)
25
+ ((amount.to_f / to.value.to_f) * from.value.to_f)
26
26
  end
27
27
 
28
28
  def to_s
@@ -18,7 +18,7 @@ module LightCurrencyConverter
18
18
 
19
19
  def convert
20
20
  raise NoCourseFundError unless @course
21
- @course.convert(amount, from, to)
21
+ @course.convert(amount, from, to).round(2)
22
22
  end
23
23
 
24
24
  def show_course
@@ -1,3 +1,3 @@
1
1
  module LightCurrencyConvert
2
- VERSION = "0.2"
2
+ VERSION = "0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: light_currency_convert
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: '0.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - toma