covid 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +16 -0
- data/lib/covid.rb +3 -3
- data/lib/covid/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42e5bb77ffa1422f903aba1bcacdfc13c840c55d64e9556eb436d017d5c4c155
|
4
|
+
data.tar.gz: b7cf65678daf795e5f745ef0432afaf1387c85568d5887b7740c5be1cc13916a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c7748580b7713b8f1e96f9c600f67bfc376e8ebca12f0cd72bcb556407432ebc23c0870bef69febe93600e37ae89003ccb68908209b6ed080edc4b4f3690650
|
7
|
+
data.tar.gz: 5fa5c3a6518b8ef2922ebdc40ee296668e69addd34498405dae0a7d7d108270524d4e7371aabba47eac7f25e07ccf7ba3632374ef643dca2cb301a51989a02b5
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -26,6 +26,22 @@ $ Covid::Nineteen.deaths
|
|
26
26
|
$ Covid::Nineteen.recovered
|
27
27
|
```
|
28
28
|
|
29
|
+
The data is structured as such:
|
30
|
+
```
|
31
|
+
$ pp Covid::Nineteen.confirmed
|
32
|
+
[
|
33
|
+
{
|
34
|
+
"Province/State"=>nil,
|
35
|
+
"Country/Region"=>"Thailand",
|
36
|
+
"Lat"=>"15",
|
37
|
+
"Long"=>"101",
|
38
|
+
"1/22/20"=>"2",
|
39
|
+
"1/23/20"=>"3",
|
40
|
+
"1/24/20"=>"5"
|
41
|
+
},
|
42
|
+
{ ... }
|
43
|
+
]
|
44
|
+
```
|
29
45
|
|
30
46
|
## Development
|
31
47
|
|
data/lib/covid.rb
CHANGED
@@ -9,9 +9,9 @@ module Covid
|
|
9
9
|
class Error < StandardError; end
|
10
10
|
class Nineteen
|
11
11
|
BASE_URI = "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/"
|
12
|
-
CONFIRMED = "
|
13
|
-
DEATHS = "
|
14
|
-
RECOVERED = "
|
12
|
+
CONFIRMED = "time_series_covid19_confirmed_global.csv"
|
13
|
+
DEATHS = "time_series_covid19_deaths_global.csv"
|
14
|
+
RECOVERED = "time_series_covid19_recovered_global.csv"
|
15
15
|
|
16
16
|
def initialize(path)
|
17
17
|
@path = path
|
data/lib/covid/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: covid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Thom
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|