konvert 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/konvert/version.rb +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: 92c867545508bbdcfbae1ca34d5e7f6fe8649eb5
|
4
|
+
data.tar.gz: f12bda7894163bc49bf75ad991edeebc8a3242b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26f288ad9563a6d0aaa81fa9270d2365c7c4739d97cceb05854566fabe3fc879d89ae6fca4b0264b44a30620c34ba94ae13cee8ffe3b14c7b02c1863dac9de79
|
7
|
+
data.tar.gz: f25d97e699a0e3ce060bcd6583f5e103320be892e8a8670a5784411e200ba2b9f4ca186a80982d286dc8a98221da509f5ac309ad6f1583d9486925ae1b3ae74d
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ Konvert is a Ruby command line gem that lets you convert between different curre
|
|
16
16
|
|
17
17
|
2- Configure the currency rates with respect to a base currency (here EUR):
|
18
18
|
|
19
|
-
irb(main): Money.conversion_rates('EUR', {
|
19
|
+
irb(main): Konvert::Money.conversion_rates('EUR', {
|
20
20
|
'USD' => 1.11,
|
21
21
|
'Bitcoin' => 0.0047
|
22
22
|
})
|
@@ -42,9 +42,9 @@ Konvert is a Ruby command line gem that lets you convert between different curre
|
|
42
42
|
|
43
43
|
5) Perform Comparisons (same currencies or in different currencies):
|
44
44
|
|
45
|
-
irb(main): twenty_dollars == Money.new(20, 'USD') # => true
|
46
|
-
irb(main): twenty_dollars == Money.new(30, 'USD') # => false
|
47
|
-
irb(main): twenty_dollars > Money.new(5, 'USD') # => true
|
45
|
+
irb(main): twenty_dollars == Konvert::Money.new(20, 'USD') # => true
|
46
|
+
irb(main): twenty_dollars == Konvert::Money.new(30, 'USD') # => false
|
47
|
+
irb(main): twenty_dollars > Konvert::Money.new(5, 'USD') # => true
|
48
48
|
irb(main): twenty_dollars < fifty_eur # => true
|
49
49
|
|
50
50
|
|
data/lib/konvert/version.rb
CHANGED