creditsafe_connect 0.1.5 → 0.1.7

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: 023e8d5334eed650a8e6812731f496ba46a82c7307d3f6254e991ae426ddbb47
4
- data.tar.gz: 62c8b1a856f4e69f6bebee13c61ecc8e71a184c9f2428ff511dfd0e4530ec325
3
+ metadata.gz: 69b66037e96a7eff9e615ddf87a83742fcfa5755340a11d1a255e81164c383bc
4
+ data.tar.gz: 0766cf88f339b978b299ee1be8c29e83ff3ae65f2687a13f00643ad4425c3d9a
5
5
  SHA512:
6
- metadata.gz: da462201c84d6d6a198214f417f4bc6b100301a323d594a1b6435be6b9eb1b6cac3bd1cededc63376c5d9e254b0fbf3616178ac8e06819358c81e68eb7e96546
7
- data.tar.gz: 7694f41c47c01b1e1f2207ee10e157c43697ba1931855c1626ba90cb18c18d4eddf2487e76b437be64e16f69cca6ecacf8dfca4b1dabf12bd30e6a7e9e45159f
6
+ metadata.gz: 273d83d0b259eaf46526be336c26d08b79bee110626fabe864b1ed15fa3879c6d62f1b24b01005031472214bc20194693800b18eafcefec596dbb0729509aa8b
7
+ data.tar.gz: 6e91ad80e4686006ed671e64695a6efc06a51087b4ac876198a3bcb699178b39a0b6008a3f4feb3c8f742501ba8e94765b1bac41497df42171bd2f304489dedf
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.2.0
1
+ 2.7.6
data/Gemfile CHANGED
@@ -6,3 +6,11 @@ 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 'rspec', '~> 3.12'
13
+ gem 'rubocop', '~> 1.43'
14
+ gem 'rubocop-rspec'
15
+ gem 'vcr', '~> 4.0.0'
16
+ gem 'webmock', '~> 3.7.6'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- creditsafe_connect (0.1.5)
4
+ creditsafe_connect (0.1.7)
5
5
  faraday (~> 2.7)
6
6
  multi_json (~> 1.15)
7
7
  rainbow (~> 3.1)
@@ -12,8 +12,6 @@ GEM
12
12
  addressable (2.8.1)
13
13
  public_suffix (>= 2.0.2, < 6.0)
14
14
  ast (2.4.2)
15
- byebug (11.1.3)
16
- coderay (1.1.3)
17
15
  crack (0.4.5)
18
16
  rexml
19
17
  diff-lcs (1.5.0)
@@ -24,17 +22,10 @@ GEM
24
22
  faraday-net_http (3.0.2)
25
23
  hashdiff (1.0.1)
26
24
  json (2.6.3)
27
- method_source (1.0.0)
28
25
  multi_json (1.15.0)
29
26
  parallel (1.22.1)
30
27
  parser (3.2.0.0)
31
28
  ast (~> 2.4.1)
32
- pry (0.14.2)
33
- coderay (~> 1.1)
34
- method_source (~> 1.0)
35
- pry-byebug (3.10.1)
36
- byebug (~> 11.0)
37
- pry (>= 0.13, < 0.15)
38
29
  public_suffix (5.0.1)
39
30
  rainbow (3.1.1)
40
31
  rake (13.0.6)
@@ -81,11 +72,11 @@ GEM
81
72
 
82
73
  PLATFORMS
83
74
  arm64-darwin-21
75
+ x86_64-linux
84
76
 
85
77
  DEPENDENCIES
86
78
  creditsafe_connect!
87
79
  dotenv (~> 2.8)
88
- pry-byebug (~> 3.10)
89
80
  rake (~> 13.0)
90
81
  rspec (~> 3.12)
91
82
  rubocop (~> 1.43)
@@ -94,4 +85,4 @@ DEPENDENCIES
94
85
  webmock (~> 3.7.6)
95
86
 
96
87
  BUNDLED WITH
97
- 2.4.1
88
+ 2.3.10
@@ -23,12 +23,4 @@ Gem::Specification.new do |spec|
23
23
  spec.add_dependency 'faraday', '~> 2.7'
24
24
  spec.add_dependency 'multi_json', '~> 1.15'
25
25
  spec.add_dependency 'rainbow', '~> 3.1'
26
-
27
- spec.add_development_dependency 'dotenv', '~> 2.8'
28
- spec.add_development_dependency 'pry-byebug', '~> 3.10'
29
- spec.add_development_dependency 'rspec', '~> 3.12'
30
- spec.add_development_dependency 'rubocop', '~> 1.43'
31
- spec.add_development_dependency 'rubocop-rspec'
32
- spec.add_development_dependency 'vcr', '~> 4.0.0'
33
- spec.add_development_dependency 'webmock', '~> 3.7.6'
34
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]
@@ -10,7 +10,8 @@ module Creditsafe
10
10
  module Models
11
11
  class CompanySummary < BaseModel
12
12
  attributes :business_name, :country, :company_number, :company_registration_number,
13
- :main_activity, :company_status, :latest_shareholders_equity_figure, :credit_rating
13
+ :main_activity, :company_status, :lei_number,
14
+ :latest_shareholders_equity_figure, :latest_turnover_figure, :credit_rating
14
15
 
15
16
  def self.build(json:)
16
17
  super.tap do |record|
@@ -19,6 +20,9 @@ module Creditsafe
19
20
  record.latest_shareholders_equity_figure = CurrencyValue.build(
20
21
  json: json.fetch(:latestShareholdersEquityFigure, {})
21
22
  )
23
+ record.latest_turnover_figure = CurrencyValue.build(
24
+ json: json.fetch(:latestTurnoverFigure, {})
25
+ )
22
26
  record.credit_rating = CreditRating.build(json: json.fetch(:creditRating, {}))
23
27
  end
24
28
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Creditsafe
4
- VERSION = '0.1.5'
4
+ VERSION = '0.1.7'
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.5
4
+ version: 0.1.7
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-03-02 00:00:00.000000000 Z
11
+ date: 2023-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -52,104 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.1'
55
- - !ruby/object:Gem::Dependency
56
- name: dotenv
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '2.8'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '2.8'
69
- - !ruby/object:Gem::Dependency
70
- name: pry-byebug
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '3.10'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '3.10'
83
- - !ruby/object:Gem::Dependency
84
- name: rspec
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '3.12'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '3.12'
97
- - !ruby/object:Gem::Dependency
98
- name: rubocop
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '1.43'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '1.43'
111
- - !ruby/object:Gem::Dependency
112
- name: rubocop-rspec
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: vcr
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: 4.0.0
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: 4.0.0
139
- - !ruby/object:Gem::Dependency
140
- name: webmock
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: 3.7.6
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: 3.7.6
153
55
  description: Creditsafe Connect API Wrapper
154
56
  email:
155
57
  - nenad@finpoint.co.uk
@@ -201,7 +103,7 @@ homepage: https://gitlab.com/finpoint/creditsafe_connect
201
103
  licenses:
202
104
  - MIT
203
105
  metadata: {}
204
- post_install_message:
106
+ post_install_message:
205
107
  rdoc_options: []
206
108
  require_paths:
207
109
  - lib
@@ -216,8 +118,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
118
  - !ruby/object:Gem::Version
217
119
  version: '0'
218
120
  requirements: []
219
- rubygems_version: 3.4.4
220
- signing_key:
121
+ rubygems_version: 3.0.8
122
+ signing_key:
221
123
  specification_version: 4
222
124
  summary: Creditsafe Connect API Wrapper
223
125
  test_files: []