kovid 0.3.9 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c963533d7157df2e17e5f4fb35f50ff0366e37c5d61f7678bcf8ab51544d218
4
- data.tar.gz: 8b2eceeffdac618d363316a0447ef676a17dc3e7e5971b01b2749ff487baef57
3
+ metadata.gz: 805ebfcadcb3041015a46704d04995f1af3832e62317e3028d6c5b03ba06573b
4
+ data.tar.gz: 53a9f7ab8e963c967e4950a3c01ca75921a4e63af1dc17f82afd03ec714102bc
5
5
  SHA512:
6
- metadata.gz: 5f2de3a8b27276df0f21ba75cc645dd60d889e59763919e52be2b31acab88f684b755b69bcd8344d6c46133c1fbfdb387aececb270c067e7cf25112cf89bb0d5
7
- data.tar.gz: 8c107b6878b0b41fc4460c84e2a9aab8f07cf48a0e25b90946d62aaca92d1cfa68c9430a51d960735577d07f590e7ed52da6a403831536dd2bfa149922501977
6
+ metadata.gz: d93e334e768c1e549997a2ed9a8aa980e927d3b7501d8ed7af35bb5efc5d9b35bbe180fdfb1fb70c0d77b1779957c5e6f85654771edfa875096b181cfdd0933f
7
+ data.tar.gz: 72aa6f14b03f032b12aa0b49170a0a6da492f177960ad87f99baeaaf9a78d5d67063bf9c6c0d1266bbae0ee37452ea22e7a7308a6b7595d5cffc3d82c02c511b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kovid (0.3.8)
4
+ kovid (0.3.9)
5
5
  rainbow (~> 3.0)
6
6
  terminal-table (~> 1.8)
7
7
  thor (~> 1.0)
@@ -10,46 +10,11 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- aruba (1.0.0)
14
- childprocess (~> 3.0)
15
- contracts (~> 0.16.0)
16
- cucumber (>= 2.4, < 4.0)
17
- ffi (~> 1.9)
18
- rspec-expectations (~> 3.4)
19
- thor (~> 1.0)
20
- backports (3.17.0)
21
- builder (3.2.4)
22
- childprocess (3.0.0)
23
- coderay (1.1.2)
24
- contracts (0.16.0)
25
- cucumber (3.1.2)
26
- builder (>= 2.1.2)
27
- cucumber-core (~> 3.2.0)
28
- cucumber-expressions (~> 6.0.1)
29
- cucumber-wire (~> 0.0.1)
30
- diff-lcs (~> 1.3)
31
- gherkin (~> 5.1.0)
32
- multi_json (>= 1.7.5, < 2.0)
33
- multi_test (>= 0.1.2)
34
- cucumber-core (3.2.1)
35
- backports (>= 3.8.0)
36
- cucumber-tag_expressions (~> 1.1.0)
37
- gherkin (~> 5.0)
38
- cucumber-expressions (6.0.1)
39
- cucumber-tag_expressions (1.1.1)
40
- cucumber-wire (0.0.1)
41
13
  diff-lcs (1.3)
42
14
  docile (1.3.2)
43
15
  ethon (0.12.0)
44
16
  ffi (>= 1.3.0)
45
17
  ffi (1.12.2)
46
- gherkin (5.1.0)
47
- method_source (0.9.2)
48
- multi_json (1.14.1)
49
- multi_test (0.1.2)
50
- pry (0.12.2)
51
- coderay (~> 1.1.0)
52
- method_source (~> 0.9.0)
53
18
  rainbow (3.0.0)
54
19
  rake (12.3.3)
55
20
  rspec (3.9.0)
@@ -80,13 +45,10 @@ PLATFORMS
80
45
  ruby
81
46
 
82
47
  DEPENDENCIES
83
- aruba
84
- cucumber
85
48
  kovid!
86
- pry
87
49
  rake (~> 12.0)
88
50
  rspec (~> 3.0)
89
- simplecov
51
+ simplecov (~> 0.18)
90
52
 
91
53
  BUNDLED WITH
92
54
  2.1.4
data/README.md CHANGED
@@ -20,6 +20,7 @@ It's recommended you update often with `gem update kovid`.
20
20
  You can run `kovid --help` to see the full list of available commands.
21
21
 
22
22
  #### Commands Overview
23
+
23
24
  😷 **Fetching**
24
25
  * `kovid check COUNTRY` OR `kovid country COUNTRY`.
