rex11 0.0.2 → 0.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 (34) hide show
  1. data/.gitignore +18 -0
  2. data/.rvmrc +1 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +110 -0
  6. data/Rakefile +7 -0
  7. data/lib/rex11/client.rb +307 -0
  8. data/lib/rex11/version.rb +3 -0
  9. data/lib/rex11.rb +2 -5
  10. data/rex11.gemspec +25 -0
  11. data/spec/fixtures/authentication_token_get_request.xml +10 -0
  12. data/spec/fixtures/authentication_token_get_response_error.xml +9 -0
  13. data/spec/fixtures/authentication_token_get_response_success.xml +7 -0
  14. data/spec/fixtures/cancel_pick_ticket_request.xml +9 -0
  15. data/spec/fixtures/cancel_pick_ticket_response_error.xml +22 -0
  16. data/spec/fixtures/cancel_pick_ticket_response_success.xml +16 -0
  17. data/spec/fixtures/get_pick_ticket_object_by_bar_code_request.xml +9 -0
  18. data/spec/fixtures/get_pick_ticket_object_by_bar_code_response_error.xml +16 -0
  19. data/spec/fixtures/get_pick_ticket_object_by_bar_code_response_success.xml +106 -0
  20. data/spec/fixtures/pick_ticket_add_request.xml +52 -0
  21. data/spec/fixtures/pick_ticket_add_response_error.xml +27 -0
  22. data/spec/fixtures/pick_ticket_add_response_success.xml +16 -0
  23. data/spec/fixtures/receiving_ticket_add_request.xml +46 -0
  24. data/spec/fixtures/receiving_ticket_add_response_error.xml +22 -0
  25. data/spec/fixtures/receiving_ticket_add_response_success.xml +10 -0
  26. data/spec/fixtures/style_master_product_add_request.xml +20 -0
  27. data/spec/fixtures/style_master_product_add_response_error.xml +32 -0
  28. data/spec/fixtures/style_master_product_add_response_success.xml +16 -0
  29. data/spec/fixtures/text.xml +103 -0
  30. data/spec/lib/client_spec.rb +341 -0
  31. data/spec/spec_helper.rb +9 -0
  32. data/spec/support/spec_helper_methods.rb +6 -0
  33. data/spec/test_run.rb +125 -0
  34. metadata +127 -7
