lightspeed_restaurant 3.3.2 → 3.3.3

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
  SHA256:
3
- metadata.gz: 94582396ce068181cf1e60528cee1dde19525ada2f0f9200d3cc2f3ca6303f6e
4
- data.tar.gz: 13e362e37814c125e96846c545c4f621b0a6070bc858d29c47a3b47f79a2146e
3
+ metadata.gz: 340ce0c747aaa516dc5c4bbed52c1842c138ecc4d6777e953a41ae649b1a60b1
4
+ data.tar.gz: 975aedc38edeba28cde45a90d07833e6c34a58578444e948bb424b20dc0a68ca
5
5
  SHA512:
6
- metadata.gz: 1433bfa1c87e0aeaa11734dedddf93f8c5615d886b77fcbd5dd00cd026180da5f85d201e198e1ffd601d1a1f8ef01e034ec1eed346b8587fbe3371b5b0ab9fac
7
- data.tar.gz: 94c4dd4f9599d3b7cd6d2869fd65c94b51cdc43980f032e02a088d09c726baa247e9ce3f4c8d8327d9005a1bc522336442b5e2b73a7f9572a0af3dcbe4634739
6
+ metadata.gz: d057e14d22367a2ee8882b8e1dc3d2b3baff505e68867e6747e3e53b37844742c490e1844c8094636681d039992de64f0f9bd7e82c447ee43be459c8a6b0478e
7
+ data.tar.gz: c7a1262ea1ef6fd00cc99be0815bcd9c84b45c4e2a62aef103f38c20c1d1b5153fb8cb8b721b8da6ce42d36add021fc38b8c15733f6e1bc5e3da44a6cfe45565
@@ -0,0 +1,66 @@
1
+ name: CI
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ tests:
7
+ runs-on: ubuntu-latest
8
+ strategy:
9
+ matrix:
10
+ ruby: [2.6]
11
+
12
+ steps:
13
+ - uses: actions/checkout@master
14
+
15
+ - name: Set up the Ruby version
16
+ uses: actions/setup-ruby@v1
17
+ with:
18
+ ruby-version: ${{ matrix.ruby }}
19
+
20
+ - name: Ruby gem cache
21
+ uses: actions/cache@v1
22
+ with:
23
+ path: vendor/bundle
24
+ key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
25
+ restore-keys: |
26
+ ${{ runner.os }}-gems-
27
+
28
+ - name: Set up the environment
29
+ run: |
30
+ gem install bundler
31
+ bundle config path vendor/bundle
32
+ bundle install --jobs 4 --retry 3
33
+
34
+ - name: Runs tests
35
+ run: bundle exec rspec
36
+
37
+ rubocop:
38
+ runs-on: ubuntu-latest
39
+ strategy:
40
+ matrix:
41
+ ruby: [2.6]
42
+
43
+ steps:
44
+ - uses: actions/checkout@master
45
+
46
+ - name: Set up the Ruby version
47
+ uses: actions/setup-ruby@v1
48
+ with:
49
+ ruby-version: ${{ matrix.ruby }}
50
+
51
+ - name: Ruby gem cache
52
+ uses: actions/cache@v1
53
+ with:
54
+ path: vendor/bundle
55
+ key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
56
+ restore-keys: |
57
+ ${{ runner.os }}-gems-
58
+
59
+ - name: Set up the environment
60
+ run: |
61
+ gem install bundler
62
+ bundle config path vendor/bundle
63
+ bundle install --jobs 4 --retry 3
64
+
65
+ - name: Runs Rubocop
66
+ run: bundle exec rubocop
data/.rubocop.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  require: rubocop-rspec
2
2
 
3
- Metrics/LineLength:
4
- Max: 120
3
+ Layout/LineLength:
4
+ Max: 100
5
5
 
6
6
  Metrics/ParameterLists:
7
7
  Max: 6
@@ -21,7 +21,7 @@ Metrics/BlockLength:
21
21
  Exclude:
22
22
  - spec/**/*
23
23
 
24
- Lint/HandleExceptions:
24
+ Lint/SuppressedException:
25
25
  Enabled: false
26
26
 
27
27
  RSpec/MultipleExpectations:
@@ -51,6 +51,3 @@ Style/PercentLiteralDelimiters:
51
51
  Metrics/ClassLength:
52
52
  Max: 200
53
53
  Severity: warning
54
-
55
- HttpPositionalArguments:
56
- Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.3.3 / 2021-04-08
4
+
5
+ - Add `find` endpoint for the company
6
+
3
7
  ## 3.3.2 / 2020-03-20
4
8
 
5
9
  - Fix CVE-2020-10663 (Update JSON dependency to 2.3)
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Lightspeed Restaurant API Client
2
2
 
