saxon-xslt 0.5.0-java → 0.5.1-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cfa11992486ed13c2359031da17082e29520754e
4
- data.tar.gz: ca8e42087c7b82f890e8caff64dadb42d7e46f0d
3
+ metadata.gz: 69ba3f6f9956b33cc7dc283bd45612363ad81f63
4
+ data.tar.gz: 2b1391e74ef5bdcdd0588ceffaf9be97df313ff8
5
5
  SHA512:
6
- metadata.gz: 0246341e380043c327f6de92383073213efdbf018abee0b0a39af92845d0f7462df6fedc1fd7f43fe2cae50234377aeb422315ea0861b6310631745c2a199b78
7
- data.tar.gz: f7fd284b2d4a162173dd854000e35b00e245d42c1eecc1ebfef4a2d1c713a307960c9ce7fbb792e9d7f04efe40ad7195efe82ca0909d049e7bd54f160d390851
6
+ metadata.gz: 0903c2754a622c08d40a901534443ea3e9c54a41206a124d1ee8e066d3db5b10ae28fe0320b4a63d720c9781bd531e7c1160f76b7cf493b7f506911fcfabaabb
7
+ data.tar.gz: 46ee2706c0df6d6dbe1ab979fb02564533fd3c0546104cad49c3bf5b4efcec937fe1b704ad2c9c6f94cb5061ec51971b30871c764e35878729892e73229498f3
@@ -15,7 +15,7 @@ module Saxon
15
15
  # instance
16
16
  # @return [Saxon::Processor]
17
17
  def self.default
18
- @processor ||= new
18
+ @processor ||= create
19
19
  end
20
20
 
21
21
  # @param config [File, String, IO] an open File, or string,
@@ -1,5 +1,5 @@
1
1
  module Saxon
2
2
  module XSLT
3
- VERSION = "0.5.0"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
  end
@@ -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
@@ -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
@@ -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.0
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-08-14 00:00:00.000000000 Z
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