@@ -0,0 +1,341 @@
1
+ require 'spec_helper'
2
+
3
+ describe Rex11::Client do
4
+ before do
5
+ @client = Rex11::Client.new("the_username", "the_password", "the_web_address")
6
+ end
7
+
8
+ context "authenticate" do
9
+ context "request" do
10
+ it "should form correct request" do
11
+ @client.should_receive(:commit).with(squeeze_xml(xml_fixture("authentication_token_get_request"))).and_return(xml_fixture("authentication_token_get_response_success"))
12
+ @client.authenticate
13
+ end
14
+ end
15
+
16
+ context "response" do
17
+ context "success" do
18
+ before do
19
+ @client.should_receive(:commit).and_return(xml_fixture("authentication_token_get_response_success"))
20
+ end
21
+
22
+ it "should set auth_token" do
23
+ @client.authenticate
24
+ @client.auth_token.should == "4vxVebc3D1zwsXjH9fkFpgpOhewauJbVu25WXjQ1gOo="
25
+ end
26
+
27
+ it "should return true" do
28
+ @client.authenticate.should be_true
29
+ end
30
+ end
31
+
32
+ context "error" do
33
+ it "should raise error and not set auth_token" do
34
+ @client.should_receive(:commit).and_return(xml_fixture("authentication_token_get_response_error"))
35
+
36
+ lambda {
37
+ @client.authenticate
38
+ }.should raise_error("Failed Authentication due invalid username, password, or endpoint")
39
+ @client.auth_token.should be_nil
40
+ end
41
+ end
42
+ end
43
+ end
44
+
45
+ context "add_style" do
46
+ before do
47
+ @item = {
48
+ :style => "the_style",
49
+ :upc => "the_upc",
50
+ :size => "the_size",
51
+ :price => "the_price",
52
+ :color => "the_color",
53
+ :description => "the_description"
54
+ }
55
+
56
+ @client.auth_token = "4vxVebc3D1zwsXjH9fkFpgpOhewauJbVu25WXjQ1gOo="
57
+ end
58
+
59
+ it "should require_auth_token" do
60
+ @client.should_receive(:commit).and_return(xml_fixture("style_master_product_add_response_success"))
61
+ @client.should_receive(:require_auth_token)
62
+ @client.add_style(@item)
63
+ end
64
+
65
+ context "request" do
66
+ it "should form correct request" do
67
+ @client.should_receive(:commit).with(squeeze_xml(xml_fixture("style_master_product_add_request"))).and_return(xml_fixture("style_master_product_add_response_success"))
68
+ @client.add_style(@item)
69
+ end
70
+ end
71
+
72
+ context "response" do
73
+ context "when success" do
74
+ it "should return true" do
75
+ @client.should_receive(:commit).and_return(xml_fixture("style_master_product_add_response_success"))
76
+ @client.add_style(@item).should == true
77
+ end
78
+ end
79
+
80
+ context "when error" do
81
+ it "should raise error" do
82
+ @client.should_receive(:commit).and_return(xml_fixture("style_master_product_add_response_error"))
83
+ lambda {
84
+ @client.add_style(@item)
85
+ }.should raise_error("Error 31: COLOR[item 1] is not valid. Error 43: PRICE[item 1] is not valid. Error 31: COLOR[item 2] is not valid. Error 31: COLOR[item 4] is not valid. ")
86
+ end
87
+ end
88
+ end
89
+ end
90
+
91
+ context "create_pick_ticket" do
92
+ before do
93
+ @items = [
94
+ {:upc => "the_upc1", :quantity => 1},
95
+ {:upc => "the_upc2", :quantity => 2}
96
+ ]
97
+
98
+ @ship_to_address = {:first_name => "the_ship_to_first_name",
99
+ :last_name => "the_ship_to_last_name",
100
+ :company_name => "the_ship_to_company_name",
101
+ :address1 => "the_ship_to_address1",
102
+ :address2 => "the_ship_to_address2",
103
+ :city => "the_ship_to_city",
104
+ :state => "the_ship_to_state",
105
+ :zip => "the_ship_to_zip",
106
+ :country => "the_ship_to_country",
107
+ :phone => "the_ship_to_phone",
108
+ :email => "the_ship_to_email"
109
+ }
110
+
111
+ @pick_ticket_options = {
112
+ :pick_ticket_id => "23022012012557",
113
+ :warehouse => "the_warehouse",
114
+ :payment_terms => "NET",
115
+ :use_ups_account => "1",
116
+ :ship_via_account_number => "1AB345",
117
+ :ship_via => "UPS",
118
+ :ship_service => "UPS GROUND - Commercial",
119
+ :billing_option => "PREPAID",
120
+ :bill_to_address => {
121
+ :first_name => "the_bill_to_first_name",
122
+ :last_name => "the_bill_to_last_name",
123
+ :company_name => "the_bill_to_company_name",
124
+ :address1 => "the_bill_to_address1",
125
+ :address2 => "the_bill_to_address2",
126
+ :city => "the_bill_to_city",
127
+ :state => "the_bill_to_state",
128
+ :zip => "the_bill_to_zip",
129
+ :country => "the_bill_to_country",
130
+ :phone => "the_bill_to_phone",
131
+ :email => "the_bill_to_email"
132
+ }
133
+ }
134
+
135
+ @client.auth_token = "4vxVebc3D1zwsXjH9fkFpgpOhewauJbVu25WXjQ1gOo="
136
+ end
137
+
138
+ it "should require_auth_token" do
139
+ @client.should_receive(:commit).and_return(xml_fixture("pick_ticket_add_response_success"))
140
+ @client.should_receive(:require_auth_token)
141
+ @client.create_pick_ticket(@items, @ship_to_address, @pick_ticket_options)
142
+ end
143
+
144
+ context "request" do
145
+ it "should form correct request" do
146
+ @client.should_receive(:commit).with(squeeze_xml(xml_fixture("pick_ticket_add_request"))).and_return(xml_fixture("pick_ticket_add_response_success"))
147
+ @client.create_pick_ticket(@items, @ship_to_address, @pick_ticket_options)
148
+ end
149
+ end
150
+
151
+ context "response" do
152
+ context "when success" do
153
+ it "should return true" do
154
+ @client.should_receive(:commit).and_return(xml_fixture("pick_ticket_add_response_success"))
155
+ @client.create_pick_ticket(@items, @ship_to_address, @pick_ticket_options).should == true
156
+ end
157
+ end
158
+
159
+ context "when error" do
160
+ it "should raise error" do
161
+ @client.should_receive(:commit).and_return(xml_fixture("pick_ticket_add_response_error"))
162
+ lambda {
163
+ @client.create_pick_ticket(@items, @ship_to_address, @pick_ticket_options)
164
+ }.should raise_error("Error 56: PickTicket/ShipVia is not valid. Error 61: PickTicket/ShipService is not valid. Error 10: State for ShipToAddress is required for USA. ")
165
+ end
166
+ end
167
+ end
168
+ end
169
+
170
+ context "cancel pick ticket" do
171
+ before do
172
+ @pick_ticket_id = "the_pick_ticket_id"
173
+ @client.auth_token = "4vxVebc3D1zwsXjH9fkFpgpOhewauJbVu25WXjQ1gOo="
174
+ end
175
+
176
+ it "should require_auth_token" do
177
+ @client.should_receive(:commit).and_return(xml_fixture("cancel_pick_ticket_response_success"))
178
+ @client.should_receive(:require_auth_token)
179
+ @client.cancel_pick_ticket(@pick_ticket_id)
180
+ end
181
+
182
+ context "request" do
183
+ it "should form correct request" do
184
+ @client.should_receive(:commit).with(squeeze_xml(xml_fixture("cancel_pick_ticket_request"))).and_return(xml_fixture("cancel_pick_ticket_response_success"))
185
+ @client.cancel_pick_ticket(@pick_ticket_id)
186
+ end
187
+ end
188
+
189
+ context "response" do
190
+ context "when success" do
191
+ it "should return hash" do
192
+ @client.should_receive(:commit).and_return(xml_fixture("cancel_pick_ticket_response_success"))
193
+ @client.cancel_pick_ticket(@pick_ticket_id).should == true
194
+ end
195
+ end
196
+
197
+ context "when error" do
198
+ it "should raise error" do
199
+ @client.should_receive(:commit).and_return(xml_fixture("cancel_pick_ticket_response_error"))
200
+ lambda {
201
+ @client.cancel_pick_ticket(@pick_ticket_id)
202
+ }.should raise_error("Error 45: PickTicket can not be cancelled. Error 45: PickTicket does not exist. ")
203
+ end
204
+ end
205
+ end
206
+ end
207
+
208
+ context "pick_ticket_by_number" do
209
+ before do
210
+ @pick_ticket_id = "the_pick_ticket_id"
211
+ @client.auth_token = "4vxVebc3D1zwsXjH9fkFpgpOhewauJbVu25WXjQ1gOo="
212
+ end
213
+
214
+ it "should require_auth_token" do
215
+ @client.should_receive(:commit).and_return(xml_fixture("get_pick_ticket_object_by_bar_code_response_success"))
216
+ @client.should_receive(:require_auth_token)
217
+ @client.pick_ticket_by_number(@pick_ticket_id)
218
+ end
219
+
220
+ context "request" do
221
+ it "should form correct request" do
222
+ @client.should_receive(:commit).with(squeeze_xml(xml_fixture("get_pick_ticket_object_by_bar_code_request"))).and_return(xml_fixture("get_pick_ticket_object_by_bar_code_response_success"))
223
+ @client.pick_ticket_by_number(@pick_ticket_id)
224
+ end
225
+ end
226
+
227
+ context "response" do
228
+ context "when success" do
229
+ it "should return hash" do
230
+ @client.should_receive(:commit).and_return(xml_fixture("get_pick_ticket_object_by_bar_code_response_success"))
231
+ @client.pick_ticket_by_number(@pick_ticket_id).should == {
232
+ :pick_ticket_id => "the_pick_ticket_id",
233
+ :pick_ticket_status => "the_pick_ticket_status",
234
+ :pick_ticket_status_code => "the_pick_ticket_status_code",
235
+ :tracking_number => "the_tracking_number",
236
+ :shipping_charge => nil
237
+
238
+ }
239
+
240
+ end
241
+ end
242
+
243
+ context "when error" do
244
+ it "should raise error" do
245
+ @client.should_receive(:commit).and_return(xml_fixture("get_pick_ticket_object_by_bar_code_response_error"))
246
+ lambda {
247
+ @client.pick_ticket_by_number(@pick_ticket_id)
248
+ }.should raise_error("Error 83: BarCode doesn't exist. ")
249
+ end
250
+ end
251
+ end
252
+ end
253
+
254
+ context "create_receiving_ticket" do
255
+ before do
256
+ @items = [{:style => "the_style1",
257
+ :upc => "the_upc1",
258
+ :size => "the_size1",
259
+ :color => "the_color1",
260
+ :description => "the_description1",
261
+ :quantity => "the_quantity1",
262
+ :comments => "the_comments1",
263
+ :shipment_type => "the_shipment_type1"
264
+ },
265
+ {:style => "the_style2",
266
+ :upc => "the_upc2",
267
+ :size => "the_size2",
268
+ :color => "the_color2",
269
+ :description => "the_description2",
270
+ :quantity => "the_quantity2",
271
+ :comments => "the_comments2",
272
+ :shipment_type => "the_shipment_type2"
273
+ }
274
+ ]
275
+
276
+ @receiving_ticket_options = {
277
+ :warehouse => "the_warehouse",
278
+ :carrier => "the_carrier",
279
+ :memo => "the_memo",
280
+ :supplier => {:company_name => "the_supplier_company_name",
281
+ :address1 => "the_supplier_address1",
282
+ :address2 => "the_supplier_address2",
283
+ :city => "the_supplier_city",
284
+ :state => "the_supplier_state",
285
+ :zip => "the_supplier_zip",
286
+ :country => "the_supplier_country",
287
+ :phone => "the_supplier_phone",
288
+ :email => "the_supplier_email"
289
+ }
290
+ }
291
+
292
+ @client.auth_token = "4vxVebc3D1zwsXjH9fkFpgpOhewauJbVu25WXjQ1gOo="
293
+ end
294
+
295
+ it "should require_auth_token" do
296
+ @client.should_receive(:commit).and_return(xml_fixture("receiving_ticket_add_response_success"))
297
+ @client.should_receive(:require_auth_token)
298
+ @client.create_receiving_ticket(@items, @receiving_ticket_options)
299
+ end
300
+
301
+ context "request" do
302
+ it "should form correct request" do
303
+ @client.should_receive(:commit).with(squeeze_xml(xml_fixture("receiving_ticket_add_request"))).and_return(xml_fixture("receiving_ticket_add_response_success"))
304
+ @client.create_receiving_ticket(@items, @receiving_ticket_options)
305
+ end
306
+ end
307
+
308
+ context "response" do
309
+ context "when success" do
310
+ it "should return the receiving ticket id" do
311
+ @client.should_receive(:commit).and_return(xml_fixture("receiving_ticket_add_response_success"))
312
+ @client.create_receiving_ticket(@items, @receiving_ticket_options).should == {:receiving_ticket_id => "the_receiving_ticket_id"}
313
+ end
314
+ end
315
+
316
+ context "when error" do
317
+ it "should raise error" do
318
+ @client.should_receive(:commit).and_return(xml_fixture("receiving_ticket_add_response_error"))
319
+ lambda {
320
+ @client.create_receiving_ticket(@items, @receiving_ticket_options)
321
+ }.should raise_error("Error 12: ReceivingTicket/SupplierDetails/Country is not valid. Error 32: ReceivingTicket/Shipmentitemslist/Size[item 1] is not valid. ")
322
+ end
323
+ end
324
+ end
325
+ end
326
+
327
+ context "require_auth_token" do
328
+ it "should raise error if auth_token is not set" do
329
+ lambda {
330
+ @client.send("require_auth_token")
331
+ }.should raise_error("Authentication required for api call")
332
+ end
333
+
334
+ it "should not raise error if auth_token is set" do
335
+ @client.auth_token = "something"
336
+ lambda {
337
+ @client.send("require_auth_token")
338
+ }.should_not raise_error
339
+ end
340
+ end
341
+ end
@@ -0,0 +1,9 @@
1
+ require 'rex11'
2
+
3
+ def xml_fixture(path) # where path is like 'authentication_token_get_response_success'
4
+ open(File.join(File.dirname(__FILE__), 'fixtures', "#{path}.xml")) { |f| f.read }
5
+ end
6
+
7
+ def squeeze_xml(xml)
8
+ xml.gsub("\n", ' ').squeeze(' ').gsub("> <","><")
9
+ end
@@ -0,0 +1,6 @@
1
+ module SpecHelperMethods
2
+ def xml_fixture(path) # where path is like 'authentication_token_get_response_success'
3
+ open(File.join(File.dirname(__FILE__),'fixtures',"#{path}.xml")) {|f| f.read}
4
+ end
5
+ end
6
+
data/spec/test_run.rb ADDED
@@ -0,0 +1,125 @@
1
+ require 'rex11'
2
+
3
+ USERNAME = "xx"
4
+ PASSWORD = "xx"
5
+ WEB_ADDRESS = "xx"
6
+ TESTING = true
7
+
8
+ item = {
9
+ :style => "ABC123",
10
+ :upc => "ABC123",
11
+ :size => "LARGE",
12
+ :price => "100.0",
13
+ :color => "Black",
14
+ :description => "Chanel Red Skirt"
15
+ }
16
+
17
+ item2 = {
18
+ :style => "DEF123",
19
+ :upc => "DEF123",
20
+ :size => "LARGE",
21
+ :price => "100.0",
22
+ :color => "Purple",
23
+ :description => "Chanel Red Blouse"
24
+ }
25
+
26
+ items = [
27
+ {:style => "ABC123",
28
+ :upc => "ABC123",
29
+ :size => "LARGE",
30
+ :color => "Black",
31
+ :description => "Chanel Red Skirt",
32
+ :quantity => "1",
33
+ :comments => "These are the comments.",
34
+ :shipment_type => "GOH"
35
+ },
36
+ {:style => "DEF123",
37
+ :upc => "DEF123",
38
+ :size => "SMALL",
39
+ :color => "Blue",
40
+ :description => "Balenciaga Purple Blouse",
41
+ :quantity => "1",
42
+ :comments => "Slightly damaged",
43
+ :shipment_type => "FLAT"
44
+ }
45
+ ]
46
+
47
+ ship_to_address = {:first_name => "Joe",
48
+ :last_name => "Shmoe",
49
+ :company_name => "Time Magazine",
50
+ :address1 => "1271 Avenue of the Americas",
51
+ :city => "New York",
52
+ :state => "NY",
53
+ :zip => "10020",
54
+ :country => "US",
55
+ :phone => "212-522-1212",
56
+ :email => "time@magazine.com"
57
+ }
58
+
59
+ pick_ticket_id = "23022012012557"
60
+ pick_ticket_options = {
61
+ :pick_ticket_id => pick_ticket_id,
62
+ :warehouse => "BERGEN LOGISTICS NJ",
63
+ :payment_terms => "NET",
64
+ :use_ups_account => "0",
65
+ #:ship_via_account_number => "1AB345",
66
+ :ship_via => "UPS",
67
+ :ship_service => "UPS GROUND - Commercial",
68
+ :billing_option => "THIRD PARTY",
69
+ :bill_to_address => {
70
+ :first_name => "Jane",
71
+ :last_name => "Smith",
72
+ :company_name => "Netaporter",
73
+ :address1 => "725 Darlington Avenue",
74
+ :city => "Mahwah",
75
+ :state => "NJ",
76
+ :zip => "07430",
77
+ :country => "US",
78
+ :phone => "212-522-1212",
79
+ :email => "net@netaporter.com"
80
+ }
81
+ }
82
+
83
+ receiving_ticket_options = {
84
+ :warehouse => "BERGEN LOGISTICS NJ",
85
+ :carrier => "the_carrier",
86
+ :memo => "the_memo",
87
+ :supplier => {:company_name => "Netaporter",
88
+ :address1 => "725 Darlington Avenue",
89
+ :city => "Mahwah",
90
+ :state => "NJ",
91
+ :zip => "07430",
92
+ :country => "US",
93
+ :phone => "212-522-1212",
94
+ :email => "net@netaporter.com"
95
+ }
96
+ }
97
+
98
+ puts "Authenticating..."
99
+ client = Rex11::Client.new(USERNAME, PASSWORD, WEB_ADDRESS, TESTING, :logging => false)
100
+ result = client.authenticate
101
+ puts "Authenticated: #{result}\n\n"
102
+
103
+ puts "Creating Style Master..."
104
+ result = client.add_style(item)
105
+ puts "Added Style Master: #{result}"
106
+
107
+ puts "Creating Style Master..."
108
+ result = client.add_style(item2)
109
+ puts "Added Style Master: #{result}\n\n"
110
+
111
+ puts "Creating Pick Tickets.."
112
+ response = client.create_pick_ticket(items, ship_to_address, pick_ticket_options)
113
+ puts "Created Pick Tickets: #{response}\n\n"
114
+
115
+ puts "Canceling Pick Ticket.."
116
+ response = client.cancel_pick_ticket(pick_ticket_id)
117
+ puts "Canceled Pick Ticket: #{response}\n\n"
118
+
119
+ puts "Getting Pick Tickets by number.."
120
+ response = client.pick_ticket_by_number(pick_ticket_id)
121
+ puts "Completed Pick Tickets by number: #{response}\n\n"
122
+
123
+ puts "Creating Receiving Ticket.."
124
+ response = client.create_receiving_ticket(items, receiving_ticket_options)
125
+ puts "Created Receiving Ticket: #{response}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rex11
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,15 +9,112 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-26 00:00:00.000000000 Z
13
- dependencies: []
14
- description: Ruby client for REX11
15
- email: andy@vaunte.com
12
+ date: 2013-03-02 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: builder
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: xml-simple
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rake
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rspec
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ description: Ruby Library for REX11 Warehouse Management System
79
+ email:
80
+ - andrewkshin@gmail.com
16
81
  executables: []
