paquito 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/paquito/codec_factory.rb +4 -0
- data/lib/paquito/errors.rb +1 -0
- data/lib/paquito/struct.rb +1 -0
- data/lib/paquito/types.rb +1 -0
- data/lib/paquito/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: b5116f65cd20c98a340f4b07761dfd93bdbed7c07bdd393014b299b42bfe2836
|
4
|
+
data.tar.gz: e80fee3dd6e34a6bb34c06ddcf98a1842a399c8c68cf09c462e2e08e71365483
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32fe067d05234ed81d2d9ae026a3b68169fe9bf0568e397bb25e51b17a5778a17e7a7a52a17938357a0fe119768a5ce9b18ee77d17cde51751111b0f3d361c0d
|
7
|
+
data.tar.gz: 69f8be3f33399e0035fb8d780129bc79fc1eb5eefc9a9fd63873ac301d58ecd02aa3d9f467ff6c8b10dfc48523ab6aa39f98c54da08c35146c13f309e44e02c8
|
data/Gemfile.lock
CHANGED
@@ -27,12 +27,16 @@ module Paquito
|
|
27
27
|
@factory.dump(object)
|
28
28
|
rescue NoMethodError => error
|
29
29
|
raise PackError.new(error.message, error.receiver)
|
30
|
+
rescue RangeError => error
|
31
|
+
raise PackError, "#{error.class.name}, #{error.message}"
|
30
32
|
end
|
31
33
|
|
32
34
|
def load(payload)
|
33
35
|
@factory.load(payload, freeze: @freeze)
|
34
36
|
rescue MessagePack::UnpackError => error
|
35
37
|
raise UnpackError, error.message
|
38
|
+
rescue IOError => error
|
39
|
+
raise UnpackError, "#{error.class.name}, #{error.message}"
|
36
40
|
end
|
37
41
|
end
|
38
42
|
end
|
data/lib/paquito/errors.rb
CHANGED
data/lib/paquito/struct.rb
CHANGED
data/lib/paquito/types.rb
CHANGED
data/lib/paquito/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paquito
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean Boussier
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|