parsanol 1.3.117-aarch64-linux → 1.3.118-aarch64-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: 528e8dbd52f42bdf29e0692ec6b78b45811d6200234a024be6d0239f260cffdd
|
|
4
|
+
data.tar.gz: 34113c97e3669e08bf58f4a1bc212c0bf4046000614f014dc8c961322bfbc57f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ff05e12878bdfb59ac439f50dcf782d8738a38ccc885bb3de83b833de9980ab6112835386e96e5c06e9e88df831cea52f05748db4e86ea94cab13c29c62ccbc
|
|
7
|
+
data.tar.gz: f49ed696b260077f0f77a6e0d21acba191af25c0b39a4eecfaa84c0c5bf78e7760d1c812545ace2bc722841073bd6efdc150672a8146159534849c6f9ab3d9ea
|
|
@@ -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: 46566584 bytes
|
|
4
|
+
sha256: 870a9bf97e079764ecc2ea3d1af4fbfc24081e4fb0e8e2d5d21e454a7bc842db
|
|
@@ -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: 46805760 bytes
|
|
4
|
+
sha256: ce41490479d101f992a192d3ad9cb8d3ad550e128590797acd7cc17422c61bde
|
|
@@ -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: 46809816 bytes
|
|
4
|
+
sha256: 449cec2f4d18b089ef179ba27214fbb7c7dd8f113e7fb77b2edfaed76ebaddbe
|
|
@@ -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: 46819800 bytes
|
|
4
|
+
sha256: 7933405b216e4fba9a41ec2771c6239b73ee32645f67145c9370f9daa0bb8aa3
|
|
@@ -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: 42275976 bytes
|
|
4
|
+
sha256: 3d3dc209b794a4b5927b609bb1ff442d18bfc40bcd349cee57c3a6dc1302a442
|
|
@@ -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