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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 819a8d22334ce7c3c70adee94cb27955880c020a
4
- data.tar.gz: f36a537d59e4ed88abfa2bc4e1398fdda34357d1
3
+ metadata.gz: 43262c0974c5198003473040e04370c653cbfb31
4
+ data.tar.gz: d32624ca8b01420127005585a92c5bd0db5cdea8
5
5
  SHA512:
6
- metadata.gz: 8d896df4db4760abe66fd2b9babc6f81bf4289bbad189b97966774091c878551556cdcd42e1c54128314018c0b0002de25221c4a2d8cf5302f3435164def378d
7
- data.tar.gz: 1266fcb6e871ce542a399040b9e2cee77862699bd740cd4a494d2298400af1b71dc85c14eb62a10f1443d86862729a4b988fd0c6478b7f3d0cbdcd02d0ca2aad
6
+ metadata.gz: 993b55b11ce7b3964c7a04d076bd282656fb562b563b829b189a19ca7154cb7e7889205ecfce89076a626f6585faf27c1b24a1065616e90b99083aa17511fdd2
7
+ data.tar.gz: 641c61e23f1de7ee2cbdef09ff47e251c4fa2652a23ea8edbae9b89dcfa3e76ce3de8c074f48a7e4df9f1f2386a1b3e8e0fa3b1e901528a3c4d6b9f34f4a5012
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module SportsSouth
2
- VERSION = "0.12.1"
2
+ VERSION = "0.12.2"
3
3
  end
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.1
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-09-28 00:00:00.000000000 Z
11
+ date: 2016-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri