covid19-rb 0.1.0 → 0.1.2

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: bb5d25789f7091413c4cfef3fa2e511d62effc3019c0ab8dcf11c4b1a166c1e9
4
- data.tar.gz: fc325e2934719f70123028c1b80a32d68455ebf2a5c1c013bda6da4e402bca12
3
+ metadata.gz: 2899d69aebd2e3c0a8f7b381570abb9a27d3e4c086d7facaf78aa90359cf1819
4
+ data.tar.gz: 9a0f95995d1cbe6e3bdc36f8c6fdf912680ee369c1917ef23f794ca643550b66
5
5
  SHA512:
6
- metadata.gz: 34efe9ca0bb341d2f1892716196ce2eeb126f919b0a0b5a73dffc41370c2518937eb41a4a5eed1e0628eabfa41df87703ab7ca5ae171f84a1ffc8df03f4b837b
7
- data.tar.gz: b13638444a4ce380c1bb0f8aaa9575b67da9e5aa001fa89c9692fbfb30307d0855c027b23895209d199121cdc020efd889e6a8a04a3c6a3f861415b09b7075d2
6
+ metadata.gz: 8dd8f331c63507a392f084e1ad07b5e31eb081ee32d2b46840464b77fda45f3c5701135439ed16fdae0345943478940b9a6daa9421a719bc1b9c9e071b078052
7
+ data.tar.gz: ef0a5f0ba9407d5805e3767fa76e4fd7a8b95b6e8162aa6e1380ff3c26c6eeb273364796b7a853f45b113c5c46d10bd3341375408ec514dba01dcea7d1e18a6a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- covid19-rb (0.1.0)
4
+ covid19-rb (0.1.1)
5
5
  arssene
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,7 +1,9 @@
1
- # Covid19
1
+ # covid19-rb
2
2
 
3
3
  This tool's goal is to create an easy way to start building projects which have as goal fighting the unprecedented virus **Covid-19**. If you stumble upon this gem, please share it as someone might find it useful.
4
4
 