25
26
  * `kovid check COUNTRY -f` OR `kovid check COUNTRY --full`.
@@ -34,6 +35,13 @@ You can fetch aggregated EU (all 27 countries combined) data:
34
35
  You can fetch US state-specific data:
35
36
  * `kovid state STATE` OR `kovid state "STATE NAME"`.
36
37
 
38
+ ##### 🔜 Upcoming Fetch Features 👷‍♀️
39
+
40
+ * `kovid europe` Aggrated stats on Europe
41
+ * `kovid africa` Aggrated stats on Africa
42
+ * `kovid asia` Aggrated stats on Asia
43
+ * `kovid south_america` Aggrated stats on South America
44
+ ___
37
45
  😷 **Comparing**
38
46
  * `kovid compare FOO BAR` (sorts by cases DESC).
39
47
  * `kovid compare FOO BAR -f` OR `kovid compare FOO BAR --full` (sorts by cases DESC).
@@ -42,10 +50,13 @@ Where `FOO` and `BAR` are different countries.
42
50
 
43
51
  You can compare as many countries as you want; `kovid compare FOO BAR BAZ` OR `kovid compare FOO BAR BAZ -f`
44
52
 
53
+ ##### 🔜 Upcoming Compare Features 👷‍♂️
54
+ * `kovid compare US_STATE1 US_STATE ...` Side-by-side stats on two/more US states.
55
+ ___
45
56
  😷 **History**
46
57
  * `kovid history COUNTRY` (full history).
47
58
  * `kovid history COUNTRY N` (history in the last N days).
48
-
59
+ ___
49
60
  😷 **Total figures**
50
61
  * `kovid cases` (summary of reported incidents globally).
51
62
 
@@ -101,7 +112,7 @@ To check for total figures:
101
112
  ![kovid](https://i.gyazo.com/e01f4769a2b9e31ce50cec212e55810c.png "Covid data.")
102
113
 
103
114
  ## Information Source
104
- > https://www.worldometers.info/coronavirus/ via [NovelCOVID/API](https://github.com/novelcovid/api)
115
+ > [JHU CSSE GISand Data](https://gisanddata.maps.arcgis.com/apps/opsdashboard/index.html#/bda7594740fd40299423467b48e9ecf6) and https://www.worldometers.info/coronavirus/ via [NovelCOVID/API](https://github.com/novelcovid/api)
105
116
 
106
117
 
107
118
  ## 👨‍💻 Development
data/kovid.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.add_dependency "typhoeus", "~> 1.3"
24
24
  spec.add_dependency "rainbow", "~> 3.0"
25
25
 
26
- spec.add_development_dependency "simplecov"
26
+ spec.add_development_dependency "simplecov", "~> 0.18"
27
27
 
28
28
  # Specify which files should be added to the gem when it is released.
29
29
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -58,13 +58,13 @@ module Kovid
58
58
 
59
59
  rows = []
60
60
  rows << [
61
- data['cases'],
62
- data['deaths'],
63
- data['recovered'],
61
+ comma_delimit(data['cases']),
62
+ comma_delimit(data['deaths']),
63
+ comma_delimit(data['recovered']),
64
64
  check_if_positve(data['todayCases']),
65
65
  check_if_positve(data['todayDeaths']),
66
- data['critical'],
67
- data['casesPerOneMillion']
66
+ comma_delimit(data['critical']),
67
+ comma_delimit(data['casesPerOneMillion'])
68
68
  ]
69
69
 
70
70
  # if iso = data['countryInfo']['iso2']
@@ -200,7 +200,7 @@ module Kovid
200
200
  comma_delimit(eu_data['critical'])
201
201
  ]
202
202
 
203
- Terminal::Table.new(title: 'Aggregated EU Data'.upcase, headings: EU_AGGREGATE_HEADINGS, rows: rows)
203
+ Terminal::Table.new(title: 'Aggregated EU (27 States) Data'.upcase, headings: EU_AGGREGATE_HEADINGS, rows: rows)
204
204
  end
205
205
 
206
206
  private
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.3.9'
4
+ VERSION = '0.3.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.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emmanuel Hayford
@@ -70,16 +70,16 @@ dependencies:
70
70
  name: simplecov
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '0.18'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: '0.18'
83
83
  description: A CLI to fetch and compare the 2019 coronavirus pandemic statistics.
84
84
  email:
85
85
  - siawmensah@gmail.com