creditsafe 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +17 -17
  3. data/.gitignore +2 -2
  4. data/.rspec +1 -1
  5. data/.rubocop.yml +11 -11
  6. data/.ruby-version +1 -1
  7. data/CHANGELOG.md +41 -37
  8. data/Gemfile +5 -5
  9. data/Gemfile.lock +127 -125
  10. data/LICENSE.txt +22 -22
  11. data/README.md +138 -138
  12. data/creditsafe.gemspec +35 -35
  13. data/data/creditsafe-live.xml +342 -342
  14. data/data/creditsafe-test.xml +342 -342
  15. data/lib/creditsafe.rb +4 -4
  16. data/lib/creditsafe/client.rb +158 -156
  17. data/lib/creditsafe/errors.rb +16 -14
  18. data/lib/creditsafe/match_type.rb +115 -115
  19. data/lib/creditsafe/messages.rb +97 -97
  20. data/lib/creditsafe/namespace.rb +20 -20
  21. data/lib/creditsafe/request/company_report.rb +42 -42
  22. data/lib/creditsafe/request/find_company.rb +98 -98
  23. data/lib/creditsafe/version.rb +5 -5
  24. data/spec/creditsafe/client_spec.rb +369 -372
  25. data/spec/creditsafe/messages_spec.rb +76 -76
  26. data/spec/fixtures/company-report-not-found.xml +13 -13
  27. data/spec/fixtures/company-report-request.xml +1 -1
  28. data/spec/fixtures/company-report-successful.xml +582 -582
  29. data/spec/fixtures/error-fault.xml +8 -8
  30. data/spec/fixtures/error-invalid-credentials.html +31 -31
  31. data/spec/fixtures/find-companies-error-no-text.xml +11 -11
  32. data/spec/fixtures/find-companies-error.xml +11 -11
  33. data/spec/fixtures/find-companies-none-found.xml +13 -13
  34. data/spec/fixtures/find-companies-request.xml +1 -1
  35. data/spec/fixtures/find-companies-successful-multi.xml +493 -493
  36. data/spec/fixtures/find-companies-successful.xml +29 -29
  37. data/spec/spec_helper.rb +14 -14
  38. metadata +4 -4
@@ -1,29 +1,29 @@
1
- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
2
- <s:Body>
3
- <FindCompaniesResponse xmlns="http://www.creditsafe.com/globaldata/operations">
4
- <FindCompaniesResult xmlns:q1="http://www.creditsafe.com/globaldata/datatypes">
5
- <q1:Messages>
6
- <q1:Message Type="Information" Code="20103">Service access contract expires on 2015-07-07 00:00 (UTC). Please contact your account manager regarding access extension.</q1:Message>
7
- </q1:Messages>
8
- <q1:Companies>
9
- <q1:Company DateOfLatestAccounts="2014-01-31T00:00:00Z" OnlineReports="true" Monitoring="false" Country="GB" Id="GB003/0/07495895">
10
- <q1:Name>GOCARDLESS LTD</q1:Name>
11
- <q1:Type>Ltd</q1:Type>
12
- <q1:Status>Active</q1:Status>
13
- <q1:RegistrationNumber>07495895</q1:RegistrationNumber>
14
- <q1:Address>
15
- <q1:SimpleValue>338-346, GOSWELL, LONDON</q1:SimpleValue>
16
- <q1:PostalCode>EC1V7LQ</q1:PostalCode>
17
- </q1:Address>
18
- <q1:AvailableReportTypes>
19
- <q1:AvailableReportType>Full</q1:AvailableReportType>
20
- </q1:AvailableReportTypes>
21
- <q1:AvailableLanguages>
22
- <q1:AvailableLanguage>EN</q1:AvailableLanguage>
23
- </q1:AvailableLanguages>
24
- </q1:Company>
25
- </q1:Companies>
26
- </FindCompaniesResult>
27
- </FindCompaniesResponse>
28
- </s:Body>
29
- </s:Envelope>
1
+ <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
2
+ <s:Body>
3
+ <FindCompaniesResponse xmlns="http://www.creditsafe.com/globaldata/operations">
4
+ <FindCompaniesResult xmlns:q1="http://www.creditsafe.com/globaldata/datatypes">
5
+ <q1:Messages>
6
+ <q1:Message Type="Information" Code="20103">Service access contract expires on 2015-07-07 00:00 (UTC). Please contact your account manager regarding access extension.</q1:Message>
7
+ </q1:Messages>
8
+ <q1:Companies>
9
+ <q1:Company DateOfLatestAccounts="2014-01-31T00:00:00Z" OnlineReports="true" Monitoring="false" Country="GB" Id="GB003/0/07495895">
10
+ <q1:Name>GOCARDLESS LTD</q1:Name>
11
+ <q1:Type>Ltd</q1:Type>
12
+ <q1:Status>Active</q1:Status>
13
+ <q1:RegistrationNumber>07495895</q1:RegistrationNumber>
14
+ <q1:Address>
15
+ <q1:SimpleValue>338-346, GOSWELL, LONDON</q1:SimpleValue>
16
+ <q1:PostalCode>EC1V7LQ</q1:PostalCode>
17
+ </q1:Address>
18
+ <q1:AvailableReportTypes>
19
+ <q1:AvailableReportType>Full</q1:AvailableReportType>
20
+ </q1:AvailableReportTypes>
21
+ <q1:AvailableLanguages>
22
+ <q1:AvailableLanguage>EN</q1:AvailableLanguage>
23
+ </q1:AvailableLanguages>
24
+ </q1:Company>
25
+ </q1:Companies>
26
+ </FindCompaniesResult>
27
+ </FindCompaniesResponse>
28
+ </s:Body>
29
+ </s:Envelope>
@@ -1,14 +1,14 @@
1
- # frozen_string_literal: true
2
-
3
- require "webmock/rspec"
4
- require "nokogiri"
5
- require "rspec/its"
6
- require "compare-xml"
7
-
8
- def load_fixture(name)
9
- File.read(File.join(File.dirname(__FILE__), "fixtures", name))
10
- end
11
-
12
- def load_xml_fixture(name)
13
- Nokogiri::XML(File.open(File.join(File.dirname(__FILE__), "fixtures", name)))
14
- end
1
+ # frozen_string_literal: true
2
+
3
+ require "webmock/rspec"
4
+ require "nokogiri"
5
+ require "rspec/its"
6
+ require "compare-xml"
7
+
8
+ def load_fixture(name)
9
+ File.read(File.join(File.dirname(__FILE__), "fixtures", name))
10
+ end
11
+
12
+ def load_xml_fixture(name)
13
+ Nokogiri::XML(File.open(File.join(File.dirname(__FILE__), "fixtures", name)))
14
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: creditsafe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
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-03-01 00:00:00.000000000 Z
11
+ date: 2018-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '1.20'
187
+ version: '3.3'
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: '1.20'
194
+ version: '3.3'
195
195
  description: Ruby client for the Creditsafe SOAP API
196
196
  email:
197
197
  - engineering@gocardless.com