kovid 0.5.8 → 0.6.0
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 +4 -4
- data/Gemfile.lock +1 -1
- data/kovid.gemspec +1 -1
- data/lib/kovid/tablelize.rb +6 -6
- data/lib/kovid/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d7d6bfb3cb9be53c0ba94fc9f788705f2878d31686ada02106fd2e5dd296b5fd
|
|
4
|
+
data.tar.gz: b1d448270c2fed3bd31fd5f1311f32322bfe096cdec42e9cf7f99af99d5c0793
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 175b4e746c10544101a29ce05ba76b28cc5542b95b198afb7584a2188cf570e551c304485ee6d09e464ecb5e81e7534bd3df9d81cfe4d52b6b9dab5368c6452c
|
|
7
|
+
data.tar.gz: 2e16b56052821e5d7fbb04caf97ac1b019b5430548990aed576166144a61d24a4763c93589589a034ebe7b08f0f7cf350ba2582605eee8e9a98f66ce3e9ce37c
|
data/Gemfile.lock
CHANGED
data/kovid.gemspec
CHANGED
|
@@ -39,7 +39,7 @@ Gem::Specification.new do |spec|
|
|
|
39
39
|
|
|
40
40
|
spec.post_install_message = "
|
|
41
41
|
============================================================================
|
|
42
|
-
COVID-19 has devasted the world.
|
|
42
|
+
COVID-19 has devasted the world. While we're fighting
|
|
43
43
|
with the novel coronavirus, I think stats on the issue should be
|
|
44
44
|
accessible.
|
|
45
45
|
|
data/lib/kovid/tablelize.rb
CHANGED
|
@@ -16,10 +16,10 @@ module Kovid
|
|
|
16
16
|
|
|
17
17
|
CASES_DEATHS_RECOVERED_CTODAY_DTODAY = [
|
|
18
18
|
'Cases'.paint_white,
|
|
19
|
-
'Deaths'.paint_red,
|
|
20
|
-
'Recovered'.paint_green,
|
|
21
19
|
'Cases Today'.paint_white,
|
|
22
|
-
'Deaths
|
|
20
|
+
'Deaths'.paint_red,
|
|
21
|
+
'Deaths Today'.paint_red,
|
|
22
|
+
'Recovered'.paint_green
|
|
23
23
|
].freeze
|
|
24
24
|
|
|
25
25
|
DATE_CASES_DEATHS_RECOVERED = [
|
|
@@ -99,10 +99,10 @@ module Kovid
|
|
|
99
99
|
rows = [
|
|
100
100
|
[
|
|
101
101
|
comma_delimit(data['cases']),
|
|
102
|
-
comma_delimit(data['deaths']),
|
|
103
|
-
comma_delimit(data['recovered']),
|
|
104
102
|
check_if_positve(data['todayCases']),
|
|
105
|
-
|
|
103
|
+
comma_delimit(data['deaths']),
|
|
104
|
+
check_if_positve(data['todayDeaths']),
|
|
105
|
+
comma_delimit(data['recovered'])
|
|
106
106
|
]
|
|
107
107
|
]
|
|
108
108
|
|
data/lib/kovid/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kovid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Emmanuel Hayford
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-04-
|
|
11
|
+
date: 2020-04-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ascii_charts
|
|
@@ -135,8 +135,8 @@ metadata:
|
|
|
135
135
|
source_code_uri: https://github.com/siaw23/kovid
|
|
136
136
|
changelog_uri: https://github.com/siaw23/kovid
|
|
137
137
|
post_install_message: "\n ============================================================================\n
|
|
138
|
-
\ COVID-19 has devasted the world.
|
|
139
|
-
|
|
138
|
+
\ COVID-19 has devasted the world. While we're fighting\n with the novel
|
|
139
|
+
coronavirus, I think stats on the issue should be\n accessible.\n\n There
|
|
140
140
|
isn't much we can do now besides following procedures and hoping\n for the
|
|
141
141
|
best.\n\n Stay safe!\n Emmanuel Hayford.\n https://emmanuelhayford.com\n\n
|
|
142
142
|
\ PS: I'm in search of a Rails/Ruby job.\n\n You can hire me (siawmensah@gmail.com).\n
|