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 +4 -4
- data/lib/sports_south/order.rb +6 -5
- data/lib/sports_south/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6481c86cca1535a34412d14a8741f5d60a921d0
|
4
|
+
data.tar.gz: ed83dfd81a0648e0480ec19fdda1f3b2899aae31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c2da2c40f4f5074571225f424846805dae56614f6dea2165a2d5cbe9e4202e494e11cccd4dc00a843da534aa205cd06e8412a079119a43e146b6db4a704222a
|
7
|
+
data.tar.gz: 14ece0078b29da5ea1f64004645844958e873df6b3a47389967e2604f3546db8598322383846d989c1b898aa04dfbc35efd46a87131d3798bb1629ec33888849
|
data/lib/sports_south/order.rb
CHANGED
@@ -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:
|
9
|
-
two_day:
|
7
|
+
ground: '',
|
8
|
+
next_day: 'N',
|
9
|
+
two_day: '2',
|
10
10
|
three_day: '3',
|
11
|
-
saturday:
|
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
|
|
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: 1.3.
|
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-
|
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.
|
148
|
+
rubygems_version: 2.6.12
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: Sports South API Ruby library.
|