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 +4 -4
- data/lib/sealine_insurance/request.rb +1 -2
- data/lib/sealine_insurance/version.rb +1 -1
- data/sealine_insurance.gemspec +2 -0
- metadata +30 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bb0630d4e3677b9c72117cb36b1140166de26d1
|
4
|
+
data.tar.gz: 517c89c7d1c9d5d24edd592dc96f869bce43816a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/sealine_insurance.gemspec
CHANGED
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.
|
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-
|
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
|