exchange-rates-generator 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.
|
@@ -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
|