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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a77d1ad2686877dfe810f0df3cbc817b46c287f2a6025ce999108213ad0e54c8
4
- data.tar.gz: 888dab7db56dc55241512e24bef98fb9f9117abd9e09790a19894630d691e0c2
3
+ metadata.gz: 68cf72c0e99add59625ce1a9763db32b5eeecb69220d78b236e929f08adb1dec
4
+ data.tar.gz: 84d95391d43e67b62f865f6e0ab585700aae3790e1f968793d11a99bf02e6ce8
5
5
  SHA512:
6
- metadata.gz: 6394d6904a073fef5c4fa1d6429c3789a84dfc329a519346dd90e53b082b22284405a044a13c984cf231f7cdd02fb790c49450c47c1d6c0fecb124fbc67783e5
7
- data.tar.gz: 7c45571d9683f723068c6d17a97427348c5d3f8ed64db76e2bd71db72af322f3611bd0d66af8dc3732d4a251f1253d2ea0d49c0db34f8c905739f7cc7dd885cc
6
+ metadata.gz: daf6517f2d15ab2670bb9ad1124faa683db07eb3308a37d057b6af08b0d5a3f2ada1a4f76f54048556878df14435a71a82632a2995c28a6c830755aff7263338
7
+ data.tar.gz: 77862be6a1adf08d40568326bcf24a4aa1ae0c60ad5f0b462b7ef3e5e1b64292c812e0c96b47d70702dad2635ee3640739883a5afbd28b2e2411b2488a23c279
data/Gemfile CHANGED
@@ -6,7 +6,4 @@ source 'https://rubygems.org'
6
6
  gemspec
7
7
 
8
8
  gem 'rake', '~> 12.0'
9
- gem 'rspec', '~> 3.0'
10
-
11
- # Repo of geogrpahic locations
12
- gem 'carmen', '~> 1.1.3'
9
+ gem 'rspec', '~> 3.0'
@@ -1,8 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kovid (0.6.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)
@@ -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.
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kovid
4
- VERSION = '0.6.7'
4
+ VERSION = '0.6.8'
5
5
  end
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.7
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-16 00:00:00.000000000 Z
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