fxpotato 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fxpotato/cli.rb +4 -3
- data/lib/fxpotato/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: 96bf1466205c0392c90b1ba4756c74b9a54d674f
|
4
|
+
data.tar.gz: 8db3edee83c0397ed6802bcdaf0d5242e74e4449
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d334930ca7e6a9c78bed5abbf01aea3ecd4475d6109ae5626c9f67d563a998a924809b99011eb14eea2068f126c9c265833be9ec54a052d5a150f3c9181d44ad
|
7
|
+
data.tar.gz: 34a0381d4baf8ad59f18143e075fbcc5e51ca1e47383411124fc3827d9eb7f311a1b855c22c99eae1dc710e466508e73e131b8497a7ae01adf709ea9747192be
|
data/lib/fxpotato/cli.rb
CHANGED
@@ -3,9 +3,10 @@ require 'fxpotato'
|
|
3
3
|
|
4
4
|
module FxPotato
|
5
5
|
class CLI < Thor
|
6
|
-
desc "getrate
|
7
|
-
|
8
|
-
|
6
|
+
desc "getrate BASE TARGET", "Gets the foreign exchange rate for the given currencies on the chosen date."
|
7
|
+
method_option :date, :aliases => "-d"
|
8
|
+
def getrate(base, target)
|
9
|
+
puts FxPotato.at(options[:date] || Date.today, base, target)
|
9
10
|
end
|
10
11
|
end
|
11
12
|
end
|
data/lib/fxpotato/version.rb
CHANGED