lipseys 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/lipseys.rb +17 -0
- data/lib/lipseys/base.rb +47 -0
- data/lib/lipseys/catalog.rb +127 -0
- data/lib/lipseys/inventory.rb +81 -0
- data/lib/lipseys/invoice.rb +56 -0
- data/lib/lipseys/order.rb +64 -0
- data/lib/lipseys/soap_client.rb +13 -0
- data/lib/lipseys/version.rb +3 -0
- data/lipseys.gemspec +30 -0
- metadata +134 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b0e6d7c35268c59574518eea37ec94caedf6b103
|
4
|
+
data.tar.gz: 4eb87e7dc445f74eca9c80366e92e9b88ef3abe7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 31b27cb8d50003c6e6035d5417d49e250c55e031349615e05ee9f2af22aadeb9c796b0af023484fed18839aeb45c0ec5b97a867739452e4ea8dbb9ddeb8a4465
|
7
|
+
data.tar.gz: e3866541d78ed597bcf6263be502f0e7d4c8eef6436e62fa7e63bbadeaa277c293bd20dd01832f6e7ad62b0560f808ed84d115ea48321debe6b4d09d687414a5
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
lipseys
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.3.1
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Dale Campbell
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# Lipsey's
|
2
|
+
|
3
|
+
Ruby library for Lipsey's API.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'lipseys'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install lipseys
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
TODO: Write usage instructions here
|
24
|
+
|
25
|
+
## Development
|
26
|
+
|
27
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
28
|
+
|
29
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
30
|
+
|
31
|
+
## Contributing
|
32
|
+
|
33
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ammoready/lipseys.
|
34
|
+
|
35
|
+
|
36
|
+
## License
|
37
|
+
|
38
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
39
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "lipseys"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/lib/lipseys.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'lipseys/version'
|
2
|
+
|
3
|
+
require 'net/http'
|
4
|
+
require 'nokogiri'
|
5
|
+
require 'savon'
|
6
|
+
|
7
|
+
require 'lipseys/base'
|
8
|
+
require 'lipseys/soap_client'
|
9
|
+
|
10
|
+
require 'lipseys/catalog'
|
11
|
+
require 'lipseys/inventory'
|
12
|
+
require 'lipseys/invoice'
|
13
|
+
require 'lipseys/order'
|
14
|
+
|
15
|
+
module Lipseys
|
16
|
+
class NotAuthenticated < StandardError; end
|
17
|
+
end
|
data/lib/lipseys/base.rb
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
module Lipseys
|
2
|
+
class Base
|
3
|
+
|
4
|
+
protected
|
5
|
+
|
6
|
+
# Wrapper to `self.requires!` that can be used as an instance method.
|
7
|
+
def requires!(*args)
|
8
|
+
self.class.requires!(*args)
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.requires!(hash, *params)
|
12
|
+
params.each do |param|
|
13
|
+
if param.is_a?(Array)
|
14
|
+
raise ArgumentError.new("Missing required parameter: #{param.first}") unless hash.has_key?(param.first)
|
15
|
+
|
16
|
+
valid_options = param[1..-1]
|
17
|
+
raise ArgumentError.new("Parameter: #{param.first} must be one of: #{valid_options.join(', ')}") unless valid_options.include?(hash[param.first])
|
18
|
+
else
|
19
|
+
raise ArgumentError.new("Missing required parameter: #{param}") unless hash.has_key?(param)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def content_for(xml_doc, field)
|
25
|
+
node = xml_doc.css(field).first
|
26
|
+
node.nil? ? nil : node.content.strip
|
27
|
+
end
|
28
|
+
|
29
|
+
def get_response_xml(api_url, params)
|
30
|
+
uri = URI(api_url)
|
31
|
+
uri.query = URI.encode_www_form(params)
|
32
|
+
|
33
|
+
response = Net::HTTP.get_response(uri)
|
34
|
+
xml_doc = Nokogiri::XML(response.body)
|
35
|
+
|
36
|
+
raise Lipseys::NotAuthenticated if not_authenticated?(xml_doc)
|
37
|
+
|
38
|
+
xml_doc
|
39
|
+
end
|
40
|
+
|
41
|
+
def not_authenticated?(xml_doc)
|
42
|
+
msg = content_for(xml_doc, 'CatalogError')
|
43
|
+
msg =~ /Login failed/i
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,127 @@
|
|
1
|
+
module Lipseys
|
2
|
+
class Catalog < Base
|
3
|
+
|
4
|
+
API_URL = 'https://www.lipseys.com/API/catalog.ashx'
|
5
|
+
|
6
|
+
|
7
|
+
def initialize(options = {})
|
8
|
+
requires!(options, :email, :password)
|
9
|
+
@email = options[:email]
|
10
|
+
@password = options[:password]
|
11
|
+
end
|
12
|
+
|
13
|
+
|
14
|
+
def self.all(options = {})
|
15
|
+
new(options).all
|
16
|
+
end
|
17
|
+
|
18
|
+
def all
|
19
|
+
get_items
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.firearms(options = {})
|
23
|
+
new(options).firearms
|
24
|
+
end
|
25
|
+
|
26
|
+
def firearms
|
27
|
+
get_items('FIREARM')
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.nfa(options = {})
|
31
|
+
new(options).nfa
|
32
|
+
end
|
33
|
+
|
34
|
+
def nfa
|
35
|
+
get_items('NFA')
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.optics(options = {})
|
39
|
+
new(options).optics
|
40
|
+
end
|
41
|
+
|
42
|
+
def optics
|
43
|
+
get_items('OPTIC')
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.accessories(options = {})
|
47
|
+
new(options).accessories
|
48
|
+
end
|
49
|
+
|
50
|
+
def accessories
|
51
|
+
get_items('ACCESSORY')
|
52
|
+
end
|
53
|
+
|
54
|
+
private
|
55
|
+
|
56
|
+
def get_items(item_type = nil)
|
57
|
+
params = { email: @email, pass: @password }
|
58
|
+
params[:itemtype] = item_type unless item_type.nil?
|
59
|
+
|
60
|
+
xml_doc = get_response_xml(API_URL, params)
|
61
|
+
|
62
|
+
items = []
|
63
|
+
|
64
|
+
xml_doc.css('LipseysCatalog/Item').each do |item|
|
65
|
+
items << {
|
66
|
+
item_number: content_for(item, 'ItemNo'),
|
67
|
+
description_1: content_for(item, 'Desc1'),
|
68
|
+
description_2: content_for(item, 'Desc2'),
|
69
|
+
upc: content_for(item, 'UPC'),
|
70
|
+
manufacturer_model_number: content_for(item, 'MFGModelNo'),
|
71
|
+
msrp: content_for(item, 'MSRP'),
|
72
|
+
model: content_for(item, 'Model'),
|
73
|
+
caliber: content_for(item, 'Caliber'),
|
74
|
+
manufacturer: content_for(item, 'MFG'),
|
75
|
+
type: content_for(item, 'Type'),
|
76
|
+
action: content_for(item, 'Action'),
|
77
|
+
barrel: content_for(item, 'Barrel'),
|
78
|
+
capacity: content_for(item, 'Capacity'),
|
79
|
+
finish: content_for(item, 'Finish'),
|
80
|
+
length: content_for(item, 'Length'),
|
81
|
+
receiver: content_for(item, 'Receiver'),
|
82
|
+
safety: content_for(item, 'Safety'),
|
83
|
+
sights: content_for(item, 'Sights'),
|
84
|
+
stock_frame_grips: content_for(item, 'StockFrameGrips'),
|
85
|
+
magazine: content_for(item, 'Magazine'),
|
86
|
+
weight: content_for(item, 'Weight'),
|
87
|
+
image: "http://www.lipseys.net/images/#{content_for(item, 'Image')}",
|
88
|
+
chamber: content_for(item, 'Chamber'),
|
89
|
+
drilled_tapped: (content_for(item, 'DrilledTapped') == 'Y'),
|
90
|
+
rate_of_twist: content_for(item, 'RateOfTwist'),
|
91
|
+
item_type: content_for(item, 'ItemType'),
|
92
|
+
feature_1: content_for(item, 'Feature1'),
|
93
|
+
feature_2: content_for(item, 'Feature2'),
|
94
|
+
feature_3: content_for(item, 'Feature3'),
|
95
|
+
shipping_weight: content_for(item, 'ShippingWeight'),
|
96
|
+
bound_book: {
|
97
|
+
model: content_for(item, 'BoundBookModel'),
|
98
|
+
type: content_for(item, 'BoundBookType'),
|
99
|
+
manufacturer: content_for(item, 'BoundBookMFG'),
|
100
|
+
},
|
101
|
+
nfa: {
|
102
|
+
thread_pattern: content_for(item, 'NFAThreadPattern'),
|
103
|
+
attach_method: content_for(item, 'NFAAttachMethod'),
|
104
|
+
baffle: content_for(item, 'NFABaffle'),
|
105
|
+
can_disassemble: (content_for(item, 'NFACanDisassemble') == 'Y'),
|
106
|
+
construction: content_for(item, 'NFAConstruction'),
|
107
|
+
db_reduction: content_for(item, 'NFAdbReduction'),
|
108
|
+
diameter: content_for(item, 'NFADiameter'),
|
109
|
+
form_3_caliber: content_for(item, 'NFAForm3Caliber'),
|
110
|
+
},
|
111
|
+
optic: {
|
112
|
+
magnification: content_for(item, 'Magnification'),
|
113
|
+
maintube: content_for(item, 'Maintube'),
|
114
|
+
objective: content_for(item, 'Objective'),
|
115
|
+
adjustable_objective: (content_for(item, 'AdjustableObjective') == 'Y'),
|
116
|
+
optic_adjustments: content_for(item, 'OpticAdjustments'),
|
117
|
+
reticle: content_for(item, 'Reticle'),
|
118
|
+
illuminated_reticle: (content_for(item, 'IlluminatedReticle') == 'Y'),
|
119
|
+
}
|
120
|
+
}
|
121
|
+
end
|
122
|
+
|
123
|
+
items
|
124
|
+
end
|
125
|
+
|
126
|
+
end
|
127
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
module Lipseys
|
2
|
+
class Inventory < Base
|
3
|
+
|
4
|
+
API_URL = 'https://www.lipseys.com/API/pricequantitycatalog.ashx'
|
5
|
+
|
6
|
+
|
7
|
+
def initialize(options = {})
|
8
|
+
requires!(options, :email, :password)
|
9
|
+
@email = options[:email]
|
10
|
+
@password = options[:password]
|
11
|
+
end
|
12
|
+
|
13
|
+
|
14
|
+
def self.all(options = {})
|
15
|
+
new(options).all
|
16
|
+
end
|
17
|
+
|
18
|
+
def all
|
19
|
+
get_items
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.firearms(options = {})
|
23
|
+
new(options).firearms
|
24
|
+
end
|
25
|
+
|
26
|
+
def firearms
|
27
|
+
get_items('FIREARM')
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.nfa(options = {})
|
31
|
+
new(options).nfa
|
32
|
+
end
|
33
|
+
|
34
|
+
def nfa
|
35
|
+
get_items('NFA')
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.optics(options = {})
|
39
|
+
new(options).optics
|
40
|
+
end
|
41
|
+
|
42
|
+
def optics
|
43
|
+
get_items('OPTIC')
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.accessories(options = {})
|
47
|
+
new(options).accessories
|
48
|
+
end
|
49
|
+
|
50
|
+
def accessories
|
51
|
+
get_items('ACCESSORY')
|
52
|
+
end
|
53
|
+
|
54
|
+
private
|
55
|
+
|
56
|
+
def get_items(item_type = nil)
|
57
|
+
params = { email: @email, pass: @password }
|
58
|
+
params[:itemtype] = item_type unless item_type.nil?
|
59
|
+
|
60
|
+
xml_doc = get_response_xml(API_URL, params)
|
61
|
+
|
62
|
+
items = []
|
63
|
+
|
64
|
+
xml_doc.css('LipseysInventoryPricing/Item').each do |item|
|
65
|
+
items << {
|
66
|
+
item_number: content_for(item, 'ItemNo'),
|
67
|
+
upc: content_for(item, 'UPC'),
|
68
|
+
manufacturer_model_number: content_for(item, 'MFGModelNo'),
|
69
|
+
quantity_on_hand: content_for(item, 'QtyOnHand'),
|
70
|
+
allocation: (content_for(item, 'Allocation') == 'Y'),
|
71
|
+
price: content_for(item, 'Price'),
|
72
|
+
on_sale: (content_for(item, 'OnSale') == 'Y'),
|
73
|
+
retail_map: content_for(item, 'RetailMAP')
|
74
|
+
}
|
75
|
+
end
|
76
|
+
|
77
|
+
items
|
78
|
+
end
|
79
|
+
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
module Lipseys
|
2
|
+
class Invoice < SoapClient
|
3
|
+
|
4
|
+
def initialize(options = {})
|
5
|
+
requires!(options, :email, :password)
|
6
|
+
@email = options[:email]
|
7
|
+
@password = options[:password]
|
8
|
+
|
9
|
+
@order_number = options[:order_number]
|
10
|
+
@purchase_order = options[:purchase_order]
|
11
|
+
raise ArgumentError.new("Either :order_number or :purchase_order is required") if @order_number.nil? && @purchase_order.nil?
|
12
|
+
end
|
13
|
+
|
14
|
+
|
15
|
+
def self.all(*args)
|
16
|
+
new(*args).all
|
17
|
+
end
|
18
|
+
|
19
|
+
def all
|
20
|
+
response = soap_client.call(:get_invoices, message: build_inquiry_data)
|
21
|
+
|
22
|
+
raise Lipseys::NotAuthenticated if not_authenticated?(response)
|
23
|
+
|
24
|
+
invoice_result = response.body[:get_invoices_response][:get_invoices_result]
|
25
|
+
|
26
|
+
{
|
27
|
+
invoices_found: Integer(invoice_result[:invoices_found]),
|
28
|
+
description: invoice_result[:return_desc],
|
29
|
+
|
30
|
+
invoices: invoice_result[:invoices]
|
31
|
+
}
|
32
|
+
rescue Savon::Error => e
|
33
|
+
{ success: false, description: e.to_s }
|
34
|
+
end
|
35
|
+
|
36
|
+
private
|
37
|
+
|
38
|
+
def build_inquiry_data
|
39
|
+
inquiry_data = {
|
40
|
+
EmailAddress: @email,
|
41
|
+
Password: @password
|
42
|
+
}
|
43
|
+
|
44
|
+
inquiry_data[:OrderNo] = @order_number unless @order_number.nil?
|
45
|
+
inquiry_data[:PONumber] = @purchase_order unless @purchase_order.nil?
|
46
|
+
|
47
|
+
{ InquiryData: inquiry_data }
|
48
|
+
end
|
49
|
+
|
50
|
+
def not_authenticated?(response)
|
51
|
+
invoice_result = response.body[:get_invoices_response][:get_invoices_result]
|
52
|
+
invoice_result[:return_desc] =~ /Credentials Not Valid/i
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
module Lipseys
|
2
|
+
class Order < SoapClient
|
3
|
+
|
4
|
+
def initialize(options = {})
|
5
|
+
requires!(options, :email, :password, :quantity, :purchase_order)
|
6
|
+
@email = options[:email]
|
7
|
+
@password = options[:password]
|
8
|
+
@quantity = options[:quantity]
|
9
|
+
|
10
|
+
@notify_by_email = (options[:notify_by_email] == true ? 'Y' : nil)
|
11
|
+
@purchase_order = options[:purchase_order]
|
12
|
+
@note = options[:note]
|
13
|
+
|
14
|
+
@item_number_or_upc = options[:item_number] || options[:upc]
|
15
|
+
raise ArgumentError.new("Either :item_number or :upc must be given") if @item_number_or_upc.nil?
|
16
|
+
end
|
17
|
+
|
18
|
+
|
19
|
+
def self.submit(*args)
|
20
|
+
new(*args).submit
|
21
|
+
end
|
22
|
+
|
23
|
+
def submit
|
24
|
+
response = soap_client.call(:submit_order, message: build_order_data)
|
25
|
+
|
26
|
+
raise Lipseys::NotAuthenticated if not_authenticated?(response)
|
27
|
+
|
28
|
+
order_result = response.body[:submit_order_response][:submit_order_result]
|
29
|
+
|
30
|
+
{
|
31
|
+
order_number: order_result[:order_no],
|
32
|
+
new_order: (order_result[:new_order] == 'Y'),
|
33
|
+
success: (order_result[:success] == 'Y'),
|
34
|
+
description: order_result[:return_desc],
|
35
|
+
quantity_received: Integer(order_result[:qty_received]),
|
36
|
+
}
|
37
|
+
rescue Savon::Error => e
|
38
|
+
{ success: false, description: e.to_s }
|
39
|
+
end
|
40
|
+
|
41
|
+
private
|
42
|
+
|
43
|
+
def build_order_data
|
44
|
+
order_data = {
|
45
|
+
EmailAddress: @email,
|
46
|
+
Password: @password,
|
47
|
+
LipseysItemNumberOrUPC: @item_number_or_upc,
|
48
|
+
Qty: @quantity
|
49
|
+
}
|
50
|
+
|
51
|
+
order_data[:NotifyByEmail] = @notify_by_email unless @notify_by_email.nil?
|
52
|
+
order_data[:PONumber] = @purchase_order unless @purchase_order.nil?
|
53
|
+
order_data[:Note] = @note unless @note.nil?
|
54
|
+
|
55
|
+
{ OrderData: order_data }
|
56
|
+
end
|
57
|
+
|
58
|
+
def not_authenticated?(response)
|
59
|
+
order_result = response.body[:submit_order_response][:submit_order_result]
|
60
|
+
order_result[:success] == 'N' && order_result[:return_desc] =~ /Credentials Not Valid/i
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
end
|
data/lipseys.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'lipseys/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "lipseys"
|
8
|
+
spec.version = Lipseys::VERSION
|
9
|
+
spec.authors = ["Dale Campbell"]
|
10
|
+
spec.email = ["oshuma@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Ruby library for Lipsey's API.}
|
13
|
+
spec.description = %q{}
|
14
|
+
spec.homepage = ""
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_dependency "nokogiri", "~> 1.6"
|
25
|
+
spec.add_dependency "savon", "~> 2.11.1"
|
26
|
+
|
27
|
+
spec.add_development_dependency "bundler", "~> 1.13"
|
28
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
29
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,134 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lipseys
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dale Campbell
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-11-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: nokogiri
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: savon
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.11.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.11.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.13'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.13'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
description: ''
|
84
|
+
email:
|
85
|
+
- oshuma@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- ".rspec"
|
92
|
+
- ".ruby-gemset"
|
93
|
+
- ".ruby-version"
|
94
|
+
- ".travis.yml"
|
95
|
+
- Gemfile
|
96
|
+
- LICENSE.txt
|
97
|
+
- README.md
|
98
|
+
- Rakefile
|
99
|
+
- bin/console
|
100
|
+
- bin/setup
|
101
|
+
- lib/lipseys.rb
|
102
|
+
- lib/lipseys/base.rb
|
103
|
+
- lib/lipseys/catalog.rb
|
104
|
+
- lib/lipseys/inventory.rb
|
105
|
+
- lib/lipseys/invoice.rb
|
106
|
+
- lib/lipseys/order.rb
|
107
|
+
- lib/lipseys/soap_client.rb
|
108
|
+
- lib/lipseys/version.rb
|
109
|
+
- lipseys.gemspec
|
110
|
+
homepage: ''
|
111
|
+
licenses:
|
112
|
+
- MIT
|
113
|
+
metadata: {}
|
114
|
+
post_install_message:
|
115
|
+
rdoc_options: []
|
116
|
+
require_paths:
|
117
|
+
- lib
|
118
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - ">="
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '0'
|
128
|
+
requirements: []
|
129
|
+
rubyforge_project:
|
130
|
+
rubygems_version: 2.5.1
|
131
|
+
signing_key:
|
132
|
+
specification_version: 4
|
133
|
+
summary: Ruby library for Lipsey's API.
|
134
|
+
test_files: []
|