kovid 0.4.9 → 0.4.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc9b9acfefc8a4f38e6e02e51efec96a12b66be538f2f670d4277ee369ad504b
4
- data.tar.gz: 8dca3b44e98ff6eb39015ada45ae8ba495a605091b3e851e6b435ebb090cf4ff
3
+ metadata.gz: 93c6869d4d98c8b4170306fc9db05044d8aede491ff9049e9e172c1df27f99cf
4
+ data.tar.gz: 4e093665a3ff1f44620f6a81af0ff755777f59570648bb0a04b0660fdfb8ff23
5
5
  SHA512:
6
- metadata.gz: b5cbc9a91bbd88538875e6c209008be0c4d47f9a786fe2df4d9c1ac06dc6f2070f0228802f939552792a10a1bf6b9703b78b7f4e4e173d373964d6bf6fef292b
7
- data.tar.gz: d595e9cefcc3ff50b78cc8516ead8c9434fb1b3f7ab49570c83e3ba4016e3137c61bfe54131fa159276d0935d37f76ab3ea04e2ecb411c582b5d65b2f9b75b37
6
+ metadata.gz: 1bd2d6b4e0f1c99719f73fd54db7e3710d4cad8ed24bf1356e277473c5a9a43afead6e8fc31fce84f8dbcbaeb35c2b1b91bc77803f45d7e3ca62097b32c1ec04
7
+ data.tar.gz: e2f7a810f88cd5db07215060329a1d345a89f3f6ccca7967f42a75e94b123638bc917f6494732e821e9dbd87785a7de0216eb3bafe489a214d777632f533df89
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kovid (0.4.7)
4
+ kovid (0.4.9)
5
5
  ascii_charts (~> 0.9.1)
6
6
  rainbow (~> 3.0)
7
7
  terminal-table (~> 1.8)
data/lib/kovid/cli.rb CHANGED
@@ -6,7 +6,7 @@ require 'kovid'
6
6
  module Kovid
7
7
  class CLI < Thor
8
8
  FULL_FLAG = %w[-f --full].freeze
9
-
9
+
10
10
  def self.exit_on_failure?
11
11
  true
12
12
  end
@@ -182,6 +182,7 @@ module Kovid
182
182
  end
183
183
 
184
184
  def history(country, last)
185
+ # Write checks for when country is spelt wrong.
185
186
  headings = DATE_CASES_DEATHS
186
187
  rows = []
187
188
 
@@ -198,7 +199,7 @@ module Kovid
198
199
  end
199
200
 
200
201
  unless last
201
- stats = stats.reject! { |stat| stat[0].to_i.zero? && stat[1].to_i.zero? }
202
+ stats = stats.reject { |stat| stat[0].to_i.zero? && stat[1].to_i.zero? }
202
203
  dates = dates.last(stats.count)
203
204
  end
204
205
 
@@ -250,7 +251,13 @@ module Kovid
250
251
  # With x being day, y being number of cases
251
252
  if dates.empty?
252
253
  if @date.first.to_i > Time.now.month
253
- Kovid.info_table('Seriously...??! 😏')
254
+ msgs = [
255
+ 'Seriously...??! 😏', 'Did you just check the future??',
256
+ 'You just checked the future Morgan.',
257
+ 'Knowing too much of your future is never a good thing.'
258
+ ]
259
+
260
+ Kovid.info_table(msgs.sample)
254
261
  else
255
262
  Kovid.info_table('No infections for this month.')
256
263
  end
data/lib/kovid/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kovid
4
- VERSION = '0.4.9'
4
+ VERSION = '0.4.10'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kovid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emmanuel Hayford