parsanol 1.3.19-arm-linux → 1.3.21-arm-linux

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: 3c7eb750cc141454bce0844f230378f9feef26181005c1404a8669e7089ae61f
4
- data.tar.gz: 14aa5527e6c63b84886be2083a4ae66745061f06a586d7fa94a925018f62a10d
3
+ metadata.gz: 8b7cc394f0e4e40a01e65403a4bdbb9dea7cc2f46e103f65e07b57d388b13569
4
+ data.tar.gz: cfc65c6ea431dd179a3db7486e7dc210163c23fe2c8ac08147d5f3a08b64053a
5
5
  SHA512:
6
- metadata.gz: 9ea7f11fe8663bb1be7b7c1d64ef6b893b206557376a56dd4d8b7d8351524af9a77dbeb03865fed12928671e47f2f4651746bc44cebf22fb3f9c492328c0b736
7
- data.tar.gz: 83d4c565f06d262acf7d92f3634d365062fa3516f9b444a35adb7768f6d4bb267aba11241141be1411673d16bd4dcd316cf7cc2c82263edfa31b2d430a9fc211
6
+ metadata.gz: dbd837221688941f4f115007790166143fa3a7d67f733b0981ce8704af9bd29570ac394218c5f48ba02ce3725f1a94d2c2fedb70c6e4e2c7b8709388cc1418c9
7
+ data.tar.gz: 95fe5e652a75f85ca614594f3c062f1f422a79e6d234e3a7eb62d3803dd0a128e38340507eebef92576d8e1751e23687caa50d538f6995173fdb1c4dabf5b308
Binary file
Binary file
Binary file
Binary file
@@ -51,6 +51,7 @@ module Parsanol
51
51
  # Register with Rust FFI
52
52
  ffi_id = Native.register_callback(@next_id,
53
53
  description || "Ruby callback ##{@next_id}")
54
+ @next_id += 1
54
55
 
55
56
  # Also keep a Ruby-side reference for GC safety
56
57
  @mutex.synchronize do
@@ -345,7 +345,8 @@ module Parsanol
345
345
  # Example: merged_hash={namedTypeOrRename: A}, array=[{namedTypeOrRename: B}]
346
346
  # → should produce [{namedTypeOrRename: A}, {namedTypeOrRename: B}]
347
347
  existing_keys = merged_hash.keys
348
- shares_keys = item.any? do |sub_item|
348
+ repeated_keys = item.flat_map(&:keys).tally.any? { |_key, count| count > 1 }
349
+ shares_keys = repeated_keys || item.any? do |sub_item|
349
350
  sub_item.is_a?(Hash) && sub_item.keys.intersect?(existing_keys)
350
351
  end
351
352
 
@@ -12,6 +12,9 @@ module Parsanol
12
12
  module Native
13
13
  # ffi-gem cdylib tier: lazy — only loaded when the MRI extension is absent.
14
14
  autoload :Ffi, "parsanol/native/ffi"
15
+ # Dynamic-atom callbacks: autoloaded so the serializer's reference
16
+ # never raises NameError into the silent :ruby fallback (issue #38).
17
+ autoload :Dynamic, "parsanol/native/dynamic"
15
18
  class << self
16
19
  # Check if native extension is available
17
20
  def available?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Parsanol
4
- VERSION = "1.3.19"
4
+ VERSION = "1.3.21"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parsanol
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.19
4
+ version: 1.3.21
5
5
  platform: arm-linux
6
6
  authors:
7
7
  - Ribose Inc.