sealine_insurance 1.0.3 → 1.0.4

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
  SHA1:
3
- metadata.gz: c305ca10baecc4122d3d3e045a5784073a1b4c9f
4
- data.tar.gz: f9470d2ef01ae0e791a20dba0ae3100cc1262aea
3
+ metadata.gz: 2bb0630d4e3677b9c72117cb36b1140166de26d1
4
+ data.tar.gz: 517c89c7d1c9d5d24edd592dc96f869bce43816a
5
5
  SHA512:
6
- metadata.gz: 58f877fae4ff8c490a4fb8f90e330376c2a60d6637911580b78c48b057d0908093339a4c2d791ff4b9c0e3685ad000573d5855c927e82407714499575408a3c5
7
- data.tar.gz: 51c2c0f7172e3556ac6c4b747978fe9b3b82093931c4dd7a6a503d10d54fc8c6fe9f2bc7e7b758708ed179e8a409463c17595840cded53e980a3bb8da99f41fa
6
+ metadata.gz: 0161a182be40d90b14d626f029d2925f672b36dfece56d7bcf07afcdb7cefcee8423c30c8f748ea9099605c1554938a9b49ad3746cca9c463a70472a01a1ec52
7
+ data.tar.gz: a527065b4a1fb53c8ca2001bca10039855c7319c01aceff7eba29921978cccc5a480b8bc5848771b51af93c3f97f2e042627766e89a08e36a42e423c73c6be2e
@@ -24,15 +24,14 @@ module SealineInsurance
24
24
 
25
25
  def send_request(method, url, body = nil)
26
26
  conn = Faraday.new do |builder|
27
+ builder.response(:logger, config.logger, bodies: true) if config.logger
27
28
  builder.adapter Faraday.default_adapter
28
- builder.response(:logger, config.logger) if config.logger
29
29
  end
30
30
  conn.send(method, "#{config.base_url}#{url}.json") do |req|
31
31
  req.headers['Authorization'] = "Token #{config.token}"
32
32
  if body
33
33
  req.headers['Content-Type'] = 'application/json'
34
34
  req.body = body.to_json
35
- config.logger&.debug(req.body)
36
35
  end
37
36
  req.options.timeout = config.timeout if config.timeout
38
37
  req.options.open_timeout = config.open_timeout if config.open_timeout
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SealineInsurance
4
- VERSION = '1.0.3'
4
+ VERSION = '1.0.4'
5
5
  end
@@ -31,4 +31,6 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency 'rubocop'
32
32
  spec.add_development_dependency 'vcr'
33
33
  spec.add_development_dependency 'webmock'
34
+ spec.add_development_dependency 'pry'
35
+ spec.add_development_dependency 'pry-byebug'
34
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sealine_insurance
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Khrebtov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-02 00:00:00.000000000 Z
11
+ date: 2018-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -122,6 +122,34 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: pry
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: pry-byebug
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
125
153
  description: Ruby wrapper for Sealine API
126
154
  email:
127
155
  - khrebtov.dev@gmail.com