creditsafe_connect 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -32
- data/creditsafe_connect.gemspec +1 -3
- data/lib/creditsafe/authenticate.rb +1 -1
- data/lib/creditsafe/client.rb +2 -2
- data/lib/creditsafe/version.rb +1 -1
- metadata +4 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 023e8d5334eed650a8e6812731f496ba46a82c7307d3f6254e991ae426ddbb47
|
4
|
+
data.tar.gz: 62c8b1a856f4e69f6bebee13c61ecc8e71a184c9f2428ff511dfd0e4530ec325
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
5
|
-
faraday (~>
|
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 (
|
24
|
-
faraday-
|
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-
|
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)
|
data/creditsafe_connect.gemspec
CHANGED
@@ -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', '~>
|
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 :
|
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
|
data/lib/creditsafe/client.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'faraday'
|
4
|
-
require '
|
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 :
|
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
|
data/lib/creditsafe/version.rb
CHANGED
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.
|
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-02
|
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: '
|
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: '
|
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
|