lightspeed_restaurant 0.1.0
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 +7 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/.rubocop.yml +11 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +4 -0
- data/Gemfile +2 -0
- data/LICENSE.txt +21 -0
- data/README.md +93 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/circle.yml +9 -0
- data/lib/lightspeed_restaurant.rb +37 -0
- data/lib/lightspeed_restaurant/base.rb +21 -0
- data/lib/lightspeed_restaurant/customer.rb +43 -0
- data/lib/lightspeed_restaurant/errors/api_error.rb +4 -0
- data/lib/lightspeed_restaurant/errors/authentication_error.rb +4 -0
- data/lib/lightspeed_restaurant/errors/invalid_request_error.rb +4 -0
- data/lib/lightspeed_restaurant/errors/lightspeed_restaurant_error.rb +24 -0
- data/lib/lightspeed_restaurant/errors/not_found_error.rb +4 -0
- data/lib/lightspeed_restaurant/errors/unauthorized_error.rb +4 -0
- data/lib/lightspeed_restaurant/operations/create.rb +10 -0
- data/lib/lightspeed_restaurant/operations/destroy.rb +10 -0
- data/lib/lightspeed_restaurant/operations/find.rb +10 -0
- data/lib/lightspeed_restaurant/operations/list.rb +19 -0
- data/lib/lightspeed_restaurant/operations/update.rb +11 -0
- data/lib/lightspeed_restaurant/request.rb +68 -0
- data/lib/lightspeed_restaurant/version.rb +3 -0
- data/lightspeed_restaurant.gemspec +34 -0
- metadata +202 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 422a768481a32c187999aa2a4f873cd16e4ffe02
|
|
4
|
+
data.tar.gz: d5dfa8bfbbda59f83dd3cb930dbcb593829ec560
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 5ddeeb9454d88c8eeb4bd868693d7ccbd6f17ea5d995297603c1ea07f59f792590f9f6a1843540d8eb0092f9196f78bb295407c17821796b09b2aaa7d5306cec
|
|
7
|
+
data.tar.gz: b8563560c51153f7d478c21602af44433451decd0aaf53f76b80f418b5e9ed078094056619476d916df29df97e916e759291d95e389de6c5a1206d33783e98ba
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.ruby-gemset
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
lightspeed-restaurant-gem
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ruby-2.2.3
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015 Olivier Buffon
|
|
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,93 @@
|
|
|
1
|
+
[](https://circleci.com/gh/chronogolf/lightspeed_restaurant) [](https://gemnasium.com/chronogolf/lightspeed_restaurant) [](https://codeclimate.com/github/chronogolf/lightspeed_restaurant)
|
|
2
|
+
|
|
3
|
+
# Lightspeed Restaurant API Client
|
|
4
|
+
|
|
5
|
+
[Lightspeed Restaurant API Client](https://github.com/chronogolf/lightspeed_restaurant) is a gem for interacting with [Lightspeed Restaurant](https://www.lightspeedhq.com/products/restaurant/) API.
|
|
6
|
+
Lightspeed Restaurant is point of sale that helps bars, restaurants, and cafés deliver a better customer experience and run a more profitable business.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
Add this line to your application's Gemfile:
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
gem 'lightspeed_restaurant'
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
And then execute:
|
|
17
|
+
|
|
18
|
+
$ bundle
|
|
19
|
+
|
|
20
|
+
Or install it yourself as:
|
|
21
|
+
|
|
22
|
+
$ gem install lightspeed_restaurant
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
### Basic Usage
|
|
27
|
+
|
|
28
|
+
First, set your api token:
|
|
29
|
+
```ruby
|
|
30
|
+
LightspeedRestaurant.api_token = "YOUR_API_TOKEN_HERE"
|
|
31
|
+
```
|
|
32
|
+
Next, make requests using the resource class you need:
|
|
33
|
+
```ruby
|
|
34
|
+
customers = LightspeedRestaurant::Customer.all
|
|
35
|
+
customer = customers.first
|
|
36
|
+
customer.firstName = 'Micheal'
|
|
37
|
+
customer.save
|
|
38
|
+
```
|
|
39
|
+
That's it!
|
|
40
|
+
|
|
41
|
+
### Available operations
|
|
42
|
+
|
|
43
|
+
#### List
|
|
44
|
+
|
|
45
|
+
```ruby
|
|
46
|
+
LightspeedRestaurant::Customer.all
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
#### Find
|
|
50
|
+
```ruby
|
|
51
|
+
LightspeedRestaurant::Customer.find(123)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
#### Create
|
|
55
|
+
```ruby
|
|
56
|
+
LightspeedRestaurant::Customer.create(...firstName: 'Tom', email: 'tom@brady.com'...)
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
#### Update
|
|
60
|
+
```ruby
|
|
61
|
+
customer = LightspeedRestaurant::Customer.find(123)
|
|
62
|
+
customer.firstName = 'Micheal'
|
|
63
|
+
customer.save
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
#### Destroy
|
|
67
|
+
```ruby
|
|
68
|
+
customer = LightspeedRestaurant::Customer.find(123)
|
|
69
|
+
customer.desroy
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Contributing
|
|
73
|
+
|
|
74
|
+
Pull requests are welcome on GitHub at https://github.com/chronogolf/lightspeed_restaurant.
|
|
75
|
+
|
|
76
|
+
## About Us
|
|
77
|
+
[![Chronogolf][crest]](http://www.chronogolf.com)
|
|
78
|
+
|
|
79
|
+
[Chronogolf](http://www.chronogolf.com)'s mission is to facilitate the interactions between golf managers and golf players. We are building software that allows golf directors to better manage their course, together with a marketplace to find & book games in real-time. We are constantly innovating and trying to challenge the status quo.
|
|
80
|
+
|
|
81
|
+
Find more informations at http://www.chronogolf.com/solutions
|
|
82
|
+
|
|
83
|
+
## Future Improvements
|
|
84
|
+
- Improve update operation to handle update by passing a hash
|
|
85
|
+
- Improve destroy operation to handle destroy by passing an ID (or an array of IDs)
|
|
86
|
+
- Add missing resources (Company, Reservation, Floor, Table...)
|
|
87
|
+
- Improve test coverage
|
|
88
|
+
|
|
89
|
+
## License
|
|
90
|
+
|
|
91
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
|
92
|
+
|
|
93
|
+
[crest]: https://d2gn4xht817m0g.cloudfront.net/p/product_screenshots/images/original/000/614/797/614797-f3db0c404af118f18f765c51e9be9a44dda57875.png?1447183798
|
data/Rakefile
ADDED
data/bin/console
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require 'bundler/setup'
|
|
4
|
+
require 'lightspeed_restaurant'
|
|
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/circle.yml
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Lightspeed Restaurant Ruby Bindings
|
|
2
|
+
# API spec at http://staging-exact-integration.posios.com/PosServer/swagger-ui.html
|
|
3
|
+
|
|
4
|
+
require 'excon'
|
|
5
|
+
require 'json'
|
|
6
|
+
|
|
7
|
+
require 'lightspeed_restaurant/version'
|
|
8
|
+
require 'lightspeed_restaurant/request'
|
|
9
|
+
require 'lightspeed_restaurant/customer'
|
|
10
|
+
|
|
11
|
+
module LightspeedRestaurant
|
|
12
|
+
class << self
|
|
13
|
+
attr_accessor :api_token, :base_url
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def self.get(path, body = {}, query = {})
|
|
17
|
+
request(path, body, query).perform(method: :get)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def self.post(path, body = {}, query = {})
|
|
21
|
+
request(path, body, query).perform(method: :post)
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def self.put(path, body = {}, query = {})
|
|
25
|
+
request(path, body, query).perform(method: :put)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def self.delete(path, body = {}, query = {})
|
|
29
|
+
request(path, body, query).perform(method: :delete)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
private
|
|
33
|
+
|
|
34
|
+
def self.request(path, body, query)
|
|
35
|
+
LightspeedRestaurant::Request.new(@base_url, path, @api_token, body, query)
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module LightspeedRestaurant
|
|
2
|
+
class Base
|
|
3
|
+
def initialize(data = {})
|
|
4
|
+
self.class.attributes.each do |attribute|
|
|
5
|
+
data = data.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
6
|
+
value = ['N/A', ''].include?(data[attribute]) ? nil : data[attribute]
|
|
7
|
+
send("#{attribute}=", value)
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def to_hash
|
|
12
|
+
self.class.attributes.each_with_object({}) do |attribute, h|
|
|
13
|
+
h[attribute] = instance_variable_get("@#{attribute}")
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def to_json
|
|
18
|
+
to_hash.to_json
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
require 'lightspeed_restaurant/base'
|
|
2
|
+
require 'lightspeed_restaurant/operations/list'
|
|
3
|
+
require 'lightspeed_restaurant/operations/find'
|
|
4
|
+
require 'lightspeed_restaurant/operations/create'
|
|
5
|
+
require 'lightspeed_restaurant/operations/update'
|
|
6
|
+
|
|
7
|
+
module LightspeedRestaurant
|
|
8
|
+
class Customer < LightspeedRestaurant::Base
|
|
9
|
+
include LightspeedRestaurant::Operations::Update
|
|
10
|
+
extend LightspeedRestaurant::Operations::Create
|
|
11
|
+
extend LightspeedRestaurant::Operations::Find
|
|
12
|
+
extend LightspeedRestaurant::Operations::List
|
|
13
|
+
|
|
14
|
+
def self.attributes
|
|
15
|
+
[:id,
|
|
16
|
+
:city,
|
|
17
|
+
:country,
|
|
18
|
+
:deliveryCity,
|
|
19
|
+
:deliveryCountry,
|
|
20
|
+
:deliveryStreet,
|
|
21
|
+
:deliveryStreetNumber,
|
|
22
|
+
:deliveryZip,
|
|
23
|
+
:email,
|
|
24
|
+
:firstName,
|
|
25
|
+
:lastName,
|
|
26
|
+
:street,
|
|
27
|
+
:streetNumber,
|
|
28
|
+
:telephone,
|
|
29
|
+
:zip,
|
|
30
|
+
:links].freeze
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
attr_accessor(*attributes)
|
|
34
|
+
|
|
35
|
+
def self.resource_name
|
|
36
|
+
'Customer'
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def self.resource_path
|
|
40
|
+
"/rest/core/#{resource_name.downcase}"
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module LightspeedRestaurant
|
|
2
|
+
class LightspeedRestaurantError < StandardError
|
|
3
|
+
attr_reader :message
|
|
4
|
+
attr_reader :http_status
|
|
5
|
+
attr_reader :http_body
|
|
6
|
+
attr_reader :http_headers
|
|
7
|
+
attr_reader :request_id
|
|
8
|
+
attr_reader :json_body
|
|
9
|
+
|
|
10
|
+
def initialize(message = nil, http_status = nil, http_body = nil, http_headers = nil)
|
|
11
|
+
@message = message
|
|
12
|
+
@http_status = http_status
|
|
13
|
+
@http_body = http_body
|
|
14
|
+
@http_headers = http_headers || {}
|
|
15
|
+
@request_id = @http_headers[:request_id]
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def to_s
|
|
19
|
+
status_string = @http_status.nil? ? '' : "(Status #{@http_status}) "
|
|
20
|
+
id_string = @request_id.nil? ? '' : "(Request #{@request_id}) "
|
|
21
|
+
"#{status_string}#{id_string}#{@message}"
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module LightspeedRestaurant
|
|
2
|
+
module Operations
|
|
3
|
+
module List
|
|
4
|
+
def list(params = {})
|
|
5
|
+
response = JSON.parse(LightspeedRestaurant.get(resource_path, {}, params))
|
|
6
|
+
instantiate(response['results'])
|
|
7
|
+
end
|
|
8
|
+
alias_method :all, :list
|
|
9
|
+
|
|
10
|
+
private
|
|
11
|
+
|
|
12
|
+
def instantiate(records)
|
|
13
|
+
records.map do |record|
|
|
14
|
+
new(record)
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
require 'lightspeed_restaurant/errors/lightspeed_restaurant_error'
|
|
2
|
+
require 'lightspeed_restaurant/errors/api_error'
|
|
3
|
+
require 'lightspeed_restaurant/errors/authentication_error'
|
|
4
|
+
require 'lightspeed_restaurant/errors/invalid_request_error'
|
|
5
|
+
require 'lightspeed_restaurant/errors/not_found_error'
|
|
6
|
+
require 'uri'
|
|
7
|
+
|
|
8
|
+
module LightspeedRestaurant
|
|
9
|
+
class Request
|
|
10
|
+
def initialize(base_url, path, token, body = {}, query = {})
|
|
11
|
+
@base_url = base_url || 'http://staging-exact-integration.posios.com'
|
|
12
|
+
@headers = { 'Content-Type' => 'application/json', 'X-Auth-Token' => token }
|
|
13
|
+
@body = body.to_json
|
|
14
|
+
@query = query
|
|
15
|
+
@path = '/PosServer' + path
|
|
16
|
+
@connection = Excon.new(@base_url)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def perform(**args)
|
|
20
|
+
response = @connection.request(args.merge(path: @path, headers: @headers, body: @body, query: @query))
|
|
21
|
+
if [200, 201].include?(response.status)
|
|
22
|
+
response.body
|
|
23
|
+
else
|
|
24
|
+
handle_error(response)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
private
|
|
29
|
+
|
|
30
|
+
def handle_error(response)
|
|
31
|
+
case response.status
|
|
32
|
+
when 400
|
|
33
|
+
fail invalid_request_error(response)
|
|
34
|
+
when 401
|
|
35
|
+
fail authentication_error(response)
|
|
36
|
+
when 403
|
|
37
|
+
fail unauthorized_error(response)
|
|
38
|
+
when 404
|
|
39
|
+
fail not_found_error(response)
|
|
40
|
+
else
|
|
41
|
+
fail response_object_error(response)
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def unauthorized_error(response)
|
|
46
|
+
UnauthorizedError.new('Unauthorized resource', response.status, response.body, response.headers)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
def not_found_error(response)
|
|
50
|
+
NotFoundError.new('Resource not found', response.status, response.body, response.headers)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def response_object_error(response)
|
|
54
|
+
APIError.new("Invalid response object from API: #{JSON.parse(response.body)['description']}",
|
|
55
|
+
response.status, response.body, response.headers)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
def invalid_request_error(response)
|
|
59
|
+
InvalidRequestError.new(JSON.parse(response.body)['description'],
|
|
60
|
+
response.status, response.body, response.headers)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
def authentication_error(response)
|
|
64
|
+
AuthenticationError.new(JSON.parse(response.body)['description'],
|
|
65
|
+
response.status, response.body, response.headers)
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'lightspeed_restaurant/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = 'lightspeed_restaurant'
|
|
8
|
+
spec.version = LightspeedRestaurant::VERSION
|
|
9
|
+
spec.authors = ['Olivier Buffon']
|
|
10
|
+
spec.email = ['olivier@chronogolf.ca']
|
|
11
|
+
|
|
12
|
+
spec.summary = 'Ruby bindings for the Lightspeed Restaurant API'
|
|
13
|
+
spec.description = 'Lightspeed Restaurant is point of sale that helps bars, restaurants, '\
|
|
14
|
+
'and cafés deliver a better customer experience and run a more profitable business. '\
|
|
15
|
+
'See https://www.lightspeedhq.com/products/restaurant/ for details'
|
|
16
|
+
spec.homepage = 'http://staging-exact-integration.posios.com/PosServer/swagger-ui.html'
|
|
17
|
+
spec.license = 'MIT'
|
|
18
|
+
|
|
19
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
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('excon', '~> 0.45.4')
|
|
25
|
+
spec.add_dependency('json', '~> 1.8.3')
|
|
26
|
+
|
|
27
|
+
spec.add_development_dependency('rake')
|
|
28
|
+
spec.add_development_dependency('rspec')
|
|
29
|
+
spec.add_development_dependency('pry')
|
|
30
|
+
spec.add_development_dependency('rubocop')
|
|
31
|
+
spec.add_development_dependency('rspec_junit_formatter')
|
|
32
|
+
spec.add_development_dependency('webmock')
|
|
33
|
+
spec.add_development_dependency('vcr')
|
|
34
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: lightspeed_restaurant
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Olivier Buffon
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2015-12-04 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: excon
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 0.45.4
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 0.45.4
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: json
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 1.8.3
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: 1.8.3
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: rake
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: rspec
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ">="
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: pry
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - ">="
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - ">="
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: rubocop
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - ">="
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '0'
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - ">="
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '0'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: rspec_junit_formatter
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - ">="
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - ">="
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: webmock
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - ">="
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: '0'
|
|
118
|
+
type: :development
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
requirements:
|
|
122
|
+
- - ">="
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: '0'
|
|
125
|
+
- !ruby/object:Gem::Dependency
|
|
126
|
+
name: vcr
|
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - ">="
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: '0'
|
|
132
|
+
type: :development
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
- - ">="
|
|
137
|
+
- !ruby/object:Gem::Version
|
|
138
|
+
version: '0'
|
|
139
|
+
description: Lightspeed Restaurant is point of sale that helps bars, restaurants,
|
|
140
|
+
and cafés deliver a better customer experience and run a more profitable business.
|
|
141
|
+
See https://www.lightspeedhq.com/products/restaurant/ for details
|
|
142
|
+
email:
|
|
143
|
+
- olivier@chronogolf.ca
|
|
144
|
+
executables: []
|
|
145
|
+
extensions: []
|
|
146
|
+
extra_rdoc_files: []
|
|
147
|
+
files:
|
|
148
|
+
- ".gitignore"
|
|
149
|
+
- ".rspec"
|
|
150
|
+
- ".rubocop.yml"
|
|
151
|
+
- ".ruby-gemset"
|
|
152
|
+
- ".ruby-version"
|
|
153
|
+
- ".travis.yml"
|
|
154
|
+
- Gemfile
|
|
155
|
+
- LICENSE.txt
|
|
156
|
+
- README.md
|
|
157
|
+
- Rakefile
|
|
158
|
+
- bin/console
|
|
159
|
+
- bin/setup
|
|
160
|
+
- circle.yml
|
|
161
|
+
- lib/lightspeed_restaurant.rb
|
|
162
|
+
- lib/lightspeed_restaurant/base.rb
|
|
163
|
+
- lib/lightspeed_restaurant/customer.rb
|
|
164
|
+
- lib/lightspeed_restaurant/errors/api_error.rb
|
|
165
|
+
- lib/lightspeed_restaurant/errors/authentication_error.rb
|
|
166
|
+
- lib/lightspeed_restaurant/errors/invalid_request_error.rb
|
|
167
|
+
- lib/lightspeed_restaurant/errors/lightspeed_restaurant_error.rb
|
|
168
|
+
- lib/lightspeed_restaurant/errors/not_found_error.rb
|
|
169
|
+
- lib/lightspeed_restaurant/errors/unauthorized_error.rb
|
|
170
|
+
- lib/lightspeed_restaurant/operations/create.rb
|
|
171
|
+
- lib/lightspeed_restaurant/operations/destroy.rb
|
|
172
|
+
- lib/lightspeed_restaurant/operations/find.rb
|
|
173
|
+
- lib/lightspeed_restaurant/operations/list.rb
|
|
174
|
+
- lib/lightspeed_restaurant/operations/update.rb
|
|
175
|
+
- lib/lightspeed_restaurant/request.rb
|
|
176
|
+
- lib/lightspeed_restaurant/version.rb
|
|
177
|
+
- lightspeed_restaurant.gemspec
|
|
178
|
+
homepage: http://staging-exact-integration.posios.com/PosServer/swagger-ui.html
|
|
179
|
+
licenses:
|
|
180
|
+
- MIT
|
|
181
|
+
metadata: {}
|
|
182
|
+
post_install_message:
|
|
183
|
+
rdoc_options: []
|
|
184
|
+
require_paths:
|
|
185
|
+
- lib
|
|
186
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
187
|
+
requirements:
|
|
188
|
+
- - ">="
|
|
189
|
+
- !ruby/object:Gem::Version
|
|
190
|
+
version: '0'
|
|
191
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
|
+
requirements:
|
|
193
|
+
- - ">="
|
|
194
|
+
- !ruby/object:Gem::Version
|
|
195
|
+
version: '0'
|
|
196
|
+
requirements: []
|
|
197
|
+
rubyforge_project:
|
|
198
|
+
rubygems_version: 2.5.0
|
|
199
|
+
signing_key:
|
|
200
|
+
specification_version: 4
|
|
201
|
+
summary: Ruby bindings for the Lightspeed Restaurant API
|
|
202
|
+
test_files: []
|