saxon-xslt 0.5.0-java → 0.5.1-java
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/saxon/processor.rb +1 -1
- data/lib/saxon/xslt/version.rb +1 -1
- data/spec/saxon/processor_spec.rb +11 -0
- data/spec/saxon/xml_spec.rb +8 -0
- data/spec/saxon/xslt_spec.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69ba3f6f9956b33cc7dc283bd45612363ad81f63
|
4
|
+
data.tar.gz: 2b1391e74ef5bdcdd0588ceffaf9be97df313ff8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0903c2754a622c08d40a901534443ea3e9c54a41206a124d1ee8e066d3db5b10ae28fe0320b4a63d720c9781bd531e7c1160f76b7cf493b7f506911fcfabaabb
|
7
|
+
data.tar.gz: 46ee2706c0df6d6dbe1ab979fb02564533fd3c0546104cad49c3bf5b4efcec937fe1b704ad2c9c6f94cb5061ec51971b30871c764e35878729892e73229498f3
|
data/lib/saxon/processor.rb
CHANGED
data/lib/saxon/xslt/version.rb
CHANGED
@@ -29,4 +29,15 @@ describe Saxon::Processor do
|
|
29
29
|
expect(configuration.xml_version).to eq(11)
|
30
30
|
end
|
31
31
|
end
|
32
|
+
|
33
|
+
context "the default configuration" do
|
34
|
+
it "creates a processor on demand" do
|
35
|
+
expect(Saxon::Processor.default).to be_a(Saxon::Processor)
|
36
|
+
end
|
37
|
+
|
38
|
+
it "returns the same processor instance if called repeatedly" do
|
39
|
+
expected = Saxon::Processor.default
|
40
|
+
expect(Saxon::Processor.default).to be(expected)
|
41
|
+
end
|
42
|
+
end
|
32
43
|
end
|
data/spec/saxon/xml_spec.rb
CHANGED
@@ -53,4 +53,12 @@ describe Saxon::XML do
|
|
53
53
|
doc = processor.XML('<input/>')
|
54
54
|
expect(doc.processor).to eq(processor)
|
55
55
|
end
|
56
|
+
|
57
|
+
describe "the default processor convenience" do
|
58
|
+
it "passes through to XML() on the default processor" do
|
59
|
+
expect(Saxon::Processor.default).to receive(:XML).with(:io, :opts)
|
60
|
+
|
61
|
+
Saxon.XML(:io, :opts)
|
62
|
+
end
|
63
|
+
end
|
56
64
|
end
|
data/spec/saxon/xslt_spec.rb
CHANGED
@@ -59,5 +59,13 @@ describe Saxon::XSLT do
|
|
59
59
|
end
|
60
60
|
end
|
61
61
|
end
|
62
|
+
|
63
|
+
describe "the default processor convenience" do
|
64
|
+
it "passes through to XSLT() on the default processor" do
|
65
|
+
expect(Saxon::Processor.default).to receive(:XSLT).with(:io, :opts)
|
66
|
+
|
67
|
+
Saxon.XSLT(:io, :opts)
|
68
|
+
end
|
69
|
+
end
|
62
70
|
end
|
63
71
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saxon-xslt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Matt Patterson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|