ruby-ecomm-client 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. data/.gitignore +2 -2
  2. data/README.md +3 -7
  3. data/fixtures/vcr_cassettes/account_info/default.yml +22 -22
  4. data/fixtures/vcr_cassettes/account_info/unknown/resource_id.yml +21 -21
  5. data/fixtures/vcr_cassettes/account_info/unknown/resource_type.yml +21 -21
  6. data/fixtures/vcr_cassettes/account_info/unknown/source_tree_id.yml +21 -21
  7. data/fixtures/vcr_cassettes/express_checkout/configured.yml +17 -17
  8. data/fixtures/vcr_cassettes/express_checkout/unknown.yml +17 -17
  9. data/fixtures/vcr_cassettes/request_change/express/downgrade/default.yml +44 -0
  10. data/fixtures/vcr_cassettes/request_change/express/downgrade/noop.yml +42 -0
  11. data/fixtures/vcr_cassettes/request_change/express/downgrade/unknown/resource_id.yml +42 -0
  12. data/fixtures/vcr_cassettes/request_change/express/downgrade/unknown/resource_type.yml +42 -0
  13. data/fixtures/vcr_cassettes/request_change/express/downgrade/unknown/target_tree_id.yml +42 -0
  14. data/fixtures/vcr_cassettes/request_change/express/upgrade/default.yml +44 -0
  15. data/fixtures/vcr_cassettes/request_change/express/upgrade/noop.yml +42 -0
  16. data/fixtures/vcr_cassettes/request_change/express/upgrade/unknown/resource_id.yml +42 -0
  17. data/fixtures/vcr_cassettes/request_change/express/upgrade/unknown/resource_type.yml +42 -0
  18. data/fixtures/vcr_cassettes/request_change/express/upgrade/unknown/target_tree_id.yml +42 -0
  19. data/fixtures/vcr_cassettes/{downgrade → request_change/manager/downgrade}/default.yml +18 -18
  20. data/fixtures/vcr_cassettes/{downgrade → request_change/manager/downgrade}/noop.yml +17 -17
  21. data/fixtures/vcr_cassettes/{downgrade → request_change/manager/downgrade}/unknown/resource_id.yml +17 -17
  22. data/fixtures/vcr_cassettes/{upgrade → request_change/manager/downgrade}/unknown/resource_type.yml +17 -17
  23. data/fixtures/vcr_cassettes/{downgrade → request_change/manager/downgrade}/unknown/target_tree_id.yml +17 -17
  24. data/fixtures/vcr_cassettes/{upgrade → request_change/manager/upgrade}/default.yml +18 -18
  25. data/fixtures/vcr_cassettes/{upgrade → request_change/manager/upgrade}/noop.yml +17 -17
  26. data/fixtures/vcr_cassettes/{upgrade → request_change/manager/upgrade}/unknown/resource_id.yml +17 -17
  27. data/fixtures/vcr_cassettes/{downgrade → request_change/manager/upgrade}/unknown/resource_type.yml +17 -17
  28. data/fixtures/vcr_cassettes/{upgrade → request_change/manager/upgrade}/unknown/target_tree_id.yml +17 -17
  29. data/fixtures/vcr_cassettes/transitions/default/unknown/source_tree_id.yml +13 -13
  30. data/fixtures/vcr_cassettes/transitions/many.yml +14 -14
  31. data/fixtures/vcr_cassettes/transitions/one.yml +14 -14
  32. data/lib/ruby-ecomm-client/client.rb +61 -21
  33. data/lib/ruby-ecomm-client/version.rb +1 -1
  34. data/spec/ruby-ecomm-client/client_spec.rb +203 -82
  35. data/spec/spec_helper.rb +2 -0
  36. metadata +24 -15
  37. data/fixtures/vcr_cassettes/transitions/unknown/source_tree_id.yml +0 -42
data/spec/spec_helper.rb CHANGED
@@ -4,6 +4,8 @@ require 'bundler/setup'
4
4
  require 'ruby-ecomm-client' # and any other gems you need
5
5
 
6
6
  RSpec.configure do |config|
7
+ config.color_enabled = true
8
+ config.tty = true
7
9
  end
8
10
 
9
11
  require 'vcr'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-ecomm-client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 0
10
- version: 1.0.0
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Shelby Sanders
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2014-03-26 00:00:00 Z
18
+ date: 2014-03-28 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement
@@ -167,22 +167,31 @@ files:
167
167
  - fixtures/vcr_cassettes/account_info/unknown/resource_id.yml
168
168
  - fixtures/vcr_cassettes/account_info/unknown/resource_type.yml
169
169
  - fixtures/vcr_cassettes/account_info/unknown/source_tree_id.yml
170
- - fixtures/vcr_cassettes/downgrade/default.yml
171
- - fixtures/vcr_cassettes/downgrade/noop.yml
172
- - fixtures/vcr_cassettes/downgrade/unknown/resource_id.yml
173
- - fixtures/vcr_cassettes/downgrade/unknown/resource_type.yml
174
- - fixtures/vcr_cassettes/downgrade/unknown/target_tree_id.yml
175
170
  - fixtures/vcr_cassettes/express_checkout/configured.yml
