yeptris 0.6.20.1-aarch64-linux → 0.6.20.2-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/yeptris/psych.rb +1 -1
- data/lib/yeptris.rb +16 -4
- 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: 9f38d811bfb5d528f0fe714a37d5b1d3098c4387b4e17ddc4f5ceb1b1d4e792d
|
|
4
|
+
data.tar.gz: 97317d6f12a73d35fa2b38e780742631729823daa9f6e87f9af8a6cb30673791
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9d2d9c6092f09c30e2db903e8ffd1c43c16c5c146a0696732c3aa6393d510cfd9f8dc30abbdd7e8d51f7798b0f7b088227b10d60731350ca872061364b95915a
|
|
7
|
+
data.tar.gz: c2b04861f13e33c47a90387e909c4179d846888a640bd8c754e9bdcd59a45e4648d4d6e7ee8edd0c8944935d044fd2fd5beea9ff497d85f6697c5433cbbe25f3
|
data/lib/yeptris/psych.rb
CHANGED
|
@@ -619,7 +619,7 @@ end
|
|
|
619
619
|
# rebind ::Psych. It does not anymore, and re-binding it here would
|
|
620
620
|
# regress #69 (any stdlib psych loaded afterwards would explode with
|
|
621
621
|
# a superclass mismatch), so the old path warns instead of acting.
|
|
622
|
-
if defined?(::Psych) && !::Psych.equal?(Yeptris::Psych)
|
|
622
|
+
if defined?(::Psych) && !::Psych.equal?(Yeptris::Psych) && Yeptris.debug?
|
|
623
623
|
warn "yeptris: \"yeptris/psych\" defines the namespace only — it no " \
|
|
624
624
|
"longer rebinds ::Psych. Require \"yeptris/psych/drop_in\" for the " \
|
|
625
625
|
"drop-in rebind, or call Yeptris::Psych explicitly."
|
data/lib/yeptris.rb
CHANGED
|
@@ -3,7 +3,17 @@
|
|
|
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.20.
|
|
6
|
+
VERSION = "0.6.20.2".freeze
|
|
7
|
+
|
|
8
|
+
# Informational notices are OPT-IN (yeptris-ruby#217): consumers
|
|
9
|
+
# embed yeptris inside CLIs that assert clean stderr, and a
|
|
10
|
+
# successful fallback is not a warning. YEPTRIS_DEBUG=1 turns the
|
|
11
|
+
# notices on.
|
|
12
|
+
def self.debug?
|
|
13
|
+
return @debug unless @debug.nil?
|
|
14
|
+
v = ENV["YEPTRIS_DEBUG"]
|
|
15
|
+
@debug = !v.nil? && !v.empty? && v != "0"
|
|
16
|
+
end
|
|
7
17
|
# The error hierarchy lives in THIS file (the parent namespace's
|
|
8
18
|
# own file): nested constants do not trigger a parent-constant
|
|
9
19
|
# autoload, and the law forbids internal requires — defining the
|
|
@@ -110,8 +120,10 @@ rescue LoadError
|
|
|
110
120
|
begin
|
|
111
121
|
require "yeptris/native"
|
|
112
122
|
rescue LoadError => e
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
123
|
+
if Yeptris.debug? # the require chain is top-level (self = main)
|
|
124
|
+
warn "yeptris: no precompiled native materializer for Ruby " \
|
|
125
|
+
"#{RUBY_VERSION[/\A\d+\.\d+/]} on this platform " \
|
|
126
|
+
"(#{e.message}); the FFI ladder carries the load"
|
|
127
|
+
end
|
|
116
128
|
end
|
|
117
129
|
end
|