creditsafe 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +8 -21
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -3
- data/Gemfile.lock +25 -60
- data/creditsafe.gemspec +23 -23
- data/lib/creditsafe/client.rb +33 -24
- data/lib/creditsafe/errors.rb +1 -0
- data/lib/creditsafe/match_type.rb +6 -6
- data/lib/creditsafe/messages.rb +28 -27
- data/lib/creditsafe/namespace.rb +7 -7
- data/lib/creditsafe/request/company_report.rb +7 -5
- data/lib/creditsafe/request/find_company.rb +24 -16
- data/lib/creditsafe/version.rb +2 -1
- data/lib/creditsafe.rb +3 -2
- data/spec/creditsafe/client_spec.rb +133 -112
- data/spec/creditsafe/messages_spec.rb +16 -9
- data/spec/spec_helper.rb +7 -6
- metadata +34 -36
- data/.rubocop_todo.yml +0 -16
- data/Guardfile +0 -76
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: creditsafe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GoCardless Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.2.0
|
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:
|
26
|
+
version: 4.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: excon
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,19 +39,19 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0.45'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: savon
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '2.8'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '2.8'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,63 +67,63 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '1.3'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: compare-xml
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '0.5'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '0.5'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: gc_ruboconfig
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '2.3'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '2.3'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: pry
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '0.11'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '0.11'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: rspec
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
117
|
+
version: '3.1'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
124
|
+
version: '3.1'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: rspec-its
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
@@ -137,33 +137,33 @@ dependencies:
|
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '1.2'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: rspec_junit_formatter
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '0.
|
145
|
+
version: '0.3'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '0.
|
152
|
+
version: '0.3'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: rubocop
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
159
|
+
version: '0.52'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: '
|
166
|
+
version: '0.52'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: timecop
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -179,19 +179,19 @@ dependencies:
|
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0.8'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
|
-
name:
|
182
|
+
name: webmock
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: '
|
187
|
+
version: '1.20'
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: '
|
194
|
+
version: '1.20'
|
195
195
|
description: Ruby client for the Creditsafe SOAP API
|
196
196
|
email:
|
197
197
|
- engineering@gocardless.com
|
@@ -203,12 +203,10 @@ files:
|
|
203
203
|
- ".gitignore"
|
204
204
|
- ".rspec"
|
205
205
|
- ".rubocop.yml"
|
206
|
-
- ".rubocop_todo.yml"
|
207
206
|
- ".ruby-version"
|
208
207
|
- CHANGELOG.md
|
209
208
|
- Gemfile
|
210
209
|
- Gemfile.lock
|
211
|
-
- Guardfile
|
212
210
|
- LICENSE.txt
|
213
211
|
- README.md
|
214
212
|
- creditsafe.gemspec
|
data/.rubocop_todo.yml
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# This configuration was generated by `rubocop --auto-gen-config`
|
2
|
-
# on 2015-06-12 14:00:56 +0100 using RuboCop version 0.32.0.
|
3
|
-
# The point is for the user to remove these configuration records
|
4
|
-
# one by one as the offenses are removed from the code base.
|
5
|
-
# Note that changes in the inspected code, or installation of new
|
6
|
-
# versions of RuboCop, may require this file to be generated again.
|
7
|
-
|
8
|
-
# Offense count: 1
|
9
|
-
# Configuration parameters: CountComments.
|
10
|
-
Metrics/ClassLength:
|
11
|
-
Max: 114
|
12
|
-
|
13
|
-
# Offense count: 1
|
14
|
-
# Configuration parameters: CountComments.
|
15
|
-
Metrics/MethodLength:
|
16
|
-
Max: 14
|
data/Guardfile
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
# A sample Guardfile
|
3
|
-
# More info at https://github.com/guard/guard#readme
|
4
|
-
|
5
|
-
## Uncomment and set this to only include directories you want to watch
|
6
|
-
# directories %w(app lib config test spec features) \
|
7
|
-
# .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
|
8
|
-
|
9
|
-
## Note: if you are using the `directories` clause above and you are not
|
10
|
-
## watching the project directory ('.'), then you will want to move
|
11
|
-
## the Guardfile to a watched dir and symlink it back, e.g.
|
12
|
-
#
|
13
|
-
# $ mkdir config
|
14
|
-
# $ mv Guardfile config/
|
15
|
-
# $ ln -s config/Guardfile .
|
16
|
-
#
|
17
|
-
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
|
18
|
-
|
19
|
-
# Note: The cmd option is now required due to the increasing number of ways
|
20
|
-
# rspec may be run, below are examples of the most common uses.
|
21
|
-
# * bundler: 'bundle exec rspec'
|
22
|
-
# * bundler binstubs: 'bin/rspec'
|
23
|
-
# * spring: 'bin/rspec' (This will use spring if running and you have
|
24
|
-
# installed the spring binstubs per the docs)
|
25
|
-
# * zeus: 'zeus rspec' (requires the server to be started separately)
|
26
|
-
# * 'just' rspec: 'rspec'
|
27
|
-
|
28
|
-
guard :rspec, cmd: 'bundle exec rspec' do
|
29
|
-
require 'guard/rspec/dsl'
|
30
|
-
dsl = Guard::RSpec::Dsl.new(self)
|
31
|
-
|
32
|
-
# Feel free to open issues for suggestions and improvements
|
33
|
-
|
34
|
-
# RSpec files
|
35
|
-
rspec = dsl.rspec
|
36
|
-
watch(rspec.spec_helper) { rspec.spec_dir }
|
37
|
-
watch(rspec.spec_support) { rspec.spec_dir }
|
38
|
-
watch(rspec.spec_files)
|
39
|
-
|
40
|
-
# Ruby files
|
41
|
-
ruby = dsl.ruby
|
42
|
-
dsl.watch_spec_files_for(ruby.lib_files)
|
43
|
-
|
44
|
-
# Rails files
|
45
|
-
rails = dsl.rails(view_extensions: %w(erb haml slim))
|
46
|
-
dsl.watch_spec_files_for(rails.app_files)
|
47
|
-
dsl.watch_spec_files_for(rails.views)
|
48
|
-
|
49
|
-
watch(rails.controllers) do |m|
|
50
|
-
[
|
51
|
-
rspec.spec.call("routing/#{m[1]}_routing"),
|
52
|
-
rspec.spec.call("controllers/#{m[1]}_controller"),
|
53
|
-
rspec.spec.call("acceptance/#{m[1]}")
|
54
|
-
]
|
55
|
-
end
|
56
|
-
|
57
|
-
# Rails config changes
|
58
|
-
watch(rails.spec_helper) { rspec.spec_dir }
|
59
|
-
watch(rails.routes) { "#{rspec.spec_dir}/routing" }
|
60
|
-
watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
|
61
|
-
|
62
|
-
# Capybara features specs
|
63
|
-
watch(rails.view_dirs) { |m| rspec.spec.call("features/#{m[1]}") }
|
64
|
-
watch(rails.layouts) { |m| rspec.spec.call("features/#{m[1]}") }
|
65
|
-
|
66
|
-
# Turnip features and steps
|
67
|
-
watch(%r{^spec/acceptance/(.+)\.feature$})
|
68
|
-
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
|
69
|
-
Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance'
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
guard :rubocop do
|
74
|
-
watch(/.+\.rb$/)
|
75
|
-
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
76
|
-
end
|