md-validator-client 1.0.1 → 1.0.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: 87924755757ddb12b4b98cd442d52d23608366dddc3ddf8d25c408851fe82203
4
- data.tar.gz: c585a69dadd03bc376bc7c53054300ae3b22d6aab1b57ff2f891839e4729cdf1
3
+ metadata.gz: 58bc10be0c865b5ab708e6d756b992a7faae115f309ec834dae84ca479e63720
4
+ data.tar.gz: 7db8f70e42913e54684a42100480aa486a747b3e50ba0dd8c2543f1aa35218ee
5
5
  SHA512:
6
- metadata.gz: 48f113221d7046ca7e310bb31284f0dad868c4de48e5ac699751169af09c8e10f85ceb0f5a8d880880de01d65c2e741aaaa7008b8a3500f599a18ab8d0117a69
7
- data.tar.gz: 327ad5785c2221fca37165226cd29a5e8cb331787f2e823449d0d4b6bfd30b22a0be29920fa2c206ad21147fe53821167b0c71adeaef0238ef3faa6474353e61
6
+ metadata.gz: 87b148643ed120bf4544dd7ff37f07510a99e760553d74c0e62b22fce2048873f26dbe619c2fbf9d982c71b30c1c67e477c6dfc92b5de694837fa2166bd62fc5
7
+ data.tar.gz: 5925875488920cd6105e56fc3a3f206b43fcde5b614c5c36cad59dbd883467f93fc0810095cf3a0a0b007f364b9cfc36dfbba2bc065ecbf9147ee83896e0a275
data/README.md CHANGED
@@ -7,7 +7,7 @@ API for the metadata validation service.
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: 1.0.0
10
- - Package version: 1.0.1
10
+ - Package version: 1.0.2
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build md-validator-client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./md-validator-client-1.0.1.gem
26
+ gem install ./md-validator-client-1.0.2.gem
27
27
  ```
28
- (for development, run `gem install --dev ./md-validator-client-1.0.1.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./md-validator-client-1.0.2.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'md-validator-client', '~> 1.0.1'
34
+ gem 'md-validator-client', '~> 1.0.2'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: ian@iay.org.uk
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.15
9
+ Swagger Codegen version: 2.4.19
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: ian@iay.org.uk
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.15
9
+ Swagger Codegen version: 2.4.19
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: ian@iay.org.uk
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.15
9
+ Swagger Codegen version: 2.4.19
10
10
 
11
11
  =end
12
12
 
@@ -15,7 +15,7 @@ require 'json'
15
15
  require 'logger'
16
16
  require 'tempfile'
17
17
  require 'typhoeus'
18
- require 'uri'
18
+ require 'addressable/uri'
19
19
 
20
20
  module ValidatorClient
21
21
  class ApiClient
@@ -63,7 +63,7 @@ module ValidatorClient
63
63
  :message => response.return_message)
64
64
  else
65
65
  fail ApiError.new(:code => response.code,
66
- :response_headers => response.headers,
66
+ :response_headers => response.headers.to_h,
67
67
  :response_body => response.body),
68
68
  response.status_message
69
69
  end
@@ -265,7 +265,7 @@ module ValidatorClient
265
265
  def build_request_url(path)
266
266
  # Add leading and trailing slashes to path
267
267
  path = "/#{path}".gsub(/\/+/, '/')
268
- URI.encode(@config.base_url + path)
268
+ Addressable::URI.encode(@config.base_url + path)
269
269
  end
270
270
 
271
271
  # Builds the HTTP request body
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: ian@iay.org.uk
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.15
9
+ Swagger Codegen version: 2.4.19
10
10
 
11
11
  =end
12
12
 
@@ -6,11 +6,11 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: ian@iay.org.uk
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.15
9
+ Swagger Codegen version: 2.4.19
10
10
 
11
11
  =end
12
12
 
13
- require 'uri'
13
+ require 'addressable/uri'
14
14
 
15
15
  module ValidatorClient
16
16
  class Configuration
@@ -175,7 +175,7 @@ module ValidatorClient
175
175
 
176
176
  def base_url
177
177
  url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
178
- URI.encode(url)
178
+ Addressable::URI.encode(url)
179
179
  end
180
180
 
181
181
  # Gets API key (with prefix if set).
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: ian@iay.org.uk
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.15
9
+ Swagger Codegen version: 2.4.19
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: ian@iay.org.uk
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.15
9
+ Swagger Codegen version: 2.4.19
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: ian@iay.org.uk
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.15
9
+ Swagger Codegen version: 2.4.19
10
10
 
11
11
  =end
12
12
 
@@ -6,10 +6,10 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: ian@iay.org.uk
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.15
9
+ Swagger Codegen version: 2.4.19
10
10
 
11
11
  =end
12
12
 
13
13
  module ValidatorClient
14
- VERSION = '1.0.1'
14
+ VERSION = '1.0.2'
15
15
  end
@@ -8,7 +8,7 @@
8
8
  OpenAPI spec version: 1.0.0
9
9
  Contact: ian@iay.org.uk
10
10
  Generated by: https://github.com/swagger-api/swagger-codegen.git
11
- Swagger Codegen version: 2.4.15
11
+ Swagger Codegen version: 2.4.19
12
12
 
13
13
  =end
14
14
 
@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
29
29
 
30
30
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
31
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
+ s.add_runtime_dependency 'addressable', '~> 2.3', '>= 2.3.0'
32
33
 
33
34
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
35
  s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: md-validator-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Young
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-01 00:00:00.000000000 Z
11
+ date: 2021-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -50,6 +50,26 @@ dependencies:
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
52
  version: 2.1.0
53
+ - !ruby/object:Gem::Dependency
54
+ name: addressable
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '2.3'
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 2.3.0
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '2.3'
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: 2.3.0
53
73
  - !ruby/object:Gem::Dependency
54
74
  name: rspec
55
75
  requirement: !ruby/object:Gem::Requirement
@@ -241,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
241
261
  - !ruby/object:Gem::Version
242
262
  version: '0'
243
263
  requirements: []
244
- rubygems_version: 3.1.2
264
+ rubygems_version: 3.1.6
245
265
  signing_key:
246
266
  specification_version: 4
247
267
  summary: Metadata Validation API Ruby Gem