lightspeed_pos 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/.travis.yml +1 -0
- data/lib/lightspeed/accounts.rb +1 -1
- data/lib/lightspeed/collection.rb +1 -1
- data/lib/lightspeed/error.rb +5 -0
- data/lib/lightspeed/request.rb +1 -1
- data/lib/lightspeed/resource.rb +2 -3
- data/lib/lightspeed/version.rb +1 -1
- data/lightspeed_pos.gemspec +2 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 698710d57a5ef3c30c022c2f050b9df04976227b2482a3075c851b27db3642fe
|
4
|
+
data.tar.gz: 6abdc460a2cd345883c2cb853c9c6c16051273606914d7ba5fcaa72089402dae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03f3b9db98a4145a9751b2990beabccf96d79a78fece26a40a3163ffe0d8604ea41ad0316b52ce9a3e27f77fea1e6cb0ce708438bc37c22cacef0a0401ef9245
|
7
|
+
data.tar.gz: 3c8f3710b4f8e76bda81e5e02265115c0252c38b8c177ff707c9dab53026da1d8598504d77ae9d31c3a17a0cfa2796d5cd293355b25b7c8aeca4e44762e26830
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
data/lib/lightspeed/accounts.rb
CHANGED
data/lib/lightspeed/error.rb
CHANGED
@@ -3,10 +3,15 @@
|
|
3
3
|
module Lightspeed
|
4
4
|
class Error < Exception
|
5
5
|
class BadRequest < Lightspeed::Error; end # 400
|
6
|
+
|
6
7
|
class Unauthorized < Lightspeed::Error; end # 401
|
8
|
+
|
7
9
|
class NotAuthorized < Lightspeed::Error; end # 403
|
10
|
+
|
8
11
|
class NotFound < Lightspeed::Error; end # 404
|
12
|
+
|
9
13
|
class InternalServerError < Lightspeed::Error; end # 500
|
14
|
+
|
10
15
|
class Throttled < Lightspeed::Error; end # 503
|
11
16
|
end
|
12
17
|
end
|
data/lib/lightspeed/request.rb
CHANGED
data/lib/lightspeed/resource.rb
CHANGED
@@ -8,7 +8,7 @@ require_relative 'collection'
|
|
8
8
|
|
9
9
|
module Lightspeed
|
10
10
|
class ID < Integer; end
|
11
|
-
class Link; end
|
11
|
+
class Link; end # rubocop:disable Lint/EmptyClass
|
12
12
|
class Resource
|
13
13
|
attr_accessor :id, :attributes, :client, :context, :account
|
14
14
|
|
@@ -48,8 +48,7 @@ module Lightspeed
|
|
48
48
|
if value.is_a?(String)
|
49
49
|
case kind
|
50
50
|
when :string then value
|
51
|
-
when :integer then value.to_i
|
52
|
-
when :id then value.to_i
|
51
|
+
when :id, :integer then value.to_i
|
53
52
|
when :datetime then DateTime.parse(value)
|
54
53
|
when :boolean then value == 'true'
|
55
54
|
when :decimal then BigDecimal(value)
|
data/lib/lightspeed/version.rb
CHANGED
data/lightspeed_pos.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lightspeed_pos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Bigg
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -225,14 +225,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
225
225
|
requirements:
|
226
226
|
- - ">="
|
227
227
|
- !ruby/object:Gem::Version
|
228
|
-
version: '
|
228
|
+
version: '2.5'
|
229
229
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
230
|
requirements:
|
231
231
|
- - ">="
|
232
232
|
- !ruby/object:Gem::Version
|
233
233
|
version: '0'
|
234
234
|
requirements: []
|
235
|
-
rubygems_version: 3.
|
235
|
+
rubygems_version: 3.2.3
|
236
236
|
signing_key:
|
237
237
|
specification_version: 4
|
238
238
|
summary: A gem for interacting with Lightspeed's Point of Sale system
|