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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +215 -217
- data/covid19.gemspec +1 -1
- data/lib/covid19/lib/repositories/news/news_repository.rb +3 -4
- data/lib/covid19/version.rb +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2899d69aebd2e3c0a8f7b381570abb9a27d3e4c086d7facaf78aa90359cf1819
|
4
|
+
data.tar.gz: 9a0f95995d1cbe6e3bdc36f8c6fdf912680ee369c1917ef23f794ca643550b66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8dd8f331c63507a392f084e1ad07b5e31eb081ee32d2b46840464b77fda45f3c5701135439ed16fdae0345943478940b9a6daa9421a719bc1b9c9e071b078052
|
7
|
+
data.tar.gz: ef0a5f0ba9407d5805e3767fa76e4fd7a8b95b6e8162aa6e1380ff3c26c6eeb273364796b7a853f45b113c5c46d10bd3341375408ec514dba01dcea7d1e18a6a
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
#
|
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
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
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
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
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
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
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
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
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
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
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/
|
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/
|
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).
|
data/covid19.gemspec
CHANGED
@@ -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 = '
|
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:
|
27
|
-
link:
|
28
|
-
date:
|
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
|
data/lib/covid19/version.rb
CHANGED
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.
|
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-
|
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:
|
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: []
|