176
171
  - fixtures/vcr_cassettes/express_checkout/unknown.yml
172
+ - fixtures/vcr_cassettes/request_change/express/downgrade/default.yml
173
+ - fixtures/vcr_cassettes/request_change/express/downgrade/noop.yml
174
+ - fixtures/vcr_cassettes/request_change/express/downgrade/unknown/resource_id.yml
175
+ - fixtures/vcr_cassettes/request_change/express/downgrade/unknown/resource_type.yml
176
+ - fixtures/vcr_cassettes/request_change/express/downgrade/unknown/target_tree_id.yml
177
+ - fixtures/vcr_cassettes/request_change/express/upgrade/default.yml
178
+ - fixtures/vcr_cassettes/request_change/express/upgrade/noop.yml
179
+ - fixtures/vcr_cassettes/request_change/express/upgrade/unknown/resource_id.yml
180
+ - fixtures/vcr_cassettes/request_change/express/upgrade/unknown/resource_type.yml
181
+ - fixtures/vcr_cassettes/request_change/express/upgrade/unknown/target_tree_id.yml
182
+ - fixtures/vcr_cassettes/request_change/manager/downgrade/default.yml
183
+ - fixtures/vcr_cassettes/request_change/manager/downgrade/noop.yml
184
+ - fixtures/vcr_cassettes/request_change/manager/downgrade/unknown/resource_id.yml
185
+ - fixtures/vcr_cassettes/request_change/manager/downgrade/unknown/resource_type.yml
186
+ - fixtures/vcr_cassettes/request_change/manager/downgrade/unknown/target_tree_id.yml
187
+ - fixtures/vcr_cassettes/request_change/manager/upgrade/default.yml
188
+ - fixtures/vcr_cassettes/request_change/manager/upgrade/noop.yml
189
+ - fixtures/vcr_cassettes/request_change/manager/upgrade/unknown/resource_id.yml
190
+ - fixtures/vcr_cassettes/request_change/manager/upgrade/unknown/resource_type.yml
191
+ - fixtures/vcr_cassettes/request_change/manager/upgrade/unknown/target_tree_id.yml
177
192
  - fixtures/vcr_cassettes/transitions/default/unknown/source_tree_id.yml
178
193
  - fixtures/vcr_cassettes/transitions/many.yml
179
194
  - fixtures/vcr_cassettes/transitions/one.yml
180
- - fixtures/vcr_cassettes/transitions/unknown/source_tree_id.yml
181
- - fixtures/vcr_cassettes/upgrade/default.yml
182
- - fixtures/vcr_cassettes/upgrade/noop.yml
183
- - fixtures/vcr_cassettes/upgrade/unknown/resource_id.yml
184
- - fixtures/vcr_cassettes/upgrade/unknown/resource_type.yml
185
- - fixtures/vcr_cassettes/upgrade/unknown/target_tree_id.yml
186
195
  - lib/ruby-ecomm-client.rb
187
196
  - lib/ruby-ecomm-client/client.rb
188
197
  - lib/ruby-ecomm-client/converter.rb
@@ -1,42 +0,0 @@
1
- ---
2
- recorded_with: VCR 2.8.0
3
- http_interactions:
4
- - request:
5
- method: post
6
- uri: http://bonsai.dev.glbt1.gdg/bonsai/bonsaimanager/service.asmx
7
- body:
8
- string: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:tns="#Bonsai" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:GetAccountXml><tns:IDType>ORION</tns:IDType><tns:PrivateLabelID>1</tns:PrivateLabelID><tns:TreeID>87563</tns:TreeID><tns:ResourceType>outright</tns:ResourceType><tns:ResourceID>e1dd6ab9-b072-11e3-9aad-005056953ce3</tns:ResourceID></tns:GetAccountXml></env:Body></env:Envelope>
9
- headers:
10
- content-type:
11
- - text/xml;charset=UTF-8
12
- content-length:
13
- - "516"
14
- soapaction:
15
- - "\"#Bonsai/GetAccountXml\""
16
- accept:
17
- - "*/*"
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- date:
24
- - Wed, 26 Mar 2014 03:22:57 GMT
25
- cache-control:
26
- - private, max-age=0
27
- server:
28
- - Microsoft-IIS/7.0
29
- content-length:
30
- - "338"
31
- connection:
32
- - close
33
- content-type:
34
- - text/xml; charset=utf-8
35
- x-powered-by:
36
- - ASP.NET
37
- x-aspnet-version:
38
- - 4.0.30319
39
- body:
40
- string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetAccountXmlResponse xmlns="#Bonsai"><ResultCode>-999</ResultCode></GetAccountXmlResponse></soap:Body></soap:Envelope>
41
- http_version: "1.1"
42
- recorded_at: Wed, 26 Mar 2014 03:22:57 GMT