17
82
  extensions: []
18
83
  extra_rdoc_files: []
19
84
  files:
85
+ - .gitignore
86
+ - .rvmrc
87
+ - Gemfile
88
+ - LICENSE.txt
89
+ - README.md
90
+ - Rakefile
20
91
  - lib/rex11.rb
92
+ - lib/rex11/client.rb
93
+ - lib/rex11/version.rb
94
+ - rex11.gemspec
95
+ - spec/fixtures/authentication_token_get_request.xml
96
+ - spec/fixtures/authentication_token_get_response_error.xml
97
+ - spec/fixtures/authentication_token_get_response_success.xml
98
+ - spec/fixtures/cancel_pick_ticket_request.xml
99
+ - spec/fixtures/cancel_pick_ticket_response_error.xml
100
+ - spec/fixtures/cancel_pick_ticket_response_success.xml
101
+ - spec/fixtures/get_pick_ticket_object_by_bar_code_request.xml
102
+ - spec/fixtures/get_pick_ticket_object_by_bar_code_response_error.xml
103
+ - spec/fixtures/get_pick_ticket_object_by_bar_code_response_success.xml
104
+ - spec/fixtures/pick_ticket_add_request.xml
105
+ - spec/fixtures/pick_ticket_add_response_error.xml
106
+ - spec/fixtures/pick_ticket_add_response_success.xml
107
+ - spec/fixtures/receiving_ticket_add_request.xml
108
+ - spec/fixtures/receiving_ticket_add_response_error.xml
109
+ - spec/fixtures/receiving_ticket_add_response_success.xml
110
+ - spec/fixtures/style_master_product_add_request.xml
111
+ - spec/fixtures/style_master_product_add_response_error.xml
112
+ - spec/fixtures/style_master_product_add_response_success.xml
113
+ - spec/fixtures/text.xml
114
+ - spec/lib/client_spec.rb
115
+ - spec/spec_helper.rb
116
+ - spec/support/spec_helper_methods.rb
117
+ - spec/test_run.rb
21
118
  homepage: https://www.vaunte.com
