shoptet 0.0.64 → 0.0.65
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shoptet.rb +4 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 472c70317886f21349bfc995c9ef45bd71331282e8cacacff4743b3ca329b5d0
|
4
|
+
data.tar.gz: 04d264134fad6c9eb903ac8a8db93edf72a77cc434e67ea374e9cc1723966938
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76285b75a37c3bd65247bcd5f5afc2a4c9631f48a6a87fc85af6c3fec5dcc6b8f409d06798623eeb774c716ffc52a8bd5aa662b1022710e3f9f4a5f730eea0fd
|
7
|
+
data.tar.gz: 780436e3d344ebaafa2e6b883dd594727e11415d0e9317dacfbdca2f15165fcfb60b37e9cb7e742908df5062fbf1fc2b6ddcfe546ba355e94799d9d92770ca77
|
data/lib/shoptet.rb
CHANGED
@@ -22,6 +22,7 @@ class Shoptet
|
|
22
22
|
class MalformedAuthHeader < StandardError; end
|
23
23
|
class LanguageBeeingInstalled < StandardError; end
|
24
24
|
class MissingModule < StandardError; end
|
25
|
+
class LanguageNotFound < StandardError; end
|
25
26
|
|
26
27
|
EXPIRED_TOKEN_CODE = 'expired-token'
|
27
28
|
INVALID_TOKEN_CODE = 'invalid-token'
|
@@ -32,7 +33,7 @@ class Shoptet
|
|
32
33
|
end
|
33
34
|
|
34
35
|
def self.version
|
35
|
-
'0.0.
|
36
|
+
'0.0.65'
|
36
37
|
end
|
37
38
|
|
38
39
|
def self.ar_on_token_error(model)
|
@@ -414,6 +415,8 @@ class Shoptet
|
|
414
415
|
raise LanguageBeeingInstalled.new(result)
|
415
416
|
elsif errors.any? { |err| err["errorCode"] == 'missing-module' }
|
416
417
|
raise MissingModule.new(result)
|
418
|
+
elsif errors.any? { |err| err["errorCode"] == 'language-not-found' }
|
419
|
+
raise LanguageNotFound.new(result)
|
417
420
|
else
|
418
421
|
raise Error.new(result)
|
419
422
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoptet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.65
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Premysl Donat
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: irb
|
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
- !ruby/object:Gem::Version
|
65
65
|
version: '0'
|
66
66
|
requirements: []
|
67
|
-
rubygems_version: 3.5.
|
67
|
+
rubygems_version: 3.5.16
|
68
68
|
signing_key:
|
69
69
|
specification_version: 4
|
70
70
|
summary: API wrapper for interacting with Shoptet api
|