paquito 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0339ed04d21077425e5dd4b2e814a63ec524ca4806bc3af33b82fc162b61205
4
- data.tar.gz: 55b5ff0b7b2c325622307b6d6a25a978067ec69762993fc6d7f5f732fcc11301
3
+ metadata.gz: beedd98334166781382fbe4d773b19f27e58ea8cfe8c83fa211c745c7c752deb
4
+ data.tar.gz: 2912c724ee66b3b9547477e56aeb2bc1a0622128c41bf06b0be221c54eb0e8b0
5
5
  SHA512:
6
- metadata.gz: 264f88b37a150446c8e3d021887321fe1f47138894ac36a06e57105107f0f47add8ad82bd5e95078a50387ae4daad95154ebc5e1ce2bfde1b758a74e4559087c
7
- data.tar.gz: 3775371cc85bd799bdb9580f878e3c5a33c1a10020e9349afe5eecfcac7d65552a96e76eb72b387bc72dbce375a9f03f85151bdcdf27de8ceb8d23a73560b792
6
+ metadata.gz: ba2c02fa73d7b1a27577e36c8f8e2a2ea73a57446939e0519ea3d1fbd1ababf6af4c0bdda47bfba074ce0af60ae0269c8ea838abcb5ad0cba75a5d2f81848297
7
+ data.tar.gz: fb527d860bfd14dd71c42c75320fd694ad1335ca4e21b7edacf798612b55125bd19d1a5bf7126f8e4770ad0b68c448d003fe8fad450b7686d7e8a97ad4921dbb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Unreleased
2
2
 
3
+
4
+ # 0.9.2
5
+
6
+ * Support cast of coder in translate errors. (#24)
7
+
3
8
  # 0.9.1
4
9
 
5
10
  * Fix a bug when handle `compress / decompress` coders. (#23)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paquito (0.9.1)
4
+ paquito (0.9.2)
5
5
  msgpack (>= 1.5.2)
6
6
 
7
7
  GEM
@@ -23,34 +23,40 @@ GEM
23
23
  concurrent-ruby (1.1.10)
24
24
  i18n (1.12.0)
25
25
  concurrent-ruby (~> 1.0)
26
+ json (2.6.3)
27
+ mini_portile2 (2.8.0)
26
28
  minitest (5.16.3)
27
29
  msgpack (1.6.0)
28
30
  parallel (1.22.1)
29
- parser (3.1.2.1)
31
+ parser (3.1.3.0)
30
32
  ast (~> 2.4.1)
31
33
  rainbow (3.1.1)
32
34
  rake (13.0.6)
33
- regexp_parser (2.5.0)
35
+ regexp_parser (2.6.1)
34
36
  rexml (3.2.5)
35
- rubocop (1.30.1)
37
+ rubocop (1.40.0)
38
+ json (~> 2.3)
36
39
  parallel (~> 1.10)
37
- parser (>= 3.1.0.0)
40
+ parser (>= 3.1.2.1)
38
41
  rainbow (>= 2.2.2, < 4.0)
39
42
  regexp_parser (>= 1.8, < 3.0)
40
43
  rexml (>= 3.2.5, < 4.0)
41
- rubocop-ast (>= 1.18.0, < 2.0)
44
+ rubocop-ast (>= 1.23.0, < 2.0)
42
45
  ruby-progressbar (~> 1.7)
43
46
  unicode-display_width (>= 1.4.0, < 3.0)
44
- rubocop-ast (1.21.0)
47
+ rubocop-ast (1.24.0)
45
48
  parser (>= 3.1.1.0)
46
- rubocop-shopify (2.5.0)
47
- rubocop (~> 1.25)
49
+ rubocop-shopify (2.10.1)
50
+ rubocop (~> 1.35)
48
51
  ruby-progressbar (1.11.0)
49
- sorbet-runtime (0.5.10365)
50
- sqlite3 (1.4.4)
52
+ sorbet-runtime (0.5.10577)
53
+ sqlite3 (1.5.4)
54
+ mini_portile2 (~> 2.8.0)
55
+ sqlite3 (1.5.4-x86_64-darwin)
56
+ sqlite3 (1.5.4-x86_64-linux)
51
57
  tzinfo (2.0.5)
52
58
  concurrent-ruby (~> 1.0)
53
- unicode-display_width (2.2.0)
59
+ unicode-display_width (2.3.0)
54
60
 
55
61
  PLATFORMS
56
62
  ruby
@@ -18,7 +18,7 @@ FLAT = Paquito::FlatCacheEntryCoder.new(
18
18
  Paquito::SingleBytePrefixVersionWithStringBypass.new(
19
19
  0,
20
20
  0 => CODEC,
21
- )
21
+ ),
22
22
  )
23
23
 
24
24
  entries = {
@@ -3,7 +3,7 @@
3
3
  module Paquito
4
4
  class TranslateErrors
5
5
  def initialize(coder)
6
- @coder = coder
6
+ @coder = Paquito.cast(coder)
7
7
  end
8
8
 
9
9
  def dump(object)
@@ -15,7 +15,7 @@ module Paquito
15
15
  0x7f,
16
16
  Object,
17
17
  packer: ->(value) { raise PackError.new("undeclared type", value) },
18
- unpacker: ->(*) {}
18
+ unpacker: ->(*) {},
19
19
  )
20
20
 
21
21
  core_types = [String, Integer, TrueClass, FalseClass, NilClass, Float, Array, Hash]
data/lib/paquito/types.rb CHANGED
@@ -217,7 +217,7 @@ module Paquito
217
217
  factory.register_type(
218
218
  type_attributes.fetch(:code),
219
219
  type,
220
- type_attributes
220
+ type_attributes,
221
221
  )
222
222
  end
223
223
  end
@@ -242,7 +242,7 @@ module Paquito
242
242
 
243
243
  unpacker = CustomTypesRegistry.unpacker(klass)
244
244
  unpacker.call(payload)
245
- end
245
+ end,
246
246
  )
247
247
  end
248
248
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paquito
4
- VERSION = "0.9.1"
4
+ VERSION = "0.9.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paquito
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier