ruby-ecomm-client 1.1.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.ruby-version +1 -1
- data/Gemfile +1 -0
- data/README.md +10 -0
- data/fixtures/vcr_cassettes/account_info/default.yml +49 -34
- data/fixtures/vcr_cassettes/account_info/unknown/resource_id.yml +42 -34
- data/fixtures/vcr_cassettes/account_info/unknown/resource_type.yml +42 -34
- data/fixtures/vcr_cassettes/account_info/unknown/source_tree_id.yml +42 -34
- data/fixtures/vcr_cassettes/express_checkout/configured.yml +39 -31
- data/fixtures/vcr_cassettes/express_checkout/unknown.yml +39 -31
- data/fixtures/vcr_cassettes/request_change/express/downgrade/default.yml +46 -36
- data/fixtures/vcr_cassettes/request_change/express/downgrade/noop.yml +55 -34
- data/fixtures/vcr_cassettes/request_change/express/downgrade/unknown/resource_id.yml +46 -34
- data/fixtures/vcr_cassettes/request_change/express/downgrade/unknown/resource_type.yml +47 -34
- data/fixtures/vcr_cassettes/request_change/express/downgrade/unknown/target_tree_id.yml +46 -34
- data/fixtures/vcr_cassettes/request_change/express/relay/default.yml +48 -0
- data/fixtures/vcr_cassettes/request_change/express/upgrade/default.yml +55 -36
- data/fixtures/vcr_cassettes/request_change/express/upgrade/noop.yml +46 -34
- data/fixtures/vcr_cassettes/request_change/express/upgrade/unknown/resource_id.yml +46 -34
- data/fixtures/vcr_cassettes/request_change/express/upgrade/unknown/resource_type.yml +47 -34
- data/fixtures/vcr_cassettes/request_change/express/upgrade/unknown/target_tree_id.yml +46 -34
- data/fixtures/vcr_cassettes/request_change/manager/downgrade/default.yml +43 -34
- data/fixtures/vcr_cassettes/request_change/manager/downgrade/noop.yml +43 -34
- data/fixtures/vcr_cassettes/request_change/manager/downgrade/unknown/resource_id.yml +43 -34
- data/fixtures/vcr_cassettes/request_change/manager/downgrade/unknown/resource_type.yml +43 -34
- data/fixtures/vcr_cassettes/request_change/manager/downgrade/unknown/target_tree_id.yml +43 -34
- data/fixtures/vcr_cassettes/request_change/manager/relay/default.yml +100 -0
- data/fixtures/vcr_cassettes/request_change/manager/upgrade/default.yml +43 -34
- data/fixtures/vcr_cassettes/request_change/manager/upgrade/noop.yml +43 -34
- data/fixtures/vcr_cassettes/request_change/manager/upgrade/unknown/resource_id.yml +43 -34
- data/fixtures/vcr_cassettes/request_change/manager/upgrade/unknown/resource_type.yml +43 -34
- data/fixtures/vcr_cassettes/request_change/manager/upgrade/unknown/target_tree_id.yml +43 -34
- data/fixtures/vcr_cassettes/transitions/default/unknown/source_tree_id.yml +42 -34
- data/fixtures/vcr_cassettes/transitions/many.yml +49 -34
- data/fixtures/vcr_cassettes/transitions/one.yml +49 -34
- data/lib/ruby-ecomm-client.rb +13 -1
- data/lib/ruby-ecomm-client/client.rb +19 -148
- data/lib/ruby-ecomm-client/config.rb +25 -0
- data/lib/ruby-ecomm-client/service_base.rb +55 -0
- data/lib/ruby-ecomm-client/service_manager.rb +75 -0
- data/lib/ruby-ecomm-client/service_profile.rb +30 -0
- data/lib/ruby-ecomm-client/service_purchase.rb +79 -0
- data/lib/ruby-ecomm-client/util.rb +16 -0
- data/lib/ruby-ecomm-client/version.rb +1 -1
- data/ruby-ecomm-client.gemspec +2 -1
- data/script/bootstrap +68 -0
- data/script/cibuild +4 -5
- data/spec/ruby-ecomm-client/client_spec.rb +32 -339
- data/spec/ruby-ecomm-client/config_spec.rb +56 -0
- data/spec/ruby-ecomm-client/service_base_spec.rb +119 -0
- data/spec/ruby-ecomm-client/service_manager_spec.rb +285 -0
- data/spec/ruby-ecomm-client/service_profile_spec.rb +33 -0
- data/spec/ruby-ecomm-client/service_purchase_spec.rb +160 -0
- data/spec/ruby-ecomm-client/util_spec.rb +66 -0
- data/spec/spec_helper.rb +10 -0
- metadata +160 -152
- data/lib/ruby-ecomm-client/converter.rb +0 -45
- data/spec/ruby-ecomm-client/converter_spec.rb +0 -96
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe RubyEcommClient::ServiceProfile do
|
4
|
+
before do
|
5
|
+
use_test = [:qa, :production].include?(RubyEcommClient::Client.environment)
|
6
|
+
|
7
|
+
@shopper_id = use_test ? '261639' : '923518'
|
8
|
+
@low_tree_id = '2402'
|
9
|
+
@downgrade_tree_id = '2402'
|
10
|
+
@current_tree_id = '2410'
|
11
|
+
@upgrade_tree_id = '2418'
|
12
|
+
@resource_type = 'outright'
|
13
|
+
@resource_id = use_test ? 'd5e2ead3-c1c4-11e3-9ea5-005056953ce3' : 'b6be6fd0-c1a5-11e3-8e42-0050569575d8'
|
14
|
+
|
15
|
+
@config_client = RubyEcommClient::Client.new(@shopper_id, @resource_type, @resource_id)
|
16
|
+
@service = RubyEcommClient::ServiceProfile.new(@config_client)
|
17
|
+
end
|
18
|
+
|
19
|
+
context '#express_checkout?' do
|
20
|
+
it 'return false for unknown' do
|
21
|
+
VCR.use_cassette('express_checkout/unknown') do
|
22
|
+
@service.send(:config_client).shopper_id = '101010'
|
23
|
+
@service.express_checkout?.should eq(false)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
it 'return true when configured' do
|
28
|
+
VCR.use_cassette('express_checkout/configured') do
|
29
|
+
@service.express_checkout?.should eq(true)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,160 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
class UtilTarget
|
4
|
+
include ::Utils
|
5
|
+
end
|
6
|
+
|
7
|
+
describe RubyEcommClient::Client do
|
8
|
+
before do
|
9
|
+
use_test = [:qa, :production].include?(RubyEcommClient::Client.environment)
|
10
|
+
|
11
|
+
@shopper_id = use_test ? '261639' : '923518'
|
12
|
+
@low_tree_id = '2402'
|
13
|
+
@downgrade_tree_id = '2402'
|
14
|
+
@current_tree_id = '2410'
|
15
|
+
@upgrade_tree_id = '2418'
|
16
|
+
@resource_type = 'outright'
|
17
|
+
@resource_id = use_test ? 'd5e2ead3-c1c4-11e3-9ea5-005056953ce3' : 'b6be6fd0-c1a5-11e3-8e42-0050569575d8'
|
18
|
+
|
19
|
+
@config_client = RubyEcommClient::Client.new(@shopper_id, @resource_type, @resource_id)
|
20
|
+
@service = RubyEcommClient::ServicePurchase.new(@config_client)
|
21
|
+
end
|
22
|
+
|
23
|
+
context '#request_change' do
|
24
|
+
it 'require target_tree_id non-nil' do
|
25
|
+
expect { @service.request_change(nil) }.to raise_error(ArgumentError)
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'relay to request_change_via_express_checkout' do
|
29
|
+
@config_client.stub(:express_checkout?).and_return(true)
|
30
|
+
@service.should_receive(:request_change_via_express).with(37, '127.0.0.1').once
|
31
|
+
VCR.use_cassette('request_change/express/relay/default') do
|
32
|
+
@service.request_change(37)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
it 'relay to request_change_via_manager' do
|
37
|
+
@config_client.stub(:express_checkout?).and_return(false)
|
38
|
+
@config_client.should_receive(:request_change_via_manager).with(37).once
|
39
|
+
VCR.use_cassette('request_change/manager/relay/default') do
|
40
|
+
@service.request_change(37)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
context '#request_change_via_express_checkout' do
|
46
|
+
before do
|
47
|
+
@service.stub(:express_checkout?).and_return(true)
|
48
|
+
end
|
49
|
+
|
50
|
+
context 'upgrade' do
|
51
|
+
before do
|
52
|
+
RubyEcommClient.configure do |config|
|
53
|
+
config.ssl_cert_file = "config/keys/#{UtilTarget.environment}/client.crt"
|
54
|
+
config.ssl_cert_key_file = "config/keys/#{UtilTarget.environment}/client.key"
|
55
|
+
end
|
56
|
+
|
57
|
+
VCR.use_cassette('request_change/express/upgrade/default') do
|
58
|
+
@result = @service.request_change_via_express(@upgrade_tree_id)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
it 'require target_tree_id non-nil' do
|
63
|
+
expect { @service.request_change_via_express(nil) }.to raise_error(ArgumentError)
|
64
|
+
end
|
65
|
+
|
66
|
+
it 'require target_tree_id non-blank' do
|
67
|
+
expect { @service.request_change_via_express('') }.to raise_error(ArgumentError)
|
68
|
+
end
|
69
|
+
|
70
|
+
it 'raise RubyEcommError for unknown resource_type' do
|
71
|
+
VCR.use_cassette('request_change/express/upgrade/unknown/resource_type') do
|
72
|
+
@service.send(:config_client).resource_type = 'flugel'
|
73
|
+
expect { @service.request_change_via_express(@upgrade_tree_id) }.to raise_error(RubyEcommError) { |e| e.result_code.should eq(-100) }
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
it 'raise RubyEcommError for unknown resource_id' do
|
78
|
+
VCR.use_cassette('request_change/express/upgrade/unknown/resource_id') do
|
79
|
+
@service.send(:config_client).resource_id = 'unknown'
|
80
|
+
expect { @service.request_change_via_express(@upgrade_tree_id) }.to raise_error(RubyEcommError) { |e| e.result_code.should eq(-304) }
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
it 'raise RubyEcommError for unknown target_tree_id' do
|
85
|
+
VCR.use_cassette('request_change/express/upgrade/unknown/target_tree_id') do
|
86
|
+
expect { @service.request_change_via_express(73223) }.to raise_error(RubyEcommError) { |e| e.result_code.should eq(-999) }
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
it "return no-op request_result for transition to same" do
|
91
|
+
VCR.use_cassette('request_change/express/upgrade/noop') do
|
92
|
+
result = @service.request_change_via_express(@current_tree_id)
|
93
|
+
result[:request_result].should eq(1)
|
94
|
+
result[:used_express_checkout].should eq(true)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
it "return success request_result for valid transition" do
|
99
|
+
@result[:request_result].should eq(0)
|
100
|
+
@result[:used_express_checkout].should eq(true)
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
context 'downgrade' do
|
105
|
+
before do
|
106
|
+
RubyEcommClient.configure do |config|
|
107
|
+
config.ssl_cert_file = ''
|
108
|
+
config.ssl_cert_key_file = ''
|
109
|
+
config.ssl_cert_content = File.read("config/keys/#{UtilTarget.environment}/client.crt")
|
110
|
+
config.ssl_cert_key_content = File.read("config/keys/#{UtilTarget.environment}/client.key")
|
111
|
+
end
|
112
|
+
|
113
|
+
VCR.use_cassette('request_change/express/downgrade/default') do
|
114
|
+
@result = @service.request_change_via_express(@downgrade_tree_id)
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
it 'require target_tree_id non-nil' do
|
119
|
+
expect { @service.request_change_via_express(nil) }.to raise_error(ArgumentError)
|
120
|
+
end
|
121
|
+
|
122
|
+
it 'require target_tree_id non-blank' do
|
123
|
+
expect { @service.request_change_via_express('') }.to raise_error(ArgumentError)
|
124
|
+
end
|
125
|
+
|
126
|
+
it 'raise RubyEcommError for unknown resource_type' do
|
127
|
+
VCR.use_cassette('request_change/express/downgrade/unknown/resource_type') do
|
128
|
+
@service.send(:config_client).resource_type = 'flugel'
|
129
|
+
expect { @service.request_change_via_express(@downgrade_tree_id) }.to raise_error(RubyEcommError) { |e| e.result_code.should eq(-100) }
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
it 'raise RubyEcommError for unknown resource_id' do
|
134
|
+
VCR.use_cassette('request_change/express/downgrade/unknown/resource_id') do
|
135
|
+
@service.send(:config_client).resource_id = 'unknown'
|
136
|
+
expect { @service.request_change_via_express(@downgrade_tree_id) }.to raise_error(RubyEcommError) { |e| e.result_code.should eq(-304) }
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
it 'raise RubyEcommError for unknown target_tree_id' do
|
141
|
+
VCR.use_cassette('request_change/express/downgrade/unknown/target_tree_id') do
|
142
|
+
expect { @service.request_change_via_express(73541) }.to raise_error(RubyEcommError) { |e| e.result_code.should eq(-999) }
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
it "return no-op request_result for transition to same" do
|
147
|
+
VCR.use_cassette('request_change/express/downgrade/noop') do
|
148
|
+
result = @service.request_change_via_express(@current_tree_id)
|
149
|
+
result[:request_result].should eq(0)
|
150
|
+
result[:used_express_checkout].should eq(true)
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
it "return success request_result for valid transition" do
|
155
|
+
@result[:request_result].should eq(1)
|
156
|
+
@result[:used_express_checkout].should eq(true)
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
160
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
class UtilTarget
|
4
|
+
include ::Utils
|
5
|
+
|
6
|
+
def validate
|
7
|
+
blank?('123')
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
describe Utils do
|
12
|
+
before do
|
13
|
+
@target = UtilTarget.new
|
14
|
+
end
|
15
|
+
|
16
|
+
context "#blank?" do
|
17
|
+
it "consider nil blank" do
|
18
|
+
UtilTarget.blank?(nil).should eq(true)
|
19
|
+
end
|
20
|
+
|
21
|
+
it "consider empty blank" do
|
22
|
+
UtilTarget.blank?('').should eq(true)
|
23
|
+
end
|
24
|
+
|
25
|
+
it "consider whitespace-only blank" do
|
26
|
+
UtilTarget.blank?(' ').should eq(true)
|
27
|
+
end
|
28
|
+
|
29
|
+
it "consider non-zero not blank" do
|
30
|
+
UtilTarget.blank?('a').should eq(false)
|
31
|
+
end
|
32
|
+
|
33
|
+
it "consider number not blank" do
|
34
|
+
UtilTarget.blank?(0).should eq(false)
|
35
|
+
end
|
36
|
+
|
37
|
+
it 'consider empty Array blank' do
|
38
|
+
UtilTarget.blank?([]).should eq(true)
|
39
|
+
end
|
40
|
+
|
41
|
+
it 'consider non-empty Array not blank' do
|
42
|
+
UtilTarget.blank?([1]).should eq(false)
|
43
|
+
end
|
44
|
+
|
45
|
+
it "mix into instance" do
|
46
|
+
UtilTarget.new.validate.should eq(false)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
context '#environment' do
|
51
|
+
it 'not be nil' do
|
52
|
+
@target.environment.should_not be_nil
|
53
|
+
end
|
54
|
+
|
55
|
+
it 'not be blank' do
|
56
|
+
@target.environment.should_not eq('')
|
57
|
+
end
|
58
|
+
|
59
|
+
it 'honor ENV' do
|
60
|
+
old_env = ENV['RAILS_ENV']
|
61
|
+
ENV['RAILS_ENV'] = 'production'
|
62
|
+
@target.environment.should eq(:production)
|
63
|
+
ENV['RAILS_ENV'] = old_env
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'bundler/setup'
|
3
3
|
|
4
|
+
require 'simplecov'
|
5
|
+
SimpleCov.start
|
6
|
+
|
4
7
|
require 'ruby-ecomm-client' # and any other gems you need
|
5
8
|
|
6
9
|
RSpec.configure do |config|
|
@@ -15,6 +18,13 @@ VCR.configure do |c|
|
|
15
18
|
c.hook_into :fakeweb
|
16
19
|
end
|
17
20
|
|
21
|
+
include Utils
|
22
|
+
RubyEcommClient.configure do |config|
|
23
|
+
config.requesting_app = 'outright'
|
24
|
+
config.ssl_cert_file = "config/keys/#{environment}/client.crt"
|
25
|
+
config.ssl_cert_key_file = "config/keys/#{environment}/client.key"
|
26
|
+
end
|
27
|
+
|
18
28
|
if [:qa, :production].include?(RubyEcommClient::Client.environment)
|
19
29
|
VCR.turn_off!(:ignore_cassettes => true)
|
20
30
|
FakeWeb.allow_net_connect = true
|
metadata
CHANGED
@@ -1,162 +1,162 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-ecomm-client
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 1
|
9
|
-
- 0
|
10
|
-
version: 1.1.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.7.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Shelby Sanders
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
22
|
-
none: false
|
23
|
-
requirements:
|
24
|
-
- - "="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
hash: 73
|
27
|
-
segments:
|
28
|
-
- 10
|
29
|
-
- 1
|
30
|
-
- 1
|
31
|
-
version: 10.1.1
|
32
|
-
type: :development
|
33
|
-
requirement: *id001
|
34
|
-
prerelease: false
|
11
|
+
date: 2014-05-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
35
14
|
name: rake
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
hash: 3
|
43
|
-
segments:
|
44
|
-
- 0
|
45
|
-
version: "0"
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 10.1.1
|
46
20
|
type: :development
|
47
|
-
requirement: *id002
|
48
21
|
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 10.1.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
49
28
|
name: ci_reporter
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
hash: 3
|
57
|
-
segments:
|
58
|
-
- 0
|
59
|
-
version: "0"
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
60
34
|
type: :development
|
61
|
-
requirement: *id003
|
62
35
|
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
63
42
|
name: fakeweb
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
hash: 3
|
71
|
-
segments:
|
72
|
-
- 0
|
73
|
-
version: "0"
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
74
48
|
type: :development
|
75
|
-
requirement: *id004
|
76
49
|
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
77
56
|
name: gemfury
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
hash: 3
|
85
|
-
segments:
|
86
|
-
- 0
|
87
|
-
version: "0"
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
88
62
|
type: :development
|
89
|
-
requirement: *id005
|
90
63
|
prerelease: false
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: simplecov
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
102
76
|
type: :development
|
103
|
-
requirement: *id006
|
104
77
|
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
105
84
|
name: rspec
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
hash: 3
|
113
|
-
segments:
|
114
|
-
- 0
|
115
|
-
version: "0"
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
116
90
|
type: :development
|
117
|
-
requirement: *id007
|
118
91
|
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
119
98
|
name: vcr
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
version:
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: freddy
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
132
118
|
type: :runtime
|
133
|
-
requirement: *id008
|
134
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
|
135
126
|
name: nokogiri
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
hash: 3
|
143
|
-
segments:
|
144
|
-
- 0
|
145
|
-
version: "0"
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 1.5.10
|
146
132
|
type: :runtime
|
147
|
-
requirement: *id009
|
148
133
|
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 1.5.10
|
139
|
+
- !ruby/object:Gem::Dependency
|
149
140
|
name: savon
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ! '>='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ! '>='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
150
153
|
description: Easy access to the e-commerce web services via Ruby
|
151
|
-
email:
|
154
|
+
email:
|
152
155
|
- ssanders@godaddy.com
|
153
156
|
executables: []
|
154
|
-
|
155
157
|
extensions: []
|
156
|
-
|
157
158
|
extra_rdoc_files: []
|
158
|
-
|
159
|
-
files:
|
159
|
+
files:
|
160
160
|
- .gitignore
|
161
161
|
- .ruby-version
|
162
162
|
- Gemfile
|
@@ -174,6 +174,7 @@ files:
|
|
174
174
|
- fixtures/vcr_cassettes/request_change/express/downgrade/unknown/resource_id.yml
|
175
175
|
- fixtures/vcr_cassettes/request_change/express/downgrade/unknown/resource_type.yml
|
176
176
|
- fixtures/vcr_cassettes/request_change/express/downgrade/unknown/target_tree_id.yml
|
177
|
+
- fixtures/vcr_cassettes/request_change/express/relay/default.yml
|
177
178
|
- fixtures/vcr_cassettes/request_change/express/upgrade/default.yml
|
178
179
|
- fixtures/vcr_cassettes/request_change/express/upgrade/noop.yml
|
179
180
|
- fixtures/vcr_cassettes/request_change/express/upgrade/unknown/resource_id.yml
|
@@ -184,6 +185,7 @@ files:
|
|
184
185
|
- fixtures/vcr_cassettes/request_change/manager/downgrade/unknown/resource_id.yml
|
185
186
|
- fixtures/vcr_cassettes/request_change/manager/downgrade/unknown/resource_type.yml
|
186
187
|
- fixtures/vcr_cassettes/request_change/manager/downgrade/unknown/target_tree_id.yml
|
188
|
+
- fixtures/vcr_cassettes/request_change/manager/relay/default.yml
|
187
189
|
- fixtures/vcr_cassettes/request_change/manager/upgrade/default.yml
|
188
190
|
- fixtures/vcr_cassettes/request_change/manager/upgrade/noop.yml
|
189
191
|
- fixtures/vcr_cassettes/request_change/manager/upgrade/unknown/resource_id.yml
|
@@ -194,53 +196,59 @@ files:
|
|
194
196
|
- fixtures/vcr_cassettes/transitions/one.yml
|
195
197
|
- lib/ruby-ecomm-client.rb
|
196
198
|
- lib/ruby-ecomm-client/client.rb
|
197
|
-
- lib/ruby-ecomm-client/
|
199
|
+
- lib/ruby-ecomm-client/config.rb
|
198
200
|
- lib/ruby-ecomm-client/error.rb
|
201
|
+
- lib/ruby-ecomm-client/service_base.rb
|
202
|
+
- lib/ruby-ecomm-client/service_manager.rb
|
203
|
+
- lib/ruby-ecomm-client/service_profile.rb
|
204
|
+
- lib/ruby-ecomm-client/service_purchase.rb
|
205
|
+
- lib/ruby-ecomm-client/util.rb
|
199
206
|
- lib/ruby-ecomm-client/version.rb
|
200
207
|
- lib/ruby-ecomm-client/wsdl/manager.wsdl
|
201
208
|
- lib/ruby-ecomm-client/wsdl/profile.wsdl
|
202
209
|
- lib/ruby-ecomm-client/wsdl/purchase.wsdl
|
203
210
|
- ruby-ecomm-client.gemspec
|
211
|
+
- script/bootstrap
|
204
212
|
- script/cibuild
|
205
213
|
- spec/ruby-ecomm-client/client_spec.rb
|
206
|
-
- spec/ruby-ecomm-client/
|
214
|
+
- spec/ruby-ecomm-client/config_spec.rb
|
207
215
|
- spec/ruby-ecomm-client/error_spec.rb
|
216
|
+
- spec/ruby-ecomm-client/service_base_spec.rb
|
217
|
+
- spec/ruby-ecomm-client/service_manager_spec.rb
|
218
|
+
- spec/ruby-ecomm-client/service_profile_spec.rb
|
219
|
+
- spec/ruby-ecomm-client/service_purchase_spec.rb
|
220
|
+
- spec/ruby-ecomm-client/util_spec.rb
|
208
221
|
- spec/spec_helper.rb
|
209
222
|
homepage: https://github.secureserver.net/outright/ruby-ecomm-client
|
210
223
|
licenses: []
|
211
|
-
|
224
|
+
metadata: {}
|
212
225
|
post_install_message:
|
213
226
|
rdoc_options: []
|
214
|
-
|
215
|
-
require_paths:
|
227
|
+
require_paths:
|
216
228
|
- lib
|
217
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
none: false
|
228
|
-
requirements:
|
229
|
-
- - ">="
|
230
|
-
- !ruby/object:Gem::Version
|
231
|
-
hash: 3
|
232
|
-
segments:
|
233
|
-
- 0
|
234
|
-
version: "0"
|
229
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
230
|
+
requirements:
|
231
|
+
- - ! '>='
|
232
|
+
- !ruby/object:Gem::Version
|
233
|
+
version: '0'
|
234
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
235
|
+
requirements:
|
236
|
+
- - ! '>='
|
237
|
+
- !ruby/object:Gem::Version
|
238
|
+
version: '0'
|
235
239
|
requirements: []
|
236
|
-
|
237
240
|
rubyforge_project:
|
238
|
-
rubygems_version:
|
241
|
+
rubygems_version: 2.2.2
|
239
242
|
signing_key:
|
240
|
-
specification_version:
|
243
|
+
specification_version: 4
|
241
244
|
summary: Easy access to the e-commerce web services via Ruby
|
242
|
-
test_files:
|
245
|
+
test_files:
|
243
246
|
- spec/ruby-ecomm-client/client_spec.rb
|
244
|
-
- spec/ruby-ecomm-client/
|
247
|
+
- spec/ruby-ecomm-client/config_spec.rb
|
245
248
|
- spec/ruby-ecomm-client/error_spec.rb
|
249
|
+
- spec/ruby-ecomm-client/service_base_spec.rb
|
250
|
+
- spec/ruby-ecomm-client/service_manager_spec.rb
|
251
|
+
- spec/ruby-ecomm-client/service_profile_spec.rb
|
252
|
+
- spec/ruby-ecomm-client/service_purchase_spec.rb
|
253
|
+
- spec/ruby-ecomm-client/util_spec.rb
|
246
254
|
- spec/spec_helper.rb
|