bin/barometer in barometer-0.6.1 vs bin/barometer in barometer-0.6.2

- old
+ new

@@ -64,11 +64,11 @@ require 'date' require 'yaml' # file where API keys are stored KEY_FILE = File.expand_path(File.join('~', '.barometer')) -BAROMETER_VERSION = '0.6.0' +BAROMETER_VERSION = '0.6.2' class App attr_reader :options @@ -401,25 +401,17 @@ def pretty_forecast(f) return unless f section("FOR: #{f.date}", 3) do pretty_hash({ - "Date" => f.date, "Icon" => f.icon, + "Valid From" => f.valid_start_date.to_s(true), + "Valid Until" => f.valid_end_date.to_s(true), + "Icon" => f.icon, "Description" => f.description, "Condition" => f.condition, "High" => f.high, "Low" => f.low, "POP" => f.pop, "Humidity" => f.humidity }) pretty_hash({ "Wind" => f.wind, "Wind Direction" => f.wind.direction, "Wind Degrees" => f.wind.degrees }) if f.wind pretty_hash({ "Sun Rise" => f.sun.rise, "Sun Set" => f.sun.set }) if f.sun - if f.night - puts - title("NIGHT", 4) - pretty_hash({ - "Date" => f.night.date, "Icon" => f.night.icon, - "Condition" => f.night.condition, "POP" => f.night.pop, - "Humidity" => f.night.humidity }) - pretty_hash({ "Wind" => f.night.wind, "Wind Direction" => f.night.wind.direction, - "Wind Degrees" => f.night.wind.degrees }) if f.night.wind - end end end def pretty_forecasts(forecasts) return unless forecasts