libxml-jruby-modified 1.0.1-jruby → 1.0.2-jruby
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/libxml-jruby.rb +15 -15
- data/lib/libxml-jruby/xml/document.rb +7 -0
- data/libxml-jruby.gemspec +1 -1
- metadata +1 -2
- data/libxml-jruby-1.0.1-java.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4847caaebac93fe19609bdb381de9e10cfb0b50
|
4
|
+
data.tar.gz: f4951b9d18cd3df43152dbf814eb536cdd2688c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a6a5e8ca6c178992c22a0460f68e903e4ce00091b02ed4833880d530b243370d16b42698cc3042daea92c14502fb4ea5f4174184cc8e1dd399c494c22ad272c
|
7
|
+
data.tar.gz: 38f6cf425109908986d82d8cdd555a69bddba27ad35ab5f7a6cff56a43526ee389afed317a32e4909f5379599562edfecb9d030beeb5fefe2bff66141a288cd5
|
data/lib/libxml-jruby.rb
CHANGED
@@ -51,21 +51,21 @@ end # module LibXMLJRuby
|
|
51
51
|
|
52
52
|
require 'java'
|
53
53
|
require 'stringio'
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
54
|
+
java_import javax.xml.parsers.DocumentBuilder
|
55
|
+
java_import javax.xml.parsers.DocumentBuilderFactory
|
56
|
+
java_import javax.xml.xpath.XPath
|
57
|
+
java_import javax.xml.xpath.XPathFactory
|
58
|
+
java_import javax.xml.xpath.XPathConstants
|
59
|
+
java_import javax.xml.namespace.NamespaceContext
|
60
|
+
java_import java.io.StringReader
|
61
|
+
java_import java.io.StringWriter
|
62
|
+
java_import javax.xml.validation.Schema
|
63
|
+
java_import javax.xml.validation.SchemaFactory
|
64
|
+
java_import java.io.ByteArrayInputStream
|
65
|
+
java_import javax.xml.transform.stream.StreamSource
|
66
|
+
java_import javax.xml.transform.stream.StreamResult
|
67
|
+
java_import javax.xml.transform.TransformerFactory
|
68
|
+
java_import javax.xml.transform.dom.DOMSource
|
69
69
|
|
70
70
|
# these use include_class to avoid conflicts with Rake's top-level
|
71
71
|
# import method, the issue doesn't seem to occur when not using a
|
@@ -43,6 +43,13 @@ module LibXMLJRuby
|
|
43
43
|
def root
|
44
44
|
@root ||= Node.from_java(java_obj.document_element)
|
45
45
|
end
|
46
|
+
|
47
|
+
def to_s(*a)
|
48
|
+
###############################################################
|
49
|
+
# TODO: Add support for to_s(:indent => false) . JKW
|
50
|
+
###############################################################
|
51
|
+
self.root.to_s or super.to_s
|
52
|
+
end
|
46
53
|
end
|
47
54
|
end
|
48
55
|
end
|
data/libxml-jruby.gemspec
CHANGED
@@ -2,7 +2,7 @@ require 'rake'
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "libxml-jruby-modified"
|
5
|
-
s.version = "1.0.
|
5
|
+
s.version = "1.0.2"
|
6
6
|
s.date = "2015-05-19"
|
7
7
|
s.summary = "LibXMLRuby compatibility layer for jruby"
|
8
8
|
s.homepage = "http://rubyforge.org/projects/libxml-jruby"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libxml-jruby-modified
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: jruby
|
6
6
|
authors:
|
7
7
|
- Michael Guterl
|
@@ -33,7 +33,6 @@ files:
|
|
33
33
|
- lib/libxml.rb
|
34
34
|
- lib/xml.rb
|
35
35
|
- lib/xml/libxml.rb
|
36
|
-
- libxml-jruby-1.0.1-java.gem
|
37
36
|
- libxml-jruby.gemspec
|
38
37
|
- script/benchmark/depixelate.rb
|
39
38
|
- script/benchmark/hamlet.xml
|
data/libxml-jruby-1.0.1-java.gem
DELETED
Binary file
|