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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c458482c50e70c183ea0aac3f0fb86a7a9ed569
4
- data.tar.gz: 699ddedb0dc44046e06b33d856c1eacfcf6d57e4
3
+ metadata.gz: 4bb45a1a176125481f9c1c592b7b4afffd4df154
4
+ data.tar.gz: 9bc78230c91211b5c829fd8fae87dd7a823ac6b4
5
5
  SHA512:
6
- metadata.gz: 46e6c9cf43ffb455b12b932ddde945e796237f3bf4692942c4294a73ee66b326d7c46a0a43477a018b98de263c43ca60d8d40aaf204ac4628021b9f53e9b1a56
7
- data.tar.gz: 401f624b4f37cdb052e2ee76d40625d54dffd75a0dd248d5056cf6f03bf0b58c1fa38d66c3e99c28d524862530c905345ccf10f1e9be8e83ed6070afe0443644
6
+ metadata.gz: 127b6e0ca6f297f33878d6dd2bcce6c6a97f55224ee04cef43cd65327b1fe644b2627ef3e1cc1c4debb9e9545f1b7d890eb020e7d855b43d285d3045796c8055
7
+ data.tar.gz: e96c639e1dba34711aefcf564cd3abedca16daf4ed2d792c919ad2fb884f2e13724d22707e288a83897f571fe89e4eb778cedcc1bf38f104f58b899cef89b09c
@@ -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][:name] unless header.has_key?(:attn)
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 xml_doc
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
 
@@ -1,3 +1,3 @@
1
1
  module SportsSouth
2
- VERSION = "0.14.1.debug"
2
+ VERSION = "0.14.2.debug"
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.14.1.debug
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-28 00:00:00.000000000 Z
11
+ date: 2016-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri