cin7_api 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/lib/cin7_api/errors.rb +6 -0
- data/lib/cin7_api/resource.rb +2 -2
- data/lib/cin7_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3649d7406e010700d3596d03c8022a197e1bfbe200d4271a0259da223bad6b47
|
4
|
+
data.tar.gz: f2502dadc70812ab8065b4020f989fb9e9d7ffd09963d90f9b90f4a7e0209c8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9297145c475bf521d10fa9a5e60338eb3dd5b642b15d720fa035c3da5b84ff7f852cee1539257bceb895e24245b64adf159e02052fd3345218b401bc1868fbb2
|
7
|
+
data.tar.gz: f67e0f395798aeecd3ffd893f787d8d0ab6ba6cc3b7aa94bcc152a1f9a53cb19cebac245e5ba081a98442fbdfd408d69b39796b7dca74d272b51ce626664e507
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cin7_api (1.1.
|
4
|
+
cin7_api (1.1.1)
|
5
5
|
activesupport
|
6
6
|
faraday (~> 2.5)
|
7
7
|
zeitwerk
|
@@ -19,16 +19,16 @@ GEM
|
|
19
19
|
concurrent-ruby (1.2.2)
|
20
20
|
diff-lcs (1.5.0)
|
21
21
|
dotenv (2.8.1)
|
22
|
-
faraday (2.7.
|
22
|
+
faraday (2.7.6)
|
23
23
|
faraday-net_http (>= 2.0, < 3.1)
|
24
24
|
ruby2_keywords (>= 0.0.4)
|
25
25
|
faraday-net_http (3.0.2)
|
26
|
-
i18n (1.
|
26
|
+
i18n (1.14.1)
|
27
27
|
concurrent-ruby (~> 1.0)
|
28
28
|
json (2.6.3)
|
29
29
|
language_server-protocol (3.17.0.3)
|
30
30
|
method_source (1.0.0)
|
31
|
-
minitest (5.18.
|
31
|
+
minitest (5.18.1)
|
32
32
|
parallel (1.22.1)
|
33
33
|
parser (3.2.2.0)
|
34
34
|
ast (~> 2.4.1)
|
data/lib/cin7_api/errors.rb
CHANGED
data/lib/cin7_api/resource.rb
CHANGED
@@ -29,9 +29,9 @@ module Cin7API
|
|
29
29
|
when 400
|
30
30
|
raise Error, "A bad request or a validation exception has occurred. #{error_message}"
|
31
31
|
when 401
|
32
|
-
raise
|
32
|
+
raise AuthenticationError, "Invalid authorization credentials. #{error_message}"
|
33
33
|
when 403
|
34
|
-
raise
|
34
|
+
raise PermissionError, "Connection doesn't have permission to access the resource. #{error_message}"
|
35
35
|
when 404
|
36
36
|
raise Error, "The resource you have specified cannot be found. #{error_message}"
|
37
37
|
when 429
|
data/lib/cin7_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cin7_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wei Zhe Heng
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|