creditsafe_connect 0.1.3 → 0.1.5

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: a3a3bbed891bceb7c8a1613495f8b930bf7cdab003a8f780a829d456030268ef
4
- data.tar.gz: da925b908ee89957b238d0208c6e647546bf70fa94410e0b2435b1bd42e5a9e2
3
+ metadata.gz: 023e8d5334eed650a8e6812731f496ba46a82c7307d3f6254e991ae426ddbb47
4
+ data.tar.gz: 62c8b1a856f4e69f6bebee13c61ecc8e71a184c9f2428ff511dfd0e4530ec325
5
5
  SHA512:
6
- metadata.gz: b1dbd932bda96f7d4a3fd331fe2afa9e6101411e03c812b3c5ddbaf8e5826f52b50252504b880971eb30051a60eb15c6b12ea0a589969a574cf3e32f59d6b6c0
7
- data.tar.gz: b571886c683dd0e938e5ce0e38e327ad02df9c5ea539b540e37f50350fd36dab00df4dfb401058a4515f9f835ec9896d931fbdef0780e5a20c06c25234b27c18
6
+ metadata.gz: da462201c84d6d6a198214f417f4bc6b100301a323d594a1b6435be6b9eb1b6cac3bd1cededc63376c5d9e254b0fbf3616178ac8e06819358c81e68eb7e96546
7
+ data.tar.gz: 7694f41c47c01b1e1f2207ee10e157c43697ba1931855c1626ba90cb18c18d4eddf2487e76b437be64e16f69cca6ecacf8dfca4b1dabf12bd30e6a7e9e45159f
data/Gemfile.lock CHANGED
@@ -1,10 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- creditsafe_connect (0.1.3)
5
- faraday (~> 1.10)
6
- faraday_middleware (~> 1.2)
7
- faraday_middleware-multi_json (~> 0.0.6)
4
+ creditsafe_connect (0.1.5)
5
+ faraday (~> 2.7)
8
6
  multi_json (~> 1.15)
9
7
  rainbow (~> 3.1)
10
8
 
@@ -20,39 +18,14 @@ GEM
20
18
  rexml
21
19
  diff-lcs (1.5.0)
22
20
  dotenv (2.8.1)
23
- faraday (1.10.3)
24
- faraday-em_http (~> 1.0)
25
- faraday-em_synchrony (~> 1.0)
26
- faraday-excon (~> 1.1)
27
- faraday-httpclient (~> 1.0)
28
- faraday-multipart (~> 1.0)
29
- faraday-net_http (~> 1.0)
30
- faraday-net_http_persistent (~> 1.0)
31
- faraday-patron (~> 1.0)
32
- faraday-rack (~> 1.0)
33
- faraday-retry (~> 1.0)
21
+ faraday (2.7.4)
22
+ faraday-net_http (>= 2.0, < 3.1)
34
23
  ruby2_keywords (>= 0.0.4)
35
- faraday-em_http (1.0.0)
36
- faraday-em_synchrony (1.0.0)
37
- faraday-excon (1.1.0)
38
- faraday-httpclient (1.0.1)
39
- faraday-multipart (1.0.4)
40
- multipart-post (~> 2)
41
- faraday-net_http (1.0.1)
42
- faraday-net_http_persistent (1.2.0)
43
- faraday-patron (1.0.0)
44
- faraday-rack (1.0.0)
45
- faraday-retry (1.0.3)
46
- faraday_middleware (1.2.0)
47
- faraday (~> 1.0)
48
- faraday_middleware-multi_json (0.0.6)
49
- faraday_middleware
50
- multi_json
24
+ faraday-net_http (3.0.2)
51
25
  hashdiff (1.0.1)
52
26
  json (2.6.3)
53
27
  method_source (1.0.0)
54
28
  multi_json (1.15.0)
55
- multipart-post (2.2.3)
56
29
  parallel (1.22.1)
57
30
  parser (3.2.0.0)
58
31
  ast (~> 2.4.1)
@@ -20,9 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ['lib']
22
22
 
23
- spec.add_dependency 'faraday', '~> 1.10'
24
- spec.add_dependency 'faraday_middleware', '~> 1.2'
25
- spec.add_dependency 'faraday_middleware-multi_json', '~> 0.0.6'
23
+ spec.add_dependency 'faraday', '~> 2.7'
26
24
  spec.add_dependency 'multi_json', '~> 1.15'
27
25
  spec.add_dependency 'rainbow', '~> 3.1'
28
26
 
@@ -32,7 +32,7 @@ module Creditsafe
32
32
  content_type: 'application/json',
33
33
  user_agent: "finpoint/#{Creditsafe::VERSION}"
34
34
  )
35
- conn.response :multi_json, symbolize_keys: true
35
+ conn.response :json, parser_options: { symbolize_names: true }
36
36
  conn.response :logger if Creditsafe.configuration.debug
37
37
  conn.adapter Faraday.default_adapter
38
38
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'faraday'
4
- require 'faraday_middleware/multi_json'
4
+ require 'multi_json'
5
5
  require 'creditsafe/configuration'
6
6
  require 'creditsafe/faraday_auth'
7
7
 
@@ -34,7 +34,7 @@ module Creditsafe
34
34
 
35
35
  @connection ||= Faraday.new(url: api_url) do |conn|
36
36
  conn.request :creditsafe_auth, username, passwd
37
- conn.response :multi_json, symbolize_keys: true
37
+ conn.response :json, parser_options: { symbolize_names: true }
38
38
  conn.response :logger if Creditsafe.configuration.debug
39
39
  conn.adapter Faraday.default_adapter
40
40
  end
@@ -33,7 +33,7 @@ module Creditsafe
33
33
  rescue Creditsafe::UnauthorizedError => e
34
34
  retry_count += 1
35
35
 
36
- raise e if retru_count > 1
36
+ raise e if retry_count > 1
37
37
 
38
38
  authenticate!
39
39
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Creditsafe
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: creditsafe_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nenad Petronijevic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-20 00:00:00.000000000 Z
11
+ date: 2023-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -16,42 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.10'
19
+ version: '2.7'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.10'
27
- - !ruby/object:Gem::Dependency
28
- name: faraday_middleware
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '1.2'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '1.2'
41
- - !ruby/object:Gem::Dependency
42
- name: faraday_middleware-multi_json
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: 0.0.6
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: 0.0.6
26
+ version: '2.7'
55
27
  - !ruby/object:Gem::Dependency
56
28
  name: multi_json
57
29
  requirement: !ruby/object:Gem::Requirement
@@ -244,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
216
  - !ruby/object:Gem::Version
245
217
  version: '0'
246
218
  requirements: []
247
- rubygems_version: 3.4.1
219
+ rubygems_version: 3.4.4
248
220
  signing_key:
249
221
  specification_version: 4
250
222
  summary: Creditsafe Connect API Wrapper