22
119
  licenses: []
23
120
  post_install_message:
@@ -41,5 +138,28 @@ rubyforge_project:
41
138
  rubygems_version: 1.8.24
42
139
  signing_key:
43
140
  specification_version: 3
44
- summary: Ruby client for REX11
45
- test_files: []
141
+ summary: This is a library for interfacing with REX11 Warehouse Management System
142
+ test_files:
143
+ - spec/fixtures/authentication_token_get_request.xml
144
+ - spec/fixtures/authentication_token_get_response_error.xml
145
+ - spec/fixtures/authentication_token_get_response_success.xml
146
+ - spec/fixtures/cancel_pick_ticket_request.xml
147
+ - spec/fixtures/cancel_pick_ticket_response_error.xml
148
+ - spec/fixtures/cancel_pick_ticket_response_success.xml
149
+ - spec/fixtures/get_pick_ticket_object_by_bar_code_request.xml
150
+ - spec/fixtures/get_pick_ticket_object_by_bar_code_response_error.xml
151
+ - spec/fixtures/get_pick_ticket_object_by_bar_code_response_success.xml
152
+ - spec/fixtures/pick_ticket_add_request.xml
153
+ - spec/fixtures/pick_ticket_add_response_error.xml
154
+ - spec/fixtures/pick_ticket_add_response_success.xml
155
+ - spec/fixtures/receiving_ticket_add_request.xml
156
+ - spec/fixtures/receiving_ticket_add_response_error.xml
157
+ - spec/fixtures/receiving_ticket_add_response_success.xml
158
+ - spec/fixtures/style_master_product_add_request.xml
159
+ - spec/fixtures/style_master_product_add_response_error.xml
160
+ - spec/fixtures/style_master_product_add_response_success.xml
161
+ - spec/fixtures/text.xml
162
+ - spec/lib/client_spec.rb
163
+ - spec/spec_helper.rb
164
+ - spec/support/spec_helper_methods.rb
165
+ - spec/test_run.rb