my_api_client 0.5.2 → 0.5.3

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: fe861b2f0c7bd0d00b0a1bd681dbb763417c0c9586739c7277e95dbca4982c13
4
- data.tar.gz: 8d5c7906faecf94d50e22b4ac70cfba8e85e0ee6498aab85758686c3372b5884
3
+ metadata.gz: 5a9f9115532dc935f506308465aa7d0fcab38b347aeb3694501a39136e54b339
4
+ data.tar.gz: fd05661eccd1e5d970de6ad0323845580d0929919c528ddcc7f1cc4fdaf2212a
5
5
  SHA512:
6
- metadata.gz: c7b96f4df81a4d95f4b55250b1ed1ea738a562229f35aa9d86372237bde661178938dd656656ebd86d3745bcff35ba0cdf25c20a8583a56527cd3030199b34f4
7
- data.tar.gz: 534159f4e8d0cc4d316366f630dc2ed640edafe51dc393f22fbbec9974a0cafe8245701fc56bf232cce252926c2d4668adc1340a0d6b08e4e483acdbc39c7793
6
+ metadata.gz: 8d346886c4ff7ae526b1ddf2f8d0212edb8db32f0e09fb0d54068e39dc9435b85a347d585c2abfb2c301c3908a050b3fd392237df96858858c30b6fba73c1587
7
+ data.tar.gz: 887e47f816f9657d0f3ace557a35530fbf3f2be4eef1162f39dd614114cb55023a43e6882435a36fc6b552b3e186e71ac2938dcca8e5c395c0077e9831e0dc55
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- my_api_client (0.5.2)
4
+ my_api_client (0.5.3)
5
5
  activesupport (>= 4.2.0)
6
6
  jsonpath
7
7
  sawyer
@@ -68,6 +68,8 @@ module MyApiClient
68
68
  target = JsonPath.new(path.to_s).first(response_body)
69
69
  match?(operator, target)
70
70
  end
71
+ rescue MultiJson::ParseError
72
+ false
71
73
  end
72
74
  end
73
75
 
@@ -16,6 +16,7 @@ module MyApiClient
16
16
  def _request(http_method, pathname, headers, query, body, logger)
17
17
  processed_path = [common_path, pathname].join('/').gsub('//', '/')
18
18
  request_params = Params::Request.new(http_method, processed_path, headers, query, body)
19
+ agent # Initializes for faraday
19
20
  request_logger = Logger.new(logger, faraday, http_method, processed_path)
20
21
  call(:_execute, request_params, request_logger)
21
22
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MyApiClient
4
- VERSION = '0.5.2'
4
+ VERSION = '0.5.3'
5
5
  end
@@ -10,9 +10,8 @@ Gem::Specification.new do |spec|
10
10
  spec.authors = ['ryz310']
11
11
  spec.email = ['ryz310@gmail.com']
12
12
 
13
- spec.summary = 'Assists to create your API client'
14
- spec.description = 'Provides error handling, retry and other functions ' \
15
- 'to your API Client'
13
+ spec.summary = 'The framework of Web API Client'
14
+ spec.description = 'Provides features error handling, retrying and so on.'
16
15
  spec.homepage = 'https://github.com/ryz310/my_api_client'
17
16
  spec.license = 'MIT'
18
17
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryz310
@@ -220,7 +220,7 @@ dependencies:
220
220
  - - ">="
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
- description: Provides error handling, retry and other functions to your API Client
223
+ description: Provides features error handling, retrying and so on.
224
224
  email:
225
225
  - ryz310@gmail.com
226
226
  executables: []
@@ -291,5 +291,5 @@ requirements: []
291
291
  rubygems_version: 3.0.3
292
292
  signing_key:
293
293
  specification_version: 4
294
- summary: Assists to create your API client
294
+ summary: The framework of Web API Client
295
295
  test_files: []