5
+ This is mainly a wrapper for [The Virus Tracker API](https://thevirustracker.com/api) whom have as sources: WHO, CDC, ECDC, NHC, DXY..
6
+
5
7
  ## Installation
6
8
 
7
9
  Add this line to your application's Gemfile:
@@ -19,7 +21,7 @@ $ bundle install
19
21
  Or install it yourself as:
20
22
 
21
23
  ```bash
22
- $ gem install covid19
24
+ $ gem install covid19-rb
23
25
  ```
24
26
 
25
27
  ## Retrieve Global Statistics
@@ -32,22 +34,22 @@ puts statistics
32
34
 
33
35
  ```json
34
36
  {
35
- "results": [
36
- {
37
- "total_cases": 259273,
38
- "total_recovered": 89914,
39
- "total_unresolved": 158195,
40
- "total_deaths": 10546,
41
- "total_new_cases_today": 14379,
42
- "total_new_deaths_today": 518,
43
- "total_active_cases": 158813,
44
- "total_serious_cases": 7636,
45
- "source": {
46
- "url": "https://thevirustracker.com/"
47
- }
48
- }
49
- ],
50
- "stat": "ok"
37
+ "results": [
38
+ {
39
+ "total_cases": 259273,
40
+ "total_recovered": 89914,
41
+ "total_unresolved": 158195,
42
+ "total_deaths": 10546,
43
+ "total_new_cases_today": 14379,
44
+ "total_new_deaths_today": 518,
45
+ "total_active_cases": 158813,
46
+ "total_serious_cases": 7636,
47
+ "source": {
48
+ "url": "https://thevirustracker.com/"
49
+ }
50
+ }
51
+ ],
52
+ "stat": "ok"
51
53
  }
52
54
  ```
53
55
 
@@ -61,71 +63,71 @@ puts italy_statistics
61
63
 
62
64
  ```json
63
65
  {
64
- "countrydata": [
65
- {
66
- "info": {
67
- "ourid": 78,
68
- "title": "Italy",
69
- "code": "IT",
70
- "source": "https://thevirustracker.com/italy-coronavirus-information-it"
71
- },
72
- "total_cases": 41035,
73
- "total_recovered": 4440,
74
- "total_unresolved": 0,
75
- "total_deaths": 3405,
76
- "total_new_cases_today": 0,
77
- "total_new_deaths_today": 0,
78
- "total_active_cases": 33190,
79
- "total_serious_cases": 2498
80
- }
81
- ],
82
- "countrynewsitems": [
83
- {
84
- "60": {
85
- "newsid": "iOG6m7",
86
- "title": "Leave Italy Washington U. tells study-abroad students after CDC coronavirus alert",
87
- "image": "https://thevirustracker.com/news-images/thumbs/5/leave-italy-washington-u-tells-study-abroad-students-after-cdc-coronavirus-alert-iOG6m7.jpg",
88
- "time": "3 March 2020 05:12",
89
- "url": "https://thevirustracker.com/story/leave-italy-washington-u-tells-study-abroad-students-after-cdc-coronavirus-alert-iOG6m7"
90
- },
91
- "61": {
92
- "newsid": "KhyueW",
93
- "title": "GRCC cancels culinary study abroad program to Italy due to coronavirus concerns",
94
- "image": "https://thevirustracker.com/news-images/thumbs/5/grcc-cancels-culinary-study-abroad-program-to-italy-due-to-coronavirus-concerns-KhyueW.jpg",
95
- "time": "3 March 2020 05:12",
96
- "url": "https://thevirustracker.com/story/grcc-cancels-culinary-study-abroad-program-to-italy-due-to-coronavirus-concerns-KhyueW"
97
- },
98
- "62": {
99
- "newsid": "OTW4jB",
100
- "title": "Pope tests negative for coronavirus Italy report says",
101
- "image": "https://thevirustracker.com/news-images/thumbs/5/pope-tests-negative-for-coronavirus-italy-report-says-OTW4jB.jpg",
102
- "time": "3 March 2020 06:45",
103
- "url": "https://thevirustracker.com/story/pope-tests-negative-for-coronavirus-italy-report-says-OTW4jB"
104
- },
105
- "63": {
106
- "newsid": "062yDp",
107
- "title": "Italy's coronavirus outbreak has ramifications for rest of Europe professor says",
108
- "image": "https://thevirustracker.com/news-images/thumbs/5/italy-s-coronavirus-outbreak-has-ramifications-for-rest-of-europe-professor-says-062yDp.jpg",
109
- "time": "3 March 2020 09:41",
110
- "url": "https://thevirustracker.com/story/italy-s-coronavirus-outbreak-has-ramifications-for-rest-of-europe-professor-says-062yDp"
111
- },
112
- "64": {
113
- "newsid": "UUp8f2",
114
- "title": "US Requires Airline Passengers From Iran But Not Italy Or Korea To Use Designated Airports To Control Coronavirus",
115
- "image": "https://thevirustracker.com/news-images/thumbs/5/us-requires-airline-passengers-from-iran-but-not-italy-or-korea-to-use-designated-airports-to-control-coronavirus-UUp8f2.jpg",
116
- "time": "3 March 2020 11:01",
117
- "url": "https://thevirustracker.com/story/us-requires-airline-passengers-from-iran-but-not-italy-or-korea-to-use-designated-airports-to-control-coronavirus-UUp8f2"
118
- },
119
- "65": {
120
- "newsid": "snjWyP",
121
- "title": "Coronavirus: Inter chief Zhang's 'clown' comment probed by Serie A",
122
- "image": "https://thevirustracker.com/news-images/thumbs/5/coronavirus-inter-chief-zhang-s-clown-comment-probed-by-serie-a-snjWyP.jpg",
123
- "time": "3 March 2020 12:48",
124
- "url": "https://thevirustracker.com/story/coronavirus-inter-chief-zhang-s-clown-comment-probed-by-serie-a-snjWyP"
125
- },
126
- "stat": "ok"
127
- }
128
- ]
66
+ "countrydata": [
67
+ {
68
+ "info": {
69
+ "ourid": 78,
70
+ "title": "Italy",
71
+ "code": "IT",
72
+ "source": "https://thevirustracker.com/italy-coronavirus-information-it"
73
+ },
74
+ "total_cases": 41035,
75
+ "total_recovered": 4440,
76
+ "total_unresolved": 0,
77
+ "total_deaths": 3405,
78
+ "total_new_cases_today": 0,
79
+ "total_new_deaths_today": 0,
80
+ "total_active_cases": 33190,
81
+ "total_serious_cases": 2498
82
+ }
83
+ ],
84
+ "countrynewsitems": [
85
+ {
86
+ "60": {
87
+ "newsid": "iOG6m7",
88
+ "title": "Leave Italy Washington U. tells study-abroad students after CDC coronavirus alert",
89
+ "image": "https://thevirustracker.com/news-images/thumbs/5/leave-italy-washington-u-tells-study-abroad-students-after-cdc-coronavirus-alert-iOG6m7.jpg",
90
+ "time": "3 March 2020 05:12",
91
+ "url": "https://thevirustracker.com/story/leave-italy-washington-u-tells-study-abroad-students-after-cdc-coronavirus-alert-iOG6m7"
92
+ },
93
+ "61": {
94
+ "newsid": "KhyueW",
95
+ "title": "GRCC cancels culinary study abroad program to Italy due to coronavirus concerns",
96
+ "image": "https://thevirustracker.com/news-images/thumbs/5/grcc-cancels-culinary-study-abroad-program-to-italy-due-to-coronavirus-concerns-KhyueW.jpg",
97
+ "time": "3 March 2020 05:12",
98
+ "url": "https://thevirustracker.com/story/grcc-cancels-culinary-study-abroad-program-to-italy-due-to-coronavirus-concerns-KhyueW"
99
+ },
100
+ "62": {
101
+ "newsid": "OTW4jB",
102
+ "title": "Pope tests negative for coronavirus Italy report says",
103
+ "image": "https://thevirustracker.com/news-images/thumbs/5/pope-tests-negative-for-coronavirus-italy-report-says-OTW4jB.jpg",
104
+ "time": "3 March 2020 06:45",
105
+ "url": "https://thevirustracker.com/story/pope-tests-negative-for-coronavirus-italy-report-says-OTW4jB"
106
+ },
107
+ "63": {
108
+ "newsid": "062yDp",
109
+ "title": "Italy's coronavirus outbreak has ramifications for rest of Europe professor says",
110
+ "image": "https://thevirustracker.com/news-images/thumbs/5/italy-s-coronavirus-outbreak-has-ramifications-for-rest-of-europe-professor-says-062yDp.jpg",
111
+ "time": "3 March 2020 09:41",
112
+ "url": "https://thevirustracker.com/story/italy-s-coronavirus-outbreak-has-ramifications-for-rest-of-europe-professor-says-062yDp"
113
+ },
114
+ "64": {
115
+ "newsid": "UUp8f2",
116
+ "title": "US Requires Airline Passengers From Iran But Not Italy Or Korea To Use Designated Airports To Control Coronavirus",
117
+ "image": "https://thevirustracker.com/news-images/thumbs/5/us-requires-airline-passengers-from-iran-but-not-italy-or-korea-to-use-designated-airports-to-control-coronavirus-UUp8f2.jpg",
118
+ "time": "3 March 2020 11:01",
119
+ "url": "https://thevirustracker.com/story/us-requires-airline-passengers-from-iran-but-not-italy-or-korea-to-use-designated-airports-to-control-coronavirus-UUp8f2"
120
+ },
121
+ "65": {
122
+ "newsid": "snjWyP",
123
+ "title": "Coronavirus: Inter chief Zhang's 'clown' comment probed by Serie A",
124
+ "image": "https://thevirustracker.com/news-images/thumbs/5/coronavirus-inter-chief-zhang-s-clown-comment-probed-by-serie-a-snjWyP.jpg",
125
+ "time": "3 March 2020 12:48",
126
+ "url": "https://thevirustracker.com/story/coronavirus-inter-chief-zhang-s-clown-comment-probed-by-serie-a-snjWyP"
127
+ },
128
+ "stat": "ok"
129
+ }
130
+ ]
129
131
  }
130
132
  ```
131
133
 
@@ -147,49 +149,49 @@ puts timeline
147
149
 
148
150
  ```json
149
151
  {
150
- "countrytimelinedata": [
151
- {
152
- "info": {
153
- "ourid": 78,
154
- "title": "Italy",
155
- "code": "IT",
156
- "source": "https://thevirustracker.com/italy-coronavirus-information-it"
157
- }
158
- }
159
- ],
160
- "timelineitems": [
161
- {
162
- "3/17/2020": {
163
- "new_daily_cases": 3526,
164
- "new_daily_deaths": 345,
165
- "total_cases": 31506,
166
- "total_recoveries": 2941,
167
- "total_deaths": 2503
168
- },
169
- "3/18/2020": {
170
- "new_daily_cases": 4207,
171
- "new_daily_deaths": 475,
172
- "total_cases": 35713,
173
- "total_recoveries": 4025,
174
- "total_deaths": 2978
175
- },
176
- "3/19/2020": {
177
- "new_daily_cases": 5322,
178
- "new_daily_deaths": 427,
179
- "total_cases": 41035,
180
- "total_recoveries": 4440,
181
- "total_deaths": 3405
182
- },
183
- "3/20/2020": {
184
- "new_daily_cases": 0,
185
- "new_daily_deaths": 0,
186
- "total_cases": 41035,
187
- "total_recoveries": 4440,
188
- "total_deaths": 3405
189
- },
190
- "stat": "ok"
191
- }
192
- ]
152
+ "countrytimelinedata": [
153
+ {
154
+ "info": {
155
+ "ourid": 78,
156
+ "title": "Italy",
157
+ "code": "IT",
158
+ "source": "https://thevirustracker.com/italy-coronavirus-information-it"
159
+ }
160
+ }
161
+ ],
162
+ "timelineitems": [
163
+ {
164
+ "3/17/2020": {
165
+ "new_daily_cases": 3526,
166
+ "new_daily_deaths": 345,
167
+ "total_cases": 31506,
168
+ "total_recoveries": 2941,
169
+ "total_deaths": 2503
170
+ },
171
+ "3/18/2020": {
172
+ "new_daily_cases": 4207,
173
+ "new_daily_deaths": 475,
174
+ "total_cases": 35713,
175
+ "total_recoveries": 4025,
176
+ "total_deaths": 2978
177
+ },
178
+ "3/19/2020": {
179
+ "new_daily_cases": 5322,
180
+ "new_daily_deaths": 427,
181
+ "total_cases": 41035,
182
+ "total_recoveries": 4440,
183
+ "total_deaths": 3405
184
+ },
185
+ "3/20/2020": {
186
+ "new_daily_cases": 0,
187
+ "new_daily_deaths": 0,
188
+ "total_cases": 41035,
189
+ "total_recoveries": 4440,
190
+ "total_deaths": 3405
191
+ },
192
+ "stat": "ok"
193
+ }
194
+ ]
193
195
  }
194
196
  ```
195
197
 
@@ -203,28 +205,35 @@ who = Covid19::News.retrieve
203
205
 
204
206
  ```json
205
207
  {
206
- "title":"News (English) - World Health Organization",
207
- "description":"Corporate news releases, statements, and notes for media issued by the World Health Organization.",
208
- "entries":[
209
- {
210
- "title":"Dracunculiasis eradication: intensifying surveillance amid continued zero human cases in Ethiopia and Mali",
211
- "link":"https://www.who.int/news-room/detail/19-03-2020-dracunculiasis-eradication-intensifying-surveillance-amid-continued-zero-human-cases-in-ethiopia-and-mali",
212
- "date":"Thu, 19 Mar 2020 18:23:38 -0000",
213
- "description":"In 2019, Ethiopia and Mali reported zero human cases of dracunculiasis (guinea-worm disease), although the total number of human cases reported to the World Health Organization (WHO) last year peaked at 54 cases.nWhile surveillance activities have been stepped-up in countries reporting cases, hundreds more field workers and volunteers are being trained, and, cross-border vigilance are being carried out to prevent transmission."
214
- },
215
- {
216
- "title":"CND accepts all WHO recommendations on the control of several psychoactive substances from the 42nd ECDD meeting",
217
- "link":"https://www.who.int/news-room/detail/18-03-2020-c-n-d-accepts-all-w-h-o-recommendations-from-42nd-e-c-d-d",
218
- "date":"Thu, 19 Mar 2020 08:20:13 -0000",
219
- "description":"During its 63rd session, the Commission on Narcotic Drugs (CND) accepted all recommendations from the 42nd meeting of the WHO Expert Committee on Drug Dependence (ECDD)."
220
- },
221
- {
222
- "title":"Water and Climate Change",
223
- "link":"https://www.who.int/news-room/detail/17-03-2020-water-and-climate-change",
224
- "date":"Mon, 16 Mar 2020 17:08:49 -0000",
225
- "description":"<p>World Water Day 2020 is about water and climate change &ndash; and how the two are inextricably linked. This year&rsquo;s campaign shows how our use of water will help reduce floods, droughts, scarcity and pollution, and will help fight climate change itself. By adapting to the water effects of climate change, we will protect health and save lives. And, by using water more efficiently, we will reduce greenhouse gases. Our key messages are clear:</p><ul><li>We cannot afford to wait. Climate policy makers must put water at the heart of action plans.</li><li>Climate change effects water supplies and human health.</li><li>Health systems need to prepare for more water-related disease associated with climate change.</li><li>Water can help fight climate change and protect health. There are sustainable, affordable and scalable water and sanitation solutions.</li><li>Everyone has a role to play. In our daily lives, there are surprisingly easy steps we can all take to address climate change, and protect health.</li></ul><p></p>"
226
- }
227
- ]
208
+ "title": "News (English) - World Health Organization",
209
+ "description": "Corporate news releases, statements, and notes for media issued by the World Health Organization.",
210
+ "entries": [
211
+ {
212
+ "title": "Dracunculiasis eradication: intensifying surveillance amid continued zero human cases in Ethiopia and Mali",
213
+ "link": "https://www.who.int/news-room/detail/19-03-2020-dracunculiasis-eradication-intensifying-surveillance-amid-continued-zero-human-cases-in-ethiopia-and-mali",
214
+ "date": "Thu, 19 Mar 2020 18:23:38 -0000"
215
+ },
216
+ {
217
+ "title": "CND accepts all WHO recommendations on the control of several psychoactive substances from the 42nd ECDD meeting",
218
+ "link": "https://www.who.int/news-room/detail/18-03-2020-c-n-d-accepts-all-w-h-o-recommendations-from-42nd-e-c-d-d",
219
+ "date": "Thu, 19 Mar 2020 08:20:13 -0000"
220
+ },
221
+ {
222
+ "title": "Water and Climate Change",
223
+ "link": "https://www.who.int/news-room/detail/17-03-2020-water-and-climate-change",
224
+ "date": "Mon, 16 Mar 2020 17:08:49 -0000"
225
+ },
226
+ {
227
+ "title": "ICC-WHO Joint Statement: An unprecedented private sector call to action to tackle COVID-19",
228
+ "link": "https://www.who.int/news-room/detail/16-03-2020-icc-who-joint-statement-an-unprecedented-private-sector-call-to-action-to-tackle-covid-19",
229
+ "date": "Mon, 16 Mar 2020 16:24:11 -0000"
230
+ },
231
+ {
232
+ "title": "WHO, UN Foundation and partners launch first-of-its-kind COVID-19 Solidarity Response Fund",
233
+ "link": "https://www.who.int/news-room/detail/13-03-2020-who-un-foundation-and-partners-launch-first-of-its-kind-covid-19-solidarity-response-fund",
234
+ "date": "Fri, 13 Mar 2020 16:12:29 -0000"
235
+ }
236
+ ]
228
237
  }
229
238
  ```
230
239
 
@@ -239,70 +248,60 @@ puts news
239
248
 
240
249
  ```json
241
250
  {
242
- "title": "2019 Novel Coronavirus",
243
- "description": "The Centers for Disease Control and Prevention (CDC) is closely monitoring an outbreak of respiratory illness caused by a novel (new) coronavirus first identified in Wuhan, Hubei Province, China.",
244
- "entries": [
245
- {
246
- "title": "Resources for Large Community Events & Mass Gatherings",
247
- "link": "https://tools.cdc.gov/api/embed/downloader/download.asp?m=403372&c=405375",
248
- "date": "Fri, 20 Mar 2020 15:00:00 +0000",
249
- "description": "Resources for large community events and mass gatherings"
250
- },
251
- {
252
- "title": "Environmental Cleaning and Disinfection Recommendations",
253
- "link": "https://tools.cdc.gov/api/embed/downloader/download.asp?m=403372&c=404586",
254
- "date": "Fri, 20 Mar 2020 15:00:00 +0000",
255
- "description": "Environmental Cleaning and Disinfection Recommendations"
256
- },
257
- {
258
- "title": "Interim Guidance for Businesses and Employers",
259
- "link": "https://tools.cdc.gov/api/embed/downloader/download.asp?m=403372&c=403631",
260
- "date": "Fri, 20 Mar 2020 15:00:00 +0000",
261
- "description": "The following interim guidance may help prevent workplace exposures to acute respiratory illnesses, including COVID-19, in non-healthcare settings. The guidance also provides planning considerations if there are more widespread, community outbreaks of COVID-19."
262
- },
263
- {
264
- "title": "Get Your Community- and Faith-Based Organizations Ready for Coronavirus Disease 2019",
265
- "link": "https://tools.cdc.gov/api/embed/downloader/download.asp?m=403372&c=405374",
266
- "date": "Fri, 20 Mar 2020 14:00:00 +0000",
267
- "description": "This interim guidance is to help community- and faith-based organizations (CFBOs), whose members may include vulnerable populations, plan for community transmission of coronavirus disease (COVID-19) in the United States."
268
- },
269
- {
270
- "title": "Get Your Mass Gatherings or Large Community Events Ready",
271
- "link": "https://tools.cdc.gov/api/embed/downloader/download.asp?m=403372&c=404922",
272
- "date": "Fri, 20 Mar 2020 14:00:00 +0000",
273
- "description": "This interim guidance is intended for organizers and staff responsible for planning mass gatherings or large community events in the United States. A mass gathering is a planned or spontaneous event with a large number of people in attendance that could strain the planning and response resources of the community hosting the event, such as a concert, festival, conference, or sporting event."
274
- },
275
- {
276
- "title": "Disinfecting Your Facility if Someone is Sick",
277
- "link": "https://tools.cdc.gov/api/embed/downloader/download.asp?m=403372&c=405360",
278
- "date": "Thu, 19 Mar 2020 20:00:00 +0000",
279
- "description": "Steps to disinfect your facility if someone is sick."
280
- },
281
- {
282
- "title": "Taking Advantage of the 15-Day Pause to Slow the Spread of COVID-19",
283
- "link": "https://tools.cdc.gov/api/embed/downloader/download.asp?m=403372&c=405368",
284
- "date": "Thu, 19 Mar 2020 18:00:00 +0000",
285
- "description": "Steps every sector can take during the 15-day pause to plan as One Community"
286
- },
287
- {
288
- "title": "Travelers from Countries with Widespread Sustained (Ongoing) Transmission Arriving in the United States",
289
- "link": "https://tools.cdc.gov/api/embed/downloader/download.asp?m=403372&c=405367",
290
- "date": "Thu, 19 Mar 2020 18:00:00 +0000",
291
- "description": "Depending on your travel history, you will be asked to stay home for a period of 14 days from the time you left an area with widespread or ongoing community spread."
292
- },
293
- {
294
- "title": "Caring for someone at home",
295
- "link": "https://tools.cdc.gov/api/embed/downloader/download.asp?m=403372&c=405343",
296
- "date": "Thu, 19 Mar 2020 18:00:00 +0000",
297
- "description": "Most people who get sick with COVID-19 will have only mild illness and should recover at home. Care at home can help stop the spread of COVID-19 and help protect people who are at risk for getting seriously ill from COVID-19."
298
- },
299
- {
300
- "title": "Interim Infection Prevention and Control Recommendations for Patients with Suspected or Confirmed Coronavirus Disease 2019 (COVID-19) in Healthcare Settings",
301
- "link": "https://tools.cdc.gov/api/embed/downloader/download.asp?m=403372&c=405362",
302
- "date": "Thu, 19 Mar 2020 18:00:00 +0000",
303
- "description": "This interim guidance has been updated based on currently available information about COVID-19 and the current situation in the United States, which includes reports of cases of community transmission, infections identified in healthcare personnel (HCP), and shortages of facemasks, N95 filtering facepiece respirators (FFRs) (commonly known as N95 respirators), and gowns."
304
- }
305
- ]
251
+ "title": "2019 Novel Coronavirus",
252
+ "description": "The Centers for Disease Control and Prevention (CDC) is closely monitoring an outbreak of respiratory illness caused by a novel (new) coronavirus first identified in Wuhan, Hubei Province, China.",
253
+ "entries": [
254
+ {
255
+ "title": "Resources for Large Community Events & Mass Gatherings",
256
+ "link": "https://tools.cdc.gov/api/embed/downloader/download.asp?m=403372&c=405375",
257
+ "date": "Fri, 20 Mar 2020 15:00:00 +0000"
258
+ },
259
+ {
260
+ "title": "Environmental Cleaning and Disinfection Recommendations",
261
+ "link": "https://tools.cdc.gov/api/embed/downloader/download.asp?m=403372&c=404586",
262
+ "date": "Fri, 20 Mar 2020 15:00:00 +0000"
263
+ },
264
+ {
265
+ "title": "Interim Guidance for Businesses and Employers",
266
+ "link": "https://tools.cdc.gov/api/embed/downloader/download.asp?m=403372&c=403631",
267
+ "date": "Fri, 20 Mar 2020 15:00:00 +0000"
268
+ },
269
+ {
270
+ "title": "Get Your Community- and Faith-Based Organizations Ready for Coronavirus Disease 2019",
271
+ "link": "https://tools.cdc.gov/api/embed/downloader/download.asp?m=403372&c=405374",
272
+ "date": "Fri, 20 Mar 2020 14:00:00 +0000"
273
+ },
274
+ {
275
+ "title": "Get Your Mass Gatherings or Large Community Events Ready",
276
+ "link": "https://tools.cdc.gov/api/embed/downloader/download.asp?m=403372&c=404922",
277
+ "date": "Fri, 20 Mar 2020 14:00:00 +0000"
278
+ },
279
+ {
280
+ "title": "Disinfecting Your Facility if Someone is Sick",
281
+ "link": "https://tools.cdc.gov/api/embed/downloader/download.asp?m=403372&c=405360",
282
+ "date": "Thu, 19 Mar 2020 20:00:00 +0000"
283
+ },
284
+ {
285
+ "title": "Taking Advantage of the 15-Day Pause to Slow the Spread of COVID-19",
286
+ "link": "https://tools.cdc.gov/api/embed/downloader/download.asp?m=403372&c=405368",
287
+ "date": "Thu, 19 Mar 2020 18:00:00 +0000"
288
+ },
289
+ {
290
+ "title": "Travelers from Countries with Widespread Sustained (Ongoing) Transmission Arriving in the United States",
291
+ "link": "https://tools.cdc.gov/api/embed/downloader/download.asp?m=403372&c=405367",
292
+ "date": "Thu, 19 Mar 2020 18:00:00 +0000"
293
+ },
294
+ {
295
+ "title": "Caring for someone at home",
296
+ "link": "https://tools.cdc.gov/api/embed/downloader/download.asp?m=403372&c=405343",
297
+ "date": "Thu, 19 Mar 2020 18:00:00 +0000"
298
+ },
299
+ {
300
+ "title": "Interim Infection Prevention and Control Recommendations for Patients with Suspected or Confirmed Coronavirus Disease 2019 (COVID-19) in Healthcare Settings",
301
+ "link": "https://tools.cdc.gov/api/embed/downloader/download.asp?m=403372&c=405362",
302
+ "date": "Thu, 19 Mar 2020 18:00:00 +0000"
303
+ }
304
+ ]
306
305
  }
307
306
  ```
308
307
 
@@ -311,7 +310,7 @@ puts news
311
310
  For `country` please use one of the following keys:
312
311
 
313
312
  ```ruby
314
- af al dz as ad ao ai aq ag ar am aw au at az bs bh bd bb by
313
+ %w[ af al dz as ad ao ai aq ag ar am aw au at az bs bh bd bb by
315
314
  be bz bj bm bt bo ba bw bv br io bn bg bf bi kh cm ca cv ky
316
315
  cf td cl cn cx cc co km cg cd ck cr ci hr cu cy cz dk dj dm
317
316
  do ec eg sv gq er ee et fk fo fj fi fr gf pf tf ga gm ge de
@@ -322,13 +321,12 @@ mc mn ms ma mz mm na nr np nl an nc nz ni ne ng nu nf mp no
322
321
  om pk pw ps pa pg py pe ph pn pl pt pr qa re ro ru rw sh kn
323
322
  lc pm vc ws sm st sa sn cs sc sl sg sk si sb so za gs sp lk
324
323
  sd sr sj sz se ch sy tw tj tz th tl tg tk to tt tn tr tm tc
325
- tv ug ua ae uk us um uy uz vu ve vn vg vi wf eh ye zm zw
324
+ tv ug ua ae uk us um uy uz vu ve vn vg vi wf eh ye zm zw ]
326
325
  ```
327
326
 
328
-
329
327
  ## Contributing
330
328
 
331
- Bug reports and pull requests are welcome on GitHub at https://github.com/viccarrasco/covid19. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/covid19/blob/master/CODE_OF_CONDUCT.md).
329
+ Bug reports and pull requests are welcome on GitHub at https://github.com/viccarrasco/covid19-rb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/viccarrasco/covid19-rb/blob/master/CODE_OF_CONDUCT.md).
332
330
 
333
331
  ## License
334
332
 
@@ -336,4 +334,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
336
334
 
337
335
  ## Code of Conduct
338
336
 
339
- Everyone interacting in the Covid19 project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/covid19/blob/master/CODE_OF_CONDUCT.md).
337
+ Everyone interacting in the Covid19 project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/viccarrasco/covid19-rb/blob/master/CODE_OF_CONDUCT.md).
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.email = ['1703579+viccarrasco@users.noreply.github.com']
10
10
 
