kovid 0.1.14 → 0.1.15
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 +17 -0
- data/lib/kovid/cli.rb +1 -2
- data/lib/kovid/tablelize.rb +2 -2
- data/lib/kovid/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dec1641038a035a0bc758b932acbdaf903c4b750ce78e741b9774dbe36afbccc
|
|
4
|
+
data.tar.gz: cf970b4f697a365d5f5d9784067377319a2d425e917b308a70496cba41834724
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 453a0fb385948b6ff7c4da4f92a522cf954587246d529eb2e959ec1b361e73f5b271c6656a381a2ff94b730ea30c09ae67f88c4d03e74441b2d44c03e28d07d5
|
|
7
|
+
data.tar.gz: 9d5927e08ab1a4520c774d237fc937b06672b983cddd001b205388b6180a14f25ce43d0471140e85ebb5b430e55422dc6edbeaa1ed5a67e0ce96e2b2d0e44884
|
data/Gemfile.lock
CHANGED
data/kovid.gemspec
CHANGED
|
@@ -14,6 +14,23 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
|
|
15
15
|
spec.metadata["allowed_push_host"] = "https://rubygems.org/"
|
|
16
16
|
|
|
17
|
+
spec.post_install_message = %q{
|
|
18
|
+
============================================================================
|
|
19
|
+
COVID-19 has devasted the world! But while we're fighting
|
|
20
|
+
with the novel coronavirus, I think stats on the issue should be easily
|
|
21
|
+
reachable.
|
|
22
|
+
|
|
23
|
+
There isn't much we can do now aside:
|
|
24
|
+
|
|
25
|
+
* Washing our hands with soap frequently.
|
|
26
|
+
* Limiting our movements and social distancing.
|
|
27
|
+
* Being there for each other.
|
|
28
|
+
|
|
29
|
+
Stay safe!
|
|
30
|
+
Emmanuel Hayford.
|
|
31
|
+
============================================================================
|
|
32
|
+
}
|
|
33
|
+
|
|
17
34
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
18
35
|
spec.metadata["source_code_uri"] = "https://github.com/siaw23/kovid"
|
|
19
36
|
spec.metadata["changelog_uri"] = "https://github.com/siaw23/kovid"
|
data/lib/kovid/cli.rb
CHANGED
|
@@ -32,8 +32,7 @@ module Kovid
|
|
|
32
32
|
desc 'compare COUNTRY COUNTRY', 'Returns full comparison table for given countries. Accepts multiple countries.'
|
|
33
33
|
def compare(*name)
|
|
34
34
|
if FULL_FLAG.include?(name.fetch(-1))
|
|
35
|
-
|
|
36
|
-
puts Kovid.country_comparison_full(name)
|
|
35
|
+
puts Kovid.country_comparison_full(name[0..-2])
|
|
37
36
|
else
|
|
38
37
|
puts Kovid.country_comparison(name)
|
|
39
38
|
end
|
data/lib/kovid/tablelize.rb
CHANGED
|
@@ -48,10 +48,10 @@ module Kovid
|
|
|
48
48
|
def full_state_table(state)
|
|
49
49
|
headings = [
|
|
50
50
|
'Cases'.paint_white,
|
|
51
|
-
'Cases Today',
|
|
51
|
+
'Cases Today'.paint_white,
|
|
52
52
|
'Deaths'.paint_red,
|
|
53
53
|
'Deaths Today'.paint_red,
|
|
54
|
-
'
|
|
54
|
+
'Recovered'.paint_green,
|
|
55
55
|
'Active'.paint_yellow
|
|
56
56
|
]
|
|
57
57
|
|
data/lib/kovid/version.rb
CHANGED
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.1.
|
|
4
|
+
version: 0.1.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Emmanuel Hayford
|
|
@@ -160,7 +160,13 @@ metadata:
|
|
|
160
160
|
homepage_uri: https://github.com/siaw23/kovid
|
|
161
161
|
source_code_uri: https://github.com/siaw23/kovid
|
|
162
162
|
changelog_uri: https://github.com/siaw23/kovid
|
|
163
|
-
post_install_message:
|
|
163
|
+
post_install_message: "\n ============================================================================\n
|
|
164
|
+
\ COVID-19 has devasted the world! But while we're fighting\n with the
|
|
165
|
+
novel coronavirus, I think stats on the issue should be easily\n reachable.\n\n
|
|
166
|
+
\ There isn't much we can do now aside:\n\n * Washing our hands with soap
|
|
167
|
+
frequently.\n * Limiting our movements and social distancing.\n * Being
|
|
168
|
+
there for each other.\n\n Stay safe!\n Emmanuel Hayford.\n ============================================================================\n
|
|
169
|
+
\ "
|
|
164
170
|
rdoc_options: []
|
|
165
171
|
require_paths:
|
|
166
172
|
- lib
|