sports_south 0.14.1.debug → 0.14.2.debug
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 +7 -3
- 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: 4bb45a1a176125481f9c1c592b7b4afffd4df154
|
4
|
+
data.tar.gz: 9bc78230c91211b5c829fd8fae87dd7a823ac6b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 127b6e0ca6f297f33878d6dd2bcce6c6a97f55224ee04cef43cd65327b1fe644b2627ef3e1cc1c4debb9e9545f1b7d890eb020e7d855b43d285d3045796c8055
|
7
|
+
data.tar.gz: e96c639e1dba34711aefcf564cd3abedca16daf4ed2d792c919ad2fb884f2e13724d22707e288a83897f571fe89e4eb778cedcc1bf38f104f58b899cef89b09c
|
data/lib/sports_south/order.rb
CHANGED
@@ -41,8 +41,8 @@ module SportsSouth
|
|
41
41
|
header[:insurance] = false unless header.has_key?(:insurance)
|
42
42
|
|
43
43
|
requires!(header[:shipping], :name, :address_one, :city, :state, :zip, :phone)
|
44
|
-
header[:shipping][:attn] = header[:shipping]
|
45
|
-
header[:shipping][:via] = SHIP_VIA[:ground] unless header.has_key?(:ship_via)
|
44
|
+
header[:shipping][:attn] = '' unless header[:shipping].has_key?(:attn)
|
45
|
+
header[:shipping][:via] = SHIP_VIA[:ground] unless header[:shipping].has_key?(:ship_via)
|
46
46
|
header[:shipping][:address_two] = '' unless header[:shipping].has_key?(:address_two)
|
47
47
|
|
48
48
|
http, request = get_http_and_request(API_URL, '/AddHeader')
|
@@ -67,10 +67,14 @@ module SportsSouth
|
|
67
67
|
Insurance: header[:insurance],
|
68
68
|
}))
|
69
69
|
|
70
|
+
puts "sports_south.gem - Order.add_header (request)"
|
71
|
+
puts "sports_south.gem - #{request.body.inspect}"
|
72
|
+
|
70
73
|
response = http.request(request)
|
71
74
|
xml_doc = Nokogiri::XML(response.body)
|
72
75
|
|
73
|
-
puts
|
76
|
+
puts "sports_south.gem - Order.add_header (response)"
|
77
|
+
puts "sports_south.gem - #{xml_doc.inspect}"
|
74
78
|
|
75
79
|
raise SportsSouth::NotAuthenticated if not_authenticated?(xml_doc)
|
76
80
|
|
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.14.
|
4
|
+
version: 0.14.2.debug
|
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-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|