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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23c027161f60fa7596d3a3df99943726d7e2e16e
4
- data.tar.gz: 936a37c2d5ecdbc2b128891e87240fdbe633a9fa
3
+ metadata.gz: ed2f3a2e646f6849503c9090cd5699e0156ff250
4
+ data.tar.gz: c64f1f2b7e3cc2f239364d608b143a0646f70efb
5
5
  SHA512:
6
- metadata.gz: 2e08ec3391ee6e89cbe0c48c93f6e82397e9d759ed604a74cd2d0bb46a6c49bccd677584d7d857ea407bdf77a80900cc5390930eb57058166f5e7cff7033d937
7
- data.tar.gz: c39055ef943caaea1a79ea547f9f86b4cdf25649fe7cfd3338e589aa2d25eb47c207042e13ec89d82725542f81ce07d13ab8c744e8b6a98f0045d2f070b548f5
6
+ metadata.gz: c7eca833567c6c25ae3a4557f9ffbfa7932e1bfbaef31174cfb5db3f6d5573ab4f60fb755700c1e0cc00d3455575b11185ba25d3b2d0e93c91c06586c44d91d2
7
+ data.tar.gz: ededb2f69ebcc2c7c9883b9dea95d000e036920488a627387c37e759ac3b427f8d967ba4533aa0a110fbdc02fe09c15c35fac78d8d16cf1058ea01a4ed22fba5
@@ -36,8 +36,8 @@ module SportsSouth
36
36
  {
37
37
  UserName: options[:username],
38
38
  Password: options[:password],
39
- CustomerNumber: options[:customer_number],
40
- Source: options[: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
@@ -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, :source, :customer_number)
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))
@@ -26,8 +26,6 @@ module SportsSouth
26
26
  requires!(options, :username, :password)
27
27
 
28
28
  @options = options
29
- @options[:customer_number] ||= options[:username]
30
- @options[:source] ||= 'ammor'
31
29
  end
32
30
 
33
31
  def self.all(chunk_size = 15, options = {}, &block)
@@ -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, :source, :customer_number)
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))
@@ -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, :source, :customer_number)
9
+ requires!(options, :username, :password)
10
10
 
11
11
  http, request = get_http_and_request(API_URL, '/FFLAcceptsTransfer')
12
12
 
@@ -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, :source, :customer_number)
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, :source, :customer_number)
31
+ requires!(options, :username, :password)
32
32
 
33
33
  http, request = get_http_and_request(API_URL, '/ListNewPictures')
34
34
 
@@ -7,8 +7,6 @@ module SportsSouth
7
7
  requires!(options, :username, :password)
8
8
 
9
9
  @options = options
10
- @options[:customer_number] ||= options[:username]
11
- @options[:source] ||= 'ammor'
12
10
  end
13
11
 
14
12
  def self.all(chunk_size = 15, options = {}, &block)
@@ -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, :source, :customer_number)
10
+ requires!(options, :username, :password)
11
11
  new(options.merge({po_number: po_number}))
12
12
  end
13
13
 
@@ -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, :source, :customer_number)
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, :source, :customer_number)
31
+ requires!(options, :username, :password)
32
32
  @options = options
33
33
  @order_number = options[:order_number]
34
34
  end
@@ -6,7 +6,8 @@ module SportsSouth
6
6
  attr_reader :response_body
7
7
 
8
8
  def initialize(options = {})
9
- requires!(options, :username, :password, :source, :customer_number)
9
+ requires!(options, :username, :password)
10
+
10
11
  @options = options
11
12
  end
12
13
 
@@ -1,3 +1,3 @@
1
1
  module SportsSouth
2
- VERSION = '2.0.2'
2
+ VERSION = '2.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sports_south
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Campbell