3
- [![Circle CI](https://circleci.com/gh/chronogolf/lightspeed_restaurant.svg?style=shield&circle-token=94ebc6c7495f5c0bbf9f6a89526395306f223b7e)](https://circleci.com/gh/chronogolf/lightspeed_restaurant)
4
- [![Dependency Status](https://gemnasium.com/chronogolf/lightspeed_restaurant.svg)](https://gemnasium.com/chronogolf/lightspeed_restaurant) [![Code Climate](https://codeclimate.com/github/chronogolf/lightspeed_restaurant/badges/gpa.svg)](https://codeclimate.com/github/chronogolf/lightspeed_restaurant) [![Gem Version](https://badge.fury.io/rb/lightspeed_restaurant.svg)](https://badge.fury.io/rb/lightspeed_restaurant)
3
+ [![Code Climate](https://codeclimate.com/github/chronogolf/lightspeed_restaurant/badges/gpa.svg)](https://codeclimate.com/github/chronogolf/lightspeed_restaurant) [![Gem Version](https://badge.fury.io/rb/lightspeed_restaurant.svg)](https://badge.fury.io/rb/lightspeed_restaurant)
5
4
 
6
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.
7
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.
@@ -5,6 +5,7 @@ require 'lightspeed_restaurant/operations/list'
5
5
 
6
6
  module LightspeedRestaurantClient
7
7
  class Company < LightspeedRestaurantClient::Base
8
+ extend Operations::Find
8
9
  extend Operations::List
9
10
 
10
11
  def self.resource_name
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LightspeedRestaurantClient
4
- VERSION = '3.3.2'
4
+ VERSION = '3.3.3'
5
5
  end
@@ -28,7 +28,6 @@ Gem::Specification.new do |spec|
28
28
  spec.add_development_dependency('pry')
29
29
  spec.add_development_dependency('rake')
30
30
  spec.add_development_dependency('rspec')
31
- spec.add_development_dependency('rspec_junit_formatter')
32
31
  spec.add_development_dependency('rubocop')
33
32
  spec.add_development_dependency('rubocop-rspec')
34
33
  spec.add_development_dependency('vcr')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lightspeed_restaurant
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.2
4
+ version: 3.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olivier Buffon, Laurent Cobos, Sybil Deboin
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-23 00:00:00.000000000 Z
11
+ date: 2021-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: rspec_junit_formatter
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
83
  - !ruby/object:Gem::Dependency
98
84
  name: rubocop
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -159,12 +145,12 @@ executables: []
159
145
  extensions: []
160
146
  extra_rdoc_files: []
161
147
  files:
148
+ - ".github/workflows/ci.yml"
162
149
  - ".gitignore"
163
150
  - ".rspec"
164
151
  - ".rubocop.yml"
165
152
  - ".ruby-gemset"
166
153
  - ".ruby-version"
167
- - ".travis.yml"
168
154
  - CHANGELOG.md
169
155
  - Gemfile
170
156
  - LICENSE.txt
@@ -172,7 +158,6 @@ files:
172
158
  - Rakefile
173
159
  - bin/console
174
160
  - bin/setup
175
- - circle.yml
176
161
  - lib/lightspeed_restaurant.rb
177
162
  - lib/lightspeed_restaurant/base.rb
178
163
  - lib/lightspeed_restaurant/company.rb
@@ -205,7 +190,7 @@ homepage: https://github.com/chronogolf/lightspeed_restaurant
205
190
  licenses:
206
191
  - MIT
207
192
  metadata: {}
208
- post_install_message:
193
+ post_install_message:
209
194
  rdoc_options: []
210
195
  require_paths:
211
196
  - lib
@@ -220,8 +205,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
205
  - !ruby/object:Gem::Version
221
206
  version: '0'
222
207
  requirements: []
223
- rubygems_version: 3.0.6
224
- signing_key:
208
+ rubygems_version: 3.0.3
209
+ signing_key:
225
210
  specification_version: 4
226
211
  summary: Ruby bindings for the Lightspeed Restaurant API
227
212
  test_files: []
data/.travis.yml DELETED
@@ -1,4 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.6.5
4
- before_install: gem install bundler -v 2.0.1
data/circle.yml DELETED
@@ -1,10 +0,0 @@
1
- machine:
2
- timezone:
3
- America/New_York
4
- environment:
5
- RACK_ENV: test
6
- test:
7
- override:
8
- - bundle exec bundle-audit check --update
9
- - bundle exec rubocop
10
- - bundle exec rspec --format RspecJunitFormatter --out $CIRCLE_TEST_REPORTS/junit/rspec.xml --format progress