sports_south 2.0.2 → 2.0.3
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/base.rb +2 -2
- data/lib/sports_south/brand.rb +1 -1
- data/lib/sports_south/catalog.rb +0 -2
- data/lib/sports_south/category.rb +1 -1
- data/lib/sports_south/ffl.rb +1 -1
- data/lib/sports_south/image.rb +2 -2
- data/lib/sports_south/inventory.rb +0 -2
- data/lib/sports_south/invoice.rb +1 -1
- data/lib/sports_south/order.rb +2 -2
- data/lib/sports_south/user.rb +2 -1
- data/lib/sports_south/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed2f3a2e646f6849503c9090cd5699e0156ff250
|
4
|
+
data.tar.gz: c64f1f2b7e3cc2f239364d608b143a0646f70efb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7eca833567c6c25ae3a4557f9ffbfa7932e1bfbaef31174cfb5db3f6d5573ab4f60fb755700c1e0cc00d3455575b11185ba25d3b2d0e93c91c06586c44d91d2
|
7
|
+
data.tar.gz: ededb2f69ebcc2c7c9883b9dea95d000e036920488a627387c37e759ac3b427f8d967ba4533aa0a110fbdc02fe09c15c35fac78d8d16cf1058ea01a4ed22fba5
|
data/lib/sports_south/base.rb
CHANGED
@@ -36,8 +36,8 @@ module SportsSouth
|
|
36
36
|
{
|
37
37
|
UserName: options[:username],
|
38
38
|
Password: options[:password],
|
39
|
-
CustomerNumber: options[:
|
40
|
-
Source:
|
39
|
+
CustomerNumber: options[:username],
|
40
|
+
Source: 'ammor',
|
41
41
|
}
|
42
42
|
end
|
43
43
|
def form_params(*args); self.class.form_params(*args); end
|
data/lib/sports_south/brand.rb
CHANGED
@@ -4,7 +4,7 @@ module SportsSouth
|
|
4
4
|
API_URL = 'http://webservices.theshootingwarehouse.com/smart/inventory.asmx'
|
5
5
|
|
6
6
|
def self.all(options = {})
|
7
|
-
requires!(options, :username, :password
|
7
|
+
requires!(options, :username, :password)
|
8
8
|
|
9
9
|
http, request = get_http_and_request(API_URL, '/BrandUpdate')
|
10
10
|
request.set_form_data(form_params(options))
|
data/lib/sports_south/catalog.rb
CHANGED
@@ -4,7 +4,7 @@ module SportsSouth
|
|
4
4
|
API_URL = 'http://webservices.theshootingwarehouse.com/smart/inventory.asmx'
|
5
5
|
|
6
6
|
def self.all(options = {})
|
7
|
-
requires!(options, :username, :password
|
7
|
+
requires!(options, :username, :password)
|
8
8
|
|
9
9
|
http, request = get_http_and_request(API_URL, '/CategoryUpdate')
|
10
10
|
request.set_form_data(form_params(options))
|
data/lib/sports_south/ffl.rb
CHANGED
@@ -6,7 +6,7 @@ module SportsSouth
|
|
6
6
|
DATE_REGEX = /\A\d+\/\d+\/\d+/
|
7
7
|
|
8
8
|
def self.accepts_transfer(ffl, options = {})
|
9
|
-
requires!(options, :username, :password
|
9
|
+
requires!(options, :username, :password)
|
10
10
|
|
11
11
|
http, request = get_http_and_request(API_URL, '/FFLAcceptsTransfer')
|
12
12
|
|
data/lib/sports_south/image.rb
CHANGED
@@ -4,7 +4,7 @@ module SportsSouth
|
|
4
4
|
API_URL = 'http://webservices.theshootingwarehouse.com/smart/images.asmx'
|
5
5
|
|
6
6
|
def self.urls(item_number, options = {})
|
7
|
-
requires!(options, :username, :password
|
7
|
+
requires!(options, :username, :password)
|
8
8
|
|
9
9
|
http, request = get_http_and_request(API_URL, '/GetPictureURLs')
|
10
10
|
|
@@ -28,7 +28,7 @@ module SportsSouth
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def self.list_new_pictures(options = {})
|
31
|
-
requires!(options, :username, :password
|
31
|
+
requires!(options, :username, :password)
|
32
32
|
|
33
33
|
http, request = get_http_and_request(API_URL, '/ListNewPictures')
|
34
34
|
|
data/lib/sports_south/invoice.rb
CHANGED
@@ -7,7 +7,7 @@ module SportsSouth
|
|
7
7
|
attr_reader :po_number
|
8
8
|
|
9
9
|
def self.find_by_po_number(po_number, options = {})
|
10
|
-
requires!(options, :username, :password
|
10
|
+
requires!(options, :username, :password)
|
11
11
|
new(options.merge({po_number: po_number}))
|
12
12
|
end
|
13
13
|
|
data/lib/sports_south/order.rb
CHANGED
@@ -23,12 +23,12 @@ module SportsSouth
|
|
23
23
|
attr_reader :order_number
|
24
24
|
|
25
25
|
def self.find(order_number, options = {})
|
26
|
-
requires!(options, :username, :password
|
26
|
+
requires!(options, :username, :password)
|
27
27
|
new(options.merge({order_number: order_number}))
|
28
28
|
end
|
29
29
|
|
30
30
|
def initialize(options = {})
|
31
|
-
requires!(options, :username, :password
|
31
|
+
requires!(options, :username, :password)
|
32
32
|
@options = options
|
33
33
|
@order_number = options[:order_number]
|
34
34
|
end
|
data/lib/sports_south/user.rb
CHANGED
data/lib/sports_south/version.rb
CHANGED