sports_south 1.3.0 → 1.3.1

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: 0f494dd65a51bd73aae00e03d4a23764ca0ed668
4
- data.tar.gz: 4c74279151c99e10e22b097ab24c11d934f13a66
3
+ metadata.gz: a6481c86cca1535a34412d14a8741f5d60a921d0
4
+ data.tar.gz: ed83dfd81a0648e0480ec19fdda1f3b2899aae31
5
5
  SHA512:
6
- metadata.gz: e8e41b17a1df48ebcc48555c1485abf69929fedbe17bbdb7f54b30b93dc2f7347b483311ddbab660b951fdfa3c4d3c3e493be71ab6c001d9f40b62624007a75f
7
- data.tar.gz: be790fa31e92cb70eb8f9e96cd938cc4034937d71718cccdd6863257f043a25bc3029b64c77c9c4347efa3068b455cf4782b98fa466679469ea695b0546abb72
6
+ metadata.gz: 7c2da2c40f4f5074571225f424846805dae56614f6dea2165a2d5cbe9e4202e494e11cccd4dc00a843da534aa205cd06e8412a079119a43e146b6db4a704222a
7
+ data.tar.gz: 14ece0078b29da5ea1f64004645844958e873df6b3a47389967e2604f3546db8598322383846d989c1b898aa04dfbc35efd46a87131d3798bb1629ec33888849
@@ -4,11 +4,12 @@ module SportsSouth
4
4
  API_URL = 'http://webservices.theshootingwarehouse.com/smart/orders.asmx'
5
5
 
6
6
  SHIP_VIA = {
7
- ground: '',
8
- next_day: 'N',
9
- two_day: '2',
7
+ ground: '',
8
+ next_day: 'N',
9
+ two_day: '2',
10
10
  three_day: '3',
11
- saturday: 'S',
11
+ saturday: 'S',
12
+ premium_ground: 'G',
12
13
  }
13
14
 
14
15
  # D=Placed, E=Error placing Order, R=Placed-Verifying, W=Open
@@ -42,8 +43,8 @@ module SportsSouth
42
43
 
43
44
  requires!(header[:shipping], :name, :address_one, :city, :state, :zip, :phone)
44
45
  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
+ header[:shipping][:via] = (header[:shipping].has_key?(:ship_via) ? SHIP_VIA[header[:shipping][:ship_via]] : SHIP_VIA[:ground])
47
48
 
48
49
  http, request = get_http_and_request(API_URL, '/AddHeader')
49
50
 
@@ -1,3 +1,3 @@
1
1
  module SportsSouth
2
- VERSION = '1.3.0'.freeze
2
+ VERSION = '1.3.1'.freeze
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: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Campbell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-20 00:00:00.000000000 Z
11
+ date: 2017-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  requirements: []
147
147
  rubyforge_project:
148
- rubygems_version: 2.6.7
148
+ rubygems_version: 2.6.12
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: Sports South API Ruby library.