kovid 0.6.7 → 0.6.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -4
- data/Gemfile.lock +2 -2
- data/kovid.gemspec +1 -1
- data/lib/kovid/request.rb +4 -4
- data/lib/kovid/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68cf72c0e99add59625ce1a9763db32b5eeecb69220d78b236e929f08adb1dec
|
4
|
+
data.tar.gz: 84d95391d43e67b62f865f6e0ab585700aae3790e1f968793d11a99bf02e6ce8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daf6517f2d15ab2670bb9ad1124faa683db07eb3308a37d057b6af08b0d5a3f2ada1a4f76f54048556878df14435a71a82632a2995c28a6c830755aff7263338
|
7
|
+
data.tar.gz: 77862be6a1adf08d40568326bcf24a4aa1ae0c60ad5f0b462b7ef3e5e1b64292c812e0c96b47d70702dad2635ee3640739883a5afbd28b2e2411b2488a23c279
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
kovid (0.6.
|
4
|
+
kovid (0.6.8)
|
5
5
|
ascii_charts (~> 0.9.1)
|
6
|
+
carmen (~> 1.1.3)
|
6
7
|
rainbow (~> 3.0)
|
7
8
|
terminal-table (~> 1.8)
|
8
9
|
thor (~> 1.0)
|
@@ -63,7 +64,6 @@ PLATFORMS
|
|
63
64
|
ruby
|
64
65
|
|
65
66
|
DEPENDENCIES
|
66
|
-
carmen (~> 1.1.3)
|
67
67
|
kovid!
|
68
68
|
rake (~> 12.0)
|
69
69
|
rspec (~> 3.0)
|
data/kovid.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_dependency 'terminal-table', '~> 1.8'
|
28
28
|
spec.add_dependency 'thor', '~> 1.0'
|
29
29
|
spec.add_dependency 'typhoeus', '~> 1.3'
|
30
|
-
|
30
|
+
spec.add_dependency 'carmen', '~> 1.1.3'
|
31
31
|
spec.add_development_dependency 'simplecov', '~> 0.18'
|
32
32
|
|
33
33
|
# Specify which files should be added to the gem when it is released.
|
data/lib/kovid/request.rb
CHANGED
@@ -8,8 +8,8 @@ require_relative 'uri_builder'
|
|
8
8
|
|
9
9
|
module Kovid
|
10
10
|
class Request
|
11
|
-
COUNTRIES_PATH = UriBuilder.new('/countries').url
|
12
|
-
STATES_URL = UriBuilder.new('/states').url
|
11
|
+
COUNTRIES_PATH = UriBuilder.new('/v2/countries').url
|
12
|
+
STATES_URL = UriBuilder.new('/v2/states').url
|
13
13
|
JHUCSSE_URL = UriBuilder.new('/v2/jhucsse').url
|
14
14
|
|
15
15
|
SERVER_DOWN = 'Server overwhelmed. Please try again in a moment.'
|
@@ -150,7 +150,7 @@ module Kovid
|
|
150
150
|
|
151
151
|
def cases
|
152
152
|
response = JSON.parse(
|
153
|
-
Typhoeus.get(UriBuilder.new('/all').url, cache_ttl: 900).response_body
|
153
|
+
Typhoeus.get(UriBuilder.new('/v2/all').url, cache_ttl: 900).response_body
|
154
154
|
)
|
155
155
|
|
156
156
|
Kovid::Tablelize.cases(response)
|
@@ -264,7 +264,7 @@ module Kovid
|
|
264
264
|
|
265
265
|
def countries_request
|
266
266
|
Typhoeus.get(
|
267
|
-
UriBuilder.new('/countries').url, cache_ttl: 900
|
267
|
+
UriBuilder.new('/v2/countries').url, cache_ttl: 900
|
268
268
|
).response_body
|
269
269
|
end
|
270
270
|
|
data/lib/kovid/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kovid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emmanuel Hayford
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ascii_charts
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '1.3'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: carmen
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.1.3
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.1.3
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: simplecov
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|