lipseys 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65fa302edef75f4f75a00c9ba1d0a3fbfb2187a6
4
- data.tar.gz: 64a09a0f40c0251123160a4e9abada4d8a47caf6
3
+ metadata.gz: 5d93d4168c1ac6b1c0f5ca60f534794dc3b2b1b0
4
+ data.tar.gz: 9661e4f1621476a8e88e71e0121201391c3b166c
5
5
  SHA512:
6
- metadata.gz: 64f5a3ebeeaf27b7bbc175e2131cd45fb95a91dc42c4172c528683e29f0a29854729abdececc91cd0b1d1a5b54cfb76f1caa2823f8ba1a410021faaa4aa44cd5
7
- data.tar.gz: 6b14208f77c9536aa7f25fd9150bf44d19d78dcaa1218e913d57b3946a89972faf9b821825aa775a5f49ef109d7811c2c942d438a4b64e18d465750a9fd44f6e
6
+ metadata.gz: 71e2f3e26e1b789a69f10eeaf277f199ed7ce4ab48205159dd382106e7d75147e67500f90f105987c9226cc5f7b2db59429a93069e6a02e2fc526ceb5662c798
7
+ data.tar.gz: f72e879257ded8a7347c03ce929de849117a3a2ad551e646beed4ea22e5cf15625fcbe2d93c5a01611a2a9d406ef97af89be45dc0360d26969f46e9b89006333
@@ -4,13 +4,13 @@ module Lipseys
4
4
  API_URL = 'https://www.lipseys.com/API/catalog.ashx'
5
5
 
6
6
  def initialize(options = {})
7
- requires!(options, :email, :pass)
7
+ requires!(options, :username, :password)
8
8
 
9
9
  @options = options
10
10
  end
11
11
 
12
12
  def self.all(chunk_size = 15, options = {}, &block)
13
- requires!(options, :email, :pass)
13
+ requires!(options, :username, :password)
14
14
  new(options).all(chunk_size, &block)
15
15
  end
16
16
 
@@ -4,7 +4,7 @@ module Lipseys
4
4
  API_URL = 'https://www.lipseys.com/API/pricequantitycatalog.ashx'
5
5
 
6
6
  def initialize(options = {})
7
- requires!(options, :email, :pass)
7
+ requires!(options, :username, :password)
8
8
 
9
9
  @options = options
10
10
  end
@@ -29,8 +29,8 @@ module Lipseys
29
29
  class Invoice < SoapClient
30
30
 
31
31
  def initialize(options = {})
32
- requires!(options, :email, :password)
33
- @email = options[:email]
32
+ requires!(options, :username, :password)
33
+ @email = options[:username]
34
34
  @password = options[:password]
35
35
 
36
36
  @order_number = options[:order_number]
data/lib/lipseys/order.rb CHANGED
@@ -13,8 +13,8 @@ module Lipseys
13
13
  class Order < SoapClient
14
14
 
15
15
  def initialize(options = {})
16
- requires!(options, :email, :password, :quantity, :purchase_order)
17
- @email = options[:email]
16
+ requires!(options, :username, :password, :quantity, :purchase_order)
17
+ @email = options[:username]
18
18
  @password = options[:password]
19
19
  @quantity = options[:quantity]
20
20
 
data/lib/lipseys/user.rb CHANGED
@@ -4,7 +4,7 @@ module Lipseys
4
4
  API_URL = 'https://www.lipseys.com/API/validate.asmx?WSDL'
5
5
 
6
6
  def initialize(options = {})
7
- requires!(options, :email, :password)
7
+ requires!(options, :username, :password)
8
8
  @options = options
9
9
  end
10
10
 
@@ -13,7 +13,7 @@ module Lipseys
13
13
  end
14
14
 
15
15
  def validate
16
- body = { Credentials: { EmailAddress: @options[:email], Password: @options[:password] } }
16
+ body = { Credentials: { EmailAddress: @options[:username], Password: @options[:password] } }
17
17
  response = soap_client(API_URL).call(:validate_dealer, message: body)
18
18
 
19
19
  result = response.body[:validate_dealer_response][:validate_dealer_result]
@@ -1,3 +1,3 @@
1
1
  module Lipseys
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lipseys
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
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-09-25 00:00:00.000000000 Z
11
+ date: 2017-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri