creditsafe_connect 0.1.4 → 0.1.6

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: d30824618c219aadb149125c832a3d2a528b50e729cb36f15ceaeea89ab737b5
4
- data.tar.gz: 040364b8fc6c16cecac55d4fb60d897a8dc03c17ab3230848a2688c32d15ac89
3
+ metadata.gz: b7f94ac3cca912bc034e9dac23f9a6ec30a0e3c49e5ddf1b9df9ecb74ce95537
4
+ data.tar.gz: 704ef9a8247da4576a36544e126d86e6d5f0dfcbc06aadff466d3bd01cd9a0a3
5
5
  SHA512:
6
- metadata.gz: 4d25152d5ef4a5a1fae8b3923142b7ab692bd3ae67653ee020df32d4b6b8281240bc11ca8d358bd83d01e4b85de77a4e41f637d0f6035288ea02c781b2ff55d1
7
- data.tar.gz: 02730e18ec6acee0b8aa07c278df2cc4887c167fde3961024cb8dbe345f1724f089968823d583f319e4a874070e1a378c7505421241ed9e226dac19b13688185
6
+ metadata.gz: 8fbbd4f61671b0113487b5286ae080875c0418bc2b62de22a55d85c64610cc6caf31070c066031524cf902e105e686682d9b39f1b57e6c29d3e367feac13a235
7
+ data.tar.gz: cedda8d0d8450195c010b436d35827d07e667b415d09c3d7d1c33a57bc7295f9a97e69252d6feec11a978fee5edc68c0a1b704a9b3382b213b06eeecd80b6f5f
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.2.0
1
+ 2.7.6
data/Gemfile CHANGED
@@ -6,3 +6,12 @@ source 'https://rubygems.org'
6
6
  gemspec
7
7
 
8
8
  gem 'rake', '~> 13.0'
9
+
10
+ # Development dependencies
11
+ gem 'dotenv', '~> 2.8'
12
+ gem 'pry-byebug', '~> 3.10'
13
+ gem 'rspec', '~> 3.12'
14
+ gem 'rubocop', '~> 1.43'
15
+ gem 'rubocop-rspec'
16
+ gem 'vcr', '~> 4.0.0'
17
+ gem 'webmock', '~> 3.7.6'
data/Gemfile.lock CHANGED
@@ -1,10 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- creditsafe_connect (0.1.4)
5
- faraday (~> 1.10)
6
- faraday_middleware (~> 1.2)
7
- faraday_middleware-multi_json (~> 0.0.6)
4
+ creditsafe_connect (0.1.6)
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)
@@ -121,4 +94,4 @@ DEPENDENCIES
121
94
  webmock (~> 3.7.6)
122
95
 
123
96
  BUNDLED WITH
124
- 2.4.1
97
+ 2.3.12
@@ -20,17 +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
-
29
- spec.add_development_dependency 'dotenv', '~> 2.8'
30
- spec.add_development_dependency 'pry-byebug', '~> 3.10'
31
- spec.add_development_dependency 'rspec', '~> 3.12'
32
- spec.add_development_dependency 'rubocop', '~> 1.43'
33
- spec.add_development_dependency 'rubocop-rspec'
34
- spec.add_development_dependency 'vcr', '~> 4.0.0'
35
- spec.add_development_dependency 'webmock', '~> 3.7.6'
36
26
  end
@@ -7,7 +7,7 @@ require 'creditsafe/version'
7
7
  module Creditsafe
8
8
  class Authenticate
9
9
  def call(username, password)
10
- response = post('authenticate', username:, password:)
10
+ response = post('authenticate', username: username, password: password)
11
11
 
12
12
  if response.success?
13
13
  response.body[:token]
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Creditsafe
4
- VERSION = '0.1.4'
4
+ VERSION = '0.1.6'
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.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nenad Petronijevic
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-24 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
@@ -80,104 +52,6 @@ dependencies:
80
52
  - - "~>"
81
53
  - !ruby/object:Gem::Version
82
54
  version: '3.1'
83
- - !ruby/object:Gem::Dependency
84
- name: dotenv
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '2.8'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '2.8'
97
- - !ruby/object:Gem::Dependency
98
- name: pry-byebug
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '3.10'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '3.10'
111
- - !ruby/object:Gem::Dependency
112
- name: rspec
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '3.12'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '3.12'
125
- - !ruby/object:Gem::Dependency
126
- name: rubocop
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '1.43'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '1.43'
139
- - !ruby/object:Gem::Dependency
140
- name: rubocop-rspec
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'
153
- - !ruby/object:Gem::Dependency
154
- name: vcr
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: 4.0.0
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: 4.0.0
167
- - !ruby/object:Gem::Dependency
168
- name: webmock
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: 3.7.6
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
- - !ruby/object:Gem::Version
180
- version: 3.7.6
181
55
  description: Creditsafe Connect API Wrapper
182
56
  email:
183
57
  - nenad@finpoint.co.uk
@@ -229,7 +103,7 @@ homepage: https://gitlab.com/finpoint/creditsafe_connect
229
103
  licenses:
230
104
  - MIT
231
105
  metadata: {}
232
- post_install_message:
106
+ post_install_message:
233
107
  rdoc_options: []
234
108
  require_paths:
235
109
  - lib
@@ -244,8 +118,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
118
  - !ruby/object:Gem::Version
245
119
  version: '0'
246
120
  requirements: []
247
- rubygems_version: 3.4.4
248
- signing_key:
121
+ rubygems_version: 3.1.6
122
+ signing_key:
249
123
  specification_version: 4
250
124
  summary: Creditsafe Connect API Wrapper
251
125
  test_files: []