parsanol 1.3.117-arm-linux → 1.3.118-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 +4 -4
- data/lib/parsanol/3.2/parsanol_native.so +2 -2
- data/lib/parsanol/3.3/parsanol_native.so +2 -2
- data/lib/parsanol/3.4/parsanol_native.so +2 -2
- data/lib/parsanol/4.0/parsanol_native.so +2 -2
- data/lib/parsanol/native/libparsanol.so +2 -2
- data/lib/parsanol/parg/bindings.rb +22 -0
- data/lib/parsanol/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 39962f129ecc8a6784427d72a89e3315def4846f2ac53f8d4620307a97267146
|
|
4
|
+
data.tar.gz: 9b7876d7e6089e045805e934135b676a27d9ba3f9c00f5c376279819f637bdce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6979be028243348639a9c47968245eade17a901bafc511d5b8a132f09915e046e264ed669bf90fd45b74d7331acd1bb51c8a622dcb7019d9e89d2525a3d55599
|
|
7
|
+
data.tar.gz: 8d9d87f58830a08fe54b8e6bd5e1730246fd474b218dd6d87a71d150229ef5a2cc883723493066e83f0cc0eb920f3b690c6de7ff9f3f07b44d7dac3a2415b9c2
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: data/lib/parsanol/3.2/parsanol_native.so
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 39429652 bytes
|
|
4
|
+
sha256: 45ce33580b00606411af09dfd70154f8b7a7d3b637a1016c7e0c6357ccbd6338
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: data/lib/parsanol/3.3/parsanol_native.so
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 39614896 bytes
|
|
4
|
+
sha256: 4703aace96daba132de6aafca89a2b2c3aee0ce3dc658e243e9d060f30667604
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: data/lib/parsanol/3.4/parsanol_native.so
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 39609016 bytes
|
|
4
|
+
sha256: 02f80c3867f3cef679ec6c3678289bbd7720cf26ab6f4925cb35f0ba9f1a76b9
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: data/lib/parsanol/4.0/parsanol_native.so
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 39618692 bytes
|
|
4
|
+
sha256: bebefd8aa90fe05eb6308cbdfd1022ad5007490d89a942b55314830d661ae582
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: data/lib/parsanol/native/libparsanol.so
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 35750340 bytes
|
|
4
|
+
sha256: 340420f6c770586cb519033e4f8802606378ade7cf9610a142aa4dcb4b3788ef
|
|
@@ -185,9 +185,31 @@ module Parsanol
|
|
|
185
185
|
|
|
186
186
|
value.to_s
|
|
187
187
|
when "boolean" then value == true || value.to_s.casecmp("true").zero?
|
|
188
|
+
when "any"
|
|
189
|
+
# The ONE plain shape on every engine (ruby#383): scalars and
|
|
190
|
+
# capture leaves render as their text, named groups as plain
|
|
191
|
+
# string-keyed hashes, repeats as arrays — so (any)-bound keys
|
|
192
|
+
# survive a cross-engine gate without consumer shims.
|
|
193
|
+
plain(value)
|
|
188
194
|
else value
|
|
189
195
|
end
|
|
190
196
|
end
|
|
197
|
+
|
|
198
|
+
# The engine-neutral reduction behind (any): capture leaves
|
|
199
|
+
# (Parsanol::Slice, native wire objects) and scalars render as
|
|
200
|
+
# their text, hashes as string-keyed plain hashes, arrays
|
|
201
|
+
# recurse. Nil passes through (absent captures stay absent —
|
|
202
|
+
# assign_scalar/assign_array skip them upstream).
|
|
203
|
+
def plain(value)
|
|
204
|
+
case value
|
|
205
|
+
when nil then nil
|
|
206
|
+
when String then value
|
|
207
|
+
when Hash
|
|
208
|
+
value.to_h { |key, item| [key.to_s, plain(item)] }
|
|
209
|
+
when Array then value.map { |item| plain(item) }
|
|
210
|
+
else value.to_s
|
|
211
|
+
end
|
|
212
|
+
end
|
|
191
213
|
end
|
|
192
214
|
end
|
|
193
215
|
end
|
data/lib/parsanol/version.rb
CHANGED