moxml 0.5.63 → 0.5.64
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/moxml/adapter/leptris.rb +7 -2
- data/lib/moxml/version.rb +1 -1
- data/spec/moxml/struct_plan_spec.rb +4 -0
- 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: e1a9055854c390888e4748d208eb141c9d29e18da7c4d8f1d3b08a706cca1017
|
|
4
|
+
data.tar.gz: c55d56edcdcaebb7655cf5cd195df47a2afa6839c8bcd3dfec27376ae98d1e5a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2fcfb3c51ed894915e9cd630c6a80fba855c5d6205462b7b3a93c9275dea91d4849c934ef5b75d123301eada12537bf0b0156ae6c42b457b569629bb69f40998
|
|
7
|
+
data.tar.gz: bf467c70d4e94befa8e4801d4994b925da448560ad2957a6d60990167909d08e3382273126cac2a11e59cbbb32d7ea8a8e4260ad28ffdefb2209f910ba26cd93
|
|
@@ -538,9 +538,14 @@ module Moxml
|
|
|
538
538
|
Gem::Version.new(::Leptris::VERSION) >= Gem::Version.new("1.9.193.4")
|
|
539
539
|
|
|
540
540
|
# leptris-ruby#266 (binding 1.9.197.1): Native.plan_structs —
|
|
541
|
-
# the C struct executor behind Moxml::StructPlan.
|
|
541
|
+
# the C struct executor behind Moxml::StructPlan. The probe
|
|
542
|
+
# guards the version gate: a numerically newer lockstep can
|
|
543
|
+
# publish without the face (1.9.199.0 shipped without it),
|
|
544
|
+
# and the gate alone would NoMethodError.
|
|
542
545
|
NATIVE_PLAN_STRUCTS =
|
|
543
|
-
Gem::Version.new(::Leptris::VERSION) >= Gem::Version.new("1.9.197.1")
|
|
546
|
+
Gem::Version.new(::Leptris::VERSION) >= Gem::Version.new("1.9.197.1") &&
|
|
547
|
+
(!defined?(::Leptris::XML::Native) ||
|
|
548
|
+
::Leptris::XML::Native.respond_to?(:plan_structs))
|
|
544
549
|
|
|
545
550
|
def self.plan_structs(native, spec)
|
|
546
551
|
return nil unless NATIVE_PLAN_STRUCTS
|
data/lib/moxml/version.rb
CHANGED
|
@@ -56,6 +56,10 @@ RSpec.describe Moxml::StructPlan do
|
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
it "runs the C executor on leptris (not the fallback)" do
|
|
59
|
+
skip "binding lacks the C face (lockstep without it, e.g. 1.9.199.0)" unless
|
|
60
|
+
Moxml::Adapter::Leptris.const_defined?(:NATIVE_PLAN_STRUCTS) &&
|
|
61
|
+
Moxml::Adapter::Leptris::NATIVE_PLAN_STRUCTS
|
|
62
|
+
|
|
59
63
|
with_adapter(:leptris) do |ctx|
|
|
60
64
|
doc = ctx.parse(xml)
|
|
61
65
|
roots = Moxml::Adapter::Leptris.plan_structs(
|