11
11
  spec.summary = 'Fight Covid-19'
12
- spec.description = 'Write a longer description or delete this line.'
12
+ spec.description = 'Helps developers integrate information regarding Covid-19 in their webistes'
13
13
  spec.homepage = 'https://github.com/viccarrasco/covid-19'
14
14
  spec.license = 'MIT'
15
15
  spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
@@ -23,10 +23,9 @@ module Repositories
23
23
  def entries_to_hash(entries)
24
24
  entries.map.with_index do |entry, index|
25
25
  entries[index] = {
26
- title: entry.title,
27
- link: entry.link.strip.chomp,
28
- date: entry.publication_date.to_s.strip.chomp,
29
- description: entry.description.strip.chomp
26
+ title: entry.title,
27
+ link: entry.link.strip.chomp,
28
+ date: entry.publication_date.to_s.strip.chomp
30
29
  }
31
30
  end
32
31
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Covid19
2
- VERSION = "0.1.0"
4
+ VERSION = '0.1.2'
3
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: covid19-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vic Carrasco
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-20 00:00:00.000000000 Z
11
+ date: 2020-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,7 +80,7 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- description: Write a longer description or delete this line.
83
+ description: Helps developers integrate information regarding Covid-19 in their webistes
84
84
  email:
85
85
  - 1703579+viccarrasco@users.noreply.github.com
86
86
  executables: []