sports_south 0.12.1 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sports_south/order.rb +19 -0
- data/lib/sports_south/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43262c0974c5198003473040e04370c653cbfb31
|
4
|
+
data.tar.gz: d32624ca8b01420127005585a92c5bd0db5cdea8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 993b55b11ce7b3964c7a04d076bd282656fb562b563b829b189a19ca7154cb7e7889205ecfce89076a626f6585faf27c1b24a1065616e90b99083aa17511fdd2
|
7
|
+
data.tar.gz: 641c61e23f1de7ee2cbdef09ff47e251c4fa2652a23ea8edbae9b89dcfa3e76ce3de8c074f48a7e4df9f1f2386a1b3e8e0fa3b1e901528a3c4d6b9f34f4a5012
|
data/lib/sports_south/order.rb
CHANGED
@@ -76,6 +76,25 @@ module SportsSouth
|
|
76
76
|
@order_number = xml_doc.content
|
77
77
|
end
|
78
78
|
|
79
|
+
def add_ship_instructions(ship_instructions = {})
|
80
|
+
requires!(ship_instructions, :ship_inst_1, :ship_inst_2)
|
81
|
+
|
82
|
+
http, request = get_http_and_request(API_URL, '/AddShipInstructions ')
|
83
|
+
|
84
|
+
request.set_form_data(form_params(@options).merge({
|
85
|
+
ShipInst1: header[:ship_inst_1],
|
86
|
+
ShipInst2: header[:ship_inst_2],
|
87
|
+
}))
|
88
|
+
|
89
|
+
response = http.request(request)
|
90
|
+
xml_doc = Nokogiri::XML(response.body)
|
91
|
+
|
92
|
+
raise SportsSouth::NotAuthenticated if not_authenticated?(xml_doc)
|
93
|
+
|
94
|
+
@response_body = response.body
|
95
|
+
xml_doc.content == 'true'
|
96
|
+
end
|
97
|
+
|
79
98
|
def add_detail(detail = {})
|
80
99
|
raise StandardError.new("No @order_number present.") if @order_number.nil?
|
81
100
|
|
data/lib/sports_south/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sports_south
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dale Campbell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|