exchange-rates-generator 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -62,13 +62,13 @@ Available Sources:
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
-
formatter = ::ExchangeRatesGenerator::Formatters.get(options[:format].
|
65
|
+
formatter = ::ExchangeRatesGenerator::Formatters.get(options[:format].downcase)
|
66
66
|
unless formatter
|
67
67
|
stdout.puts "Sorry, I couldn't find a formatter for the format '#{options[:format]}', use the -l or --list flag to see the complete list of available formats."
|
68
68
|
exit
|
69
69
|
end
|
70
70
|
|
71
|
-
source = ::ExchangeRatesGenerator::Sources.get(options[:source].
|
71
|
+
source = ::ExchangeRatesGenerator::Sources.get(options[:source].downcase)
|
72
72
|
unless source
|
73
73
|
stdout.puts "Sorry, I couldn't find the source '#{options[:source]}', use the -l or --list flag to see the complete list of available sources."
|
74
74
|
exit
|