yeptris 0.6.31.1-arm-linux-eabihf → 0.6.31.2-arm-linux-eabihf
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/yeptris/yaml.rb +6 -1
- data/lib/yeptris.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: 94c34bc92701bb3906ae0f223c8b0fed12547cce0cee8409d18a9aa909acc439
|
|
4
|
+
data.tar.gz: 5fecb214844b15ff11b1eb328c1dfeb787197b95664064653fd5ca5f15767163
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c0af127b4140cd6c59abe4de51dda33d32bf60ec929e50c456b17f876ab1fe648db6253bca117f479541fd4c5303e23886d38ed934f509fb62e151102cba0a5d
|
|
7
|
+
data.tar.gz: 21bcbff5971b2f1df8e992377e65a5854a01d3f10b30c88600a69f60d8f537ec2ac92f84c07ab0954770d261e744dc955e9e0faed9ea08dc07145cffe49e92ae
|
data/lib/yeptris/yaml.rb
CHANGED
|
@@ -263,7 +263,7 @@ module Yeptris
|
|
|
263
263
|
return true
|
|
264
264
|
end
|
|
265
265
|
return false if s.empty? || s != s.strip
|
|
266
|
-
return false if s.match?(/[\n\t]/)
|
|
266
|
+
return false if s.match?(/[\n\t\u0085\u2028\u2029\uFEFF]/)
|
|
267
267
|
c = s[0]
|
|
268
268
|
return false if "#,[]{}&*!|>'\"%@`".include?(c)
|
|
269
269
|
return false if "-?:".include?(c) && (s.length == 1 || s[1] =~ /[ \t]/)
|
|
@@ -309,7 +309,12 @@ module Yeptris
|
|
|
309
309
|
return :double if !s.empty? && !s.include?('"') && s.match?(/\A[^[:word:]]/)
|
|
310
310
|
return :single if s.match?(/\A0[0-7]*[89]/)
|
|
311
311
|
return :plain if plain_string?(s)
|
|
312
|
+
# the Unicode breaks are YAML breaks like \n (raw, re-parse
|
|
313
|
+
# folds them) and U+FEFF raw is the BOM (re-parse strips it) —
|
|
314
|
+
# only the double-quoted escapes carry them byte-stably; psych
|
|
315
|
+
# double-quotes them all (Psych.dump("b\u0085c") == "b\\Nb")
|
|
312
316
|
return :double if s.each_byte.any? { |b| b < 0x20 || b == 0x7f }
|
|
317
|
+
return :double if s.match?(/[\u0085\u2028\u2029\uFEFF]/)
|
|
313
318
|
:single
|
|
314
319
|
end
|
|
315
320
|
|
data/lib/yeptris.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Yeptris
|
|
4
4
|
# The gem's version lives in the parent namespace's file — the last
|
|
5
5
|
# internal require (yeptris/version) retired with it.
|
|
6
|
-
VERSION = "0.6.31.
|
|
6
|
+
VERSION = "0.6.31.2".freeze
|
|
7
7
|
|
|
8
8
|
# Informational notices are OPT-IN (yeptris-ruby#217): consumers
|
|
9
9
|
# embed yeptris inside CLIs that assert clean stderr, and a
|