pomber_covid19 0.1.2 → 0.1.3
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/README.md +26 -4
- data/lib/pomber_covid19.rb +1 -1
- data/lib/pomber_covid19/version.rb +1 -1
- data/pomber_covid19-0.1.2.gem +0 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b0f1a728768b18853c3f3ccba0e551916c061c54d9cb07c91da8e24f5a5e1019
|
|
4
|
+
data.tar.gz: 0d0f92d40ea9080d83221f27a2df6329efb13f56d2bd5604eceebe258c5a9364
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: da3ba2dc249d7330ef59890acb55704a7e8dac51aa33fc3e67c36565ccfd110fb6bf8171b9abb0ac20d00af2bb0d557ecfe881de2c56698d6c35eacdbfddb302
|
|
7
|
+
data.tar.gz: 54c219c1e213abcf11f47cc09fa66f070233d293e4c5106cb54321a24cf5af64c0aba469b8df0ad58798440d4351582da74faf2420fbd21db1b7c9af628aa71c
|
data/README.md
CHANGED
|
@@ -1,8 +1,30 @@
|
|
|
1
1
|
# PomberCovid19
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This gem provides an adapter to allow individuals to recieve Covid19 Data from a given country provided by [this repo] (https://github.com/pomber/covid19). It shoots GET request to the following URL:
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
`https://pomber.github.io/covid19/timeseries.json`.
|
|
6
|
+
|
|
7
|
+
The Gem then takes in a country/region that you are looking for and returns data in the following format:
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
[
|
|
11
|
+
{
|
|
12
|
+
"date": "2020-1-22",
|
|
13
|
+
"confirmed": 2,
|
|
14
|
+
"deaths": 0,
|
|
15
|
+
"recovered": 0
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"date": "2020-1-23",
|
|
19
|
+
"confirmed": 3,
|
|
20
|
+
"deaths": 0,
|
|
21
|
+
"recovered": 0
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
```
|
|
25
|
+
Where each JSON hash represents the Covid19 data for a given day.
|
|
26
|
+
|
|
27
|
+
If the request to the Covid19 URL fails, an `HttpRequestError` is raised. If the region is not found, a `RegionNotFoundError` is raised.
|
|
6
28
|
|
|
7
29
|
## Installation
|
|
8
30
|
|
|
@@ -32,7 +54,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
32
54
|
|
|
33
55
|
## Contributing
|
|
34
56
|
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
57
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/everythings_cancelled/pomber_covid19. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
|
36
58
|
|
|
37
59
|
## License
|
|
38
60
|
|
|
@@ -40,4 +62,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
|
40
62
|
|
|
41
63
|
## Code of Conduct
|
|
42
64
|
|
|
43
|
-
Everyone interacting in the PomberCovid19 project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the
|
|
65
|
+
Everyone interacting in the PomberCovid19 project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the Code of Conduct (which is coming soon).
|
data/lib/pomber_covid19.rb
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pomber_covid19
|
|
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
|
- Shaun Carland
|
|
@@ -102,6 +102,7 @@ files:
|
|
|
102
102
|
- lib/pomber_covid19/version.rb
|
|
103
103
|
- pomber_covid19-0.1.0.gem
|
|
104
104
|
- pomber_covid19-0.1.1.gem
|
|
105
|
+
- pomber_covid19-0.1.2.gem
|
|
105
106
|
- pomber_covid19.gemspec
|
|
106
107
|
homepage: http://shauncar.land/
|
|
107
108
|
licenses:
|