pomber_covid19 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 803e3bc5b492a79b11387166a2a432653529cff9118daa8feb4e0b6a5345cf25
4
- data.tar.gz: 818f39805f8c55cc7f78e4b6a4aca6ba1f7fd493c6d2bcd0502931b01dd60edc
3
+ metadata.gz: b0f1a728768b18853c3f3ccba0e551916c061c54d9cb07c91da8e24f5a5e1019
4
+ data.tar.gz: 0d0f92d40ea9080d83221f27a2df6329efb13f56d2bd5604eceebe258c5a9364
5
5
  SHA512:
6
- metadata.gz: 52a284a1f4c9156d7ec17cd8b784e8c53903c2d48b4e25965de1ab91ec8e99970322ff3923873d17a04e7616528076fb28b0fc9f79f8342644dcfb1dc88795fb
7
- data.tar.gz: 85e7acff3fea0cfba142de93369a1e3ad03f525c00edab6d475b481b3411e5e335057b0fdc453b55af4339745bd9fca2c7de39b59051e9bffca4961e302aec72
6
+ metadata.gz: da3ba2dc249d7330ef59890acb55704a7e8dac51aa33fc3e67c36565ccfd110fb6bf8171b9abb0ac20d00af2bb0d557ecfe881de2c56698d6c35eacdbfddb302
7
+ data.tar.gz: 54c219c1e213abcf11f47cc09fa66f070233d293e4c5106cb54321a24cf5af64c0aba469b8df0ad58798440d4351582da74faf2420fbd21db1b7c9af628aa71c
data/README.md CHANGED
@@ -1,8 +1,30 @@
1
1
  # PomberCovid19
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/pomber_covid19`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Delete this and the text above, and describe your gem
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/[USERNAME]/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.
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 [code of conduct](https://github.com/[USERNAME]/pomber_covid19/blob/master/CODE_OF_CONDUCT.md).
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).
@@ -1,5 +1,5 @@
1
1
  require "pomber_covid19/version"
2
- require "HTTParty"
2
+ require "httparty"
3
3
 
4
4
  module PomberCovid19
5
5
  BASE_URL = "https://pomber.github.io/covid19/timeseries.json"
@@ -1,3 +1,3 @@
1
1
  module PomberCovid19
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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: