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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fdea3e761f0c5cf3d5a99a42f31e55b645921e6597fb027c560de421b55f7ae3
4
- data.tar.gz: f3dc6d6b15d149bb1d00115b79ef7f337af01197b5961a14fa9baead46e2586a
3
+ metadata.gz: b5116f65cd20c98a340f4b07761dfd93bdbed7c07bdd393014b299b42bfe2836
4
+ data.tar.gz: e80fee3dd6e34a6bb34c06ddcf98a1842a399c8c68cf09c462e2e08e71365483
5
5
  SHA512:
6
- metadata.gz: ac2d37fe39cace2096b041200eb2c2fac5fa2b6024747420a69645097642bce3ef35d66dce1c53d0ff801a921c46f84ca68fdb5a123ffd5c71e52f2a492bc0b8
7
- data.tar.gz: e0e6e8329734bfed770fc1cf8b1c964e7c7902a55686d7182cd078c26a3255d4e7af91e17e2898e35ef9c3515df1d38c5243417d18190cd968f4232e85231e59
6
+ metadata.gz: 32fe067d05234ed81d2d9ae026a3b68169fe9bf0568e397bb25e51b17a5778a17e7a7a52a17938357a0fe119768a5ce9b18ee77d17cde51751111b0f3d361c0d
7
+ data.tar.gz: 69f8be3f33399e0035fb8d780129bc79fc1eb5eefc9a9fd63873ac301d58ecd02aa3d9f467ff6c8b10dfc48523ab6aa39f98c54da08c35146c13f309e44e02c8
data/Gemfile.lock CHANGED
@@ -7,7 +7,7 @@ GIT
7
7
  PATH
8
8
  remote: .
9
9
  specs:
10
- paquito (0.1.0)
10
+ paquito (0.2.0)
11
11
  msgpack
12
12
 
13
13
  GEM
@@ -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
@@ -5,6 +5,7 @@ module Paquito
5
5
 
6
6
  class PackError < Error
7
7
  attr_reader :receiver
8
+
8
9
  def initialize(msg, receiver = nil)
9
10
  super(msg)
10
11
  @receiver = receiver
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require "paquito/errors"
3
4
 
4
5
  module Paquito
data/lib/paquito/types.rb CHANGED
@@ -75,6 +75,7 @@ module Paquito
75
75
  code: 0x00,
76
76
  packer: :to_s,
77
77
  unpacker: :to_sym,
78
+ optimized_symbols_parsing: true,
78
79
  }.freeze,
79
80
  "Time" => {
80
81
  code: 0x01,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paquito
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
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.1.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-07 00:00:00.000000000 Z
11
+ date: 2021-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack