libxml-ruby 3.0.0-x64-mingw32 → 3.1.0-x64-mingw32
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 +5 -5
- data/HISTORY +18 -0
- data/MANIFEST +34 -34
- data/README.rdoc +14 -1
- data/Rakefile +18 -8
- data/ext/libxml/ruby_xml_error.c +1 -1
- data/ext/libxml/ruby_xml_error.h +1 -1
- data/ext/libxml/ruby_xml_node.c +15 -16
- data/ext/libxml/ruby_xml_reader.c +7 -2
- data/ext/libxml/ruby_xml_schema.c +44 -66
- data/ext/libxml/ruby_xml_schema_element.c +15 -14
- data/ext/libxml/ruby_xml_schema_type.c +66 -93
- data/ext/libxml/ruby_xml_version.h +3 -3
- data/lib/libxml/schema.rb +0 -19
- data/lib/libxml/schema/element.rb +0 -8
- data/lib/libxml/schema/type.rb +0 -8
- data/libxml-ruby.gemspec +3 -2
- data/setup.rb +0 -1
- data/test/model/cwm_1_0.xml +11336 -0
- data/test/{tc_attr.rb → test_attr.rb} +1 -1
- data/test/{tc_attr_decl.rb → test_attr_decl.rb} +1 -1
- data/test/{tc_attributes.rb → test_attributes.rb} +1 -1
- data/test/{tc_canonicalize.rb → test_canonicalize.rb} +32 -28
- data/test/{tc_deprecated_require.rb → test_deprecated_require.rb} +0 -0
- data/test/{tc_document.rb → test_document.rb} +3 -3
- data/test/{tc_document_write.rb → test_document_write.rb} +1 -1
- data/test/{tc_dtd.rb → test_dtd.rb} +6 -6
- data/test/{tc_encoding.rb → test_encoding.rb} +6 -3
- data/test/{tc_encoding_sax.rb → test_encoding_sax.rb} +1 -1
- data/test/{tc_error.rb → test_error.rb} +1 -1
- data/test/test_helper.rb +0 -2
- data/test/{tc_html_parser.rb → test_html_parser.rb} +3 -2
- data/test/{tc_html_parser_context.rb → test_html_parser_context.rb} +1 -1
- data/test/{tc_namespace.rb → test_namespace.rb} +3 -4
- data/test/{tc_namespaces.rb → test_namespaces.rb} +5 -14
- data/test/{tc_node.rb → test_node.rb} +2 -2
- data/test/{tc_node_cdata.rb → test_node_cdata.rb} +1 -1
- data/test/{tc_node_comment.rb → test_node_comment.rb} +1 -1
- data/test/{tc_node_copy.rb → test_node_copy.rb} +2 -3
- data/test/{tc_node_edit.rb → test_node_edit.rb} +5 -6
- data/test/{tc_node_pi.rb → test_node_pi.rb} +2 -4
- data/test/{tc_node_text.rb → test_node_text.rb} +4 -5
- data/test/{tc_node_write.rb → test_node_write.rb} +1 -1
- data/test/{tc_node_xlink.rb → test_node_xlink.rb} +1 -1
- data/test/{tc_parser.rb → test_parser.rb} +7 -6
- data/test/{tc_parser_context.rb → test_parser_context.rb} +8 -8
- data/test/{tc_properties.rb → test_properties.rb} +1 -1
- data/test/{tc_reader.rb → test_reader.rb} +30 -20
- data/test/{tc_relaxng.rb → test_relaxng.rb} +2 -2
- data/test/{tc_sax_parser.rb → test_sax_parser.rb} +3 -3
- data/test/{tc_schema.rb → test_schema.rb} +18 -11
- data/test/test_suite.rb +38 -38
- data/test/{tc_traversal.rb → test_traversal.rb} +1 -1
- data/test/{tc_writer.rb → test_writer.rb} +1 -1
- data/test/{tc_xinclude.rb → test_xinclude.rb} +1 -1
- data/test/{tc_xml.rb → test_xml.rb} +61 -36
- data/test/{tc_xpath.rb → test_xpath.rb} +4 -4
- data/test/{tc_xpath_context.rb → test_xpath_context.rb} +1 -1
- data/test/{tc_xpath_expression.rb → test_xpath_expression.rb} +2 -2
- data/test/{tc_xpointer.rb → test_xpointer.rb} +1 -1
- metadata +84 -99
- data/lib/2.4/libxml_ruby.so +0 -0
- data/lib/libs/libiconv-2.dll +0 -0
- data/lib/libs/libxml2-2.dll +0 -0
- data/lib/libs/zlib1.dll +0 -0
    
        data/test/test_suite.rb
    CHANGED
    
    | @@ -5,45 +5,45 @@ | |
| 5 5 | 
             
            dir = File.dirname(__FILE__)
         | 
| 6 6 | 
             
            Dir.chdir(dir)
         | 
| 7 7 |  | 
| 8 | 
            -
            require './ | 
| 9 | 
            -
            require './ | 
| 10 | 
            -
            require './ | 
| 11 | 
            -
            require './ | 
| 12 | 
            -
            require './ | 
| 13 | 
            -
            require './ | 
| 14 | 
            -
            require './ | 
| 15 | 
            -
            require './ | 
| 16 | 
            -
            require './ | 
| 17 | 
            -
            require './ | 
| 18 | 
            -
            require './ | 
| 19 | 
            -
            require './ | 
| 20 | 
            -
            require './ | 
| 21 | 
            -
            require './ | 
| 22 | 
            -
            require './ | 
| 23 | 
            -
            require './ | 
| 24 | 
            -
            require './ | 
| 25 | 
            -
            require './ | 
| 26 | 
            -
            require './ | 
| 27 | 
            -
            require './ | 
| 28 | 
            -
            require './ | 
| 29 | 
            -
            require './ | 
| 30 | 
            -
            require './ | 
| 31 | 
            -
            require './ | 
| 32 | 
            -
            require './ | 
| 33 | 
            -
            require './ | 
| 34 | 
            -
            require './ | 
| 35 | 
            -
            require './ | 
| 36 | 
            -
            require './ | 
| 37 | 
            -
            require './ | 
| 38 | 
            -
            require './ | 
| 39 | 
            -
            require './ | 
| 40 | 
            -
            require './ | 
| 41 | 
            -
            require './ | 
| 8 | 
            +
            require './test_attr'
         | 
| 9 | 
            +
            require './test_attr_decl'
         | 
| 10 | 
            +
            require './test_attributes'
         | 
| 11 | 
            +
            require './test_canonicalize'
         | 
| 12 | 
            +
            require './test_document'
         | 
| 13 | 
            +
            require './test_document_write'
         | 
| 14 | 
            +
            require './test_dtd'
         | 
| 15 | 
            +
            require './test_error'
         | 
| 16 | 
            +
            require './test_html_parser'
         | 
| 17 | 
            +
            require './test_html_parser_context'
         | 
| 18 | 
            +
            require './test_namespace'
         | 
| 19 | 
            +
            require './test_namespaces'
         | 
| 20 | 
            +
            require './test_node'
         | 
| 21 | 
            +
            require './test_node_cdata'
         | 
| 22 | 
            +
            require './test_node_comment'
         | 
| 23 | 
            +
            require './test_node_copy'
         | 
| 24 | 
            +
            require './test_node_edit'
         | 
| 25 | 
            +
            require './test_node_pi'
         | 
| 26 | 
            +
            require './test_node_text'
         | 
| 27 | 
            +
            require './test_node_write'
         | 
| 28 | 
            +
            require './test_node_xlink'
         | 
| 29 | 
            +
            require './test_parser'
         | 
| 30 | 
            +
            require './test_parser_context'
         | 
| 31 | 
            +
            require './test_reader'
         | 
| 32 | 
            +
            require './test_relaxng'
         | 
| 33 | 
            +
            require './test_sax_parser'
         | 
| 34 | 
            +
            require './test_schema'
         | 
| 35 | 
            +
            require './test_traversal'
         | 
| 36 | 
            +
            require './test_writer'
         | 
| 37 | 
            +
            require './test_xinclude'
         | 
| 38 | 
            +
            require './test_xpath'
         | 
| 39 | 
            +
            require './test_xpath_context'
         | 
| 40 | 
            +
            require './test_xpath_expression'
         | 
| 41 | 
            +
            require './test_xpointer'
         | 
| 42 42 |  | 
| 43 43 | 
             
            if defined?(Encoding)
         | 
| 44 | 
            -
              require './ | 
| 45 | 
            -
              require './ | 
| 44 | 
            +
              require './test_encoding'
         | 
| 45 | 
            +
              require './test_encoding_sax'
         | 
| 46 46 | 
             
            end
         | 
| 47 47 | 
             
            # Compatibility
         | 
| 48 | 
            -
            require './ | 
| 49 | 
            -
            require './ | 
| 48 | 
            +
            require './test_properties'
         | 
| 49 | 
            +
            require './test_deprecated_require'
         | 
| @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            # encoding: UTF-8
         | 
| 2 2 |  | 
| 3 | 
            -
            require ' | 
| 3 | 
            +
            require File.expand_path('../test_helper', __FILE__)
         | 
| 4 4 | 
             
            require 'stringio'
         | 
| 5 5 |  | 
| 6 6 | 
             
            class TestXml < Minitest::Test
         | 
| @@ -10,19 +10,25 @@ class TestXml < Minitest::Test | |
| 10 10 | 
             
              end
         | 
| 11 11 |  | 
| 12 12 | 
             
              def test_debug_entities
         | 
| 13 | 
            +
                original = XML.debug_entities
         | 
| 14 | 
            +
             | 
| 13 15 | 
             
                XML.debug_entities = false
         | 
| 14 | 
            -
                 | 
| 16 | 
            +
                refute(XML.debug_entities)
         | 
| 15 17 |  | 
| 16 18 | 
             
                XML.debug_entities = true
         | 
| 17 19 | 
             
                assert(XML.debug_entities)
         | 
| 18 20 |  | 
| 19 21 | 
             
                XML.debug_entities = false
         | 
| 20 | 
            -
                 | 
| 22 | 
            +
                refute(XML.debug_entities)
         | 
| 23 | 
            +
             | 
| 24 | 
            +
                XML.debug_entities = original
         | 
| 21 25 | 
             
              end
         | 
| 22 26 |  | 
| 23 27 | 
             
              def test_default_compression
         | 
| 24 28 | 
             
                return unless XML.default_compression
         | 
| 25 29 |  | 
| 30 | 
            +
                original = XML.default_compression
         | 
| 31 | 
            +
             | 
| 26 32 | 
             
                0.upto(9) do |i|
         | 
| 27 33 | 
             
                  XML.default_compression = i
         | 
| 28 34 | 
             
                  assert_equal(i, XML.default_compression)
         | 
| @@ -42,39 +48,44 @@ class TestXml < Minitest::Test | |
| 42 48 | 
             
                  assert_equal(i, XML.default_compression = i)
         | 
| 43 49 | 
             
                  assert_equal(9, XML.default_compression)
         | 
| 44 50 | 
             
                end
         | 
| 51 | 
            +
             | 
| 52 | 
            +
                XML.default_compression = original
         | 
| 45 53 | 
             
              end
         | 
| 46 54 |  | 
| 47 55 | 
             
              def test_default_keep_blanks
         | 
| 56 | 
            +
                original = XML.default_keep_blanks
         | 
| 57 | 
            +
             | 
| 48 58 | 
             
                XML.default_keep_blanks = false
         | 
| 49 | 
            -
                 | 
| 59 | 
            +
                refute(XML.default_keep_blanks)
         | 
| 50 60 | 
             
                assert_equal(XML::Parser::Options::NOBLANKS, XML.default_options)
         | 
| 51 61 |  | 
| 52 62 | 
             
                XML.default_keep_blanks = true
         | 
| 53 63 | 
             
                assert(XML.default_keep_blanks)
         | 
| 54 64 | 
             
                assert_equal(0, XML.default_options)
         | 
| 55 65 |  | 
| 56 | 
            -
                XML.default_keep_blanks =  | 
| 57 | 
            -
                assert(!XML.default_keep_blanks)
         | 
| 58 | 
            -
             | 
| 59 | 
            -
                # other tests depend on keeping blanks by default,
         | 
| 60 | 
            -
                # which is the default default behaviour anyway.
         | 
| 61 | 
            -
                XML.default_keep_blanks = true
         | 
| 66 | 
            +
                XML.default_keep_blanks = original
         | 
| 62 67 | 
             
              end
         | 
| 63 68 |  | 
| 64 69 | 
             
              def test_default_line_numbers
         | 
| 70 | 
            +
                original = XML.default_line_numbers
         | 
| 71 | 
            +
             | 
| 65 72 | 
             
                XML.default_line_numbers = false
         | 
| 66 | 
            -
                 | 
| 73 | 
            +
                refute(XML.default_line_numbers)
         | 
| 67 74 |  | 
| 68 75 | 
             
                XML.default_line_numbers = true
         | 
| 69 76 | 
             
                assert(XML.default_line_numbers)
         | 
| 70 77 |  | 
| 71 78 | 
             
                XML.default_line_numbers = false
         | 
| 72 | 
            -
                 | 
| 79 | 
            +
                refute(XML.default_line_numbers)
         | 
| 80 | 
            +
             | 
| 81 | 
            +
                XML.default_line_numbers = original
         | 
| 73 82 | 
             
              end
         | 
| 74 83 |  | 
| 75 84 | 
             
              def test_default_substitute_entities
         | 
| 85 | 
            +
                original = XML.default_substitute_entities
         | 
| 86 | 
            +
             | 
| 76 87 | 
             
                XML.default_substitute_entities = false
         | 
| 77 | 
            -
                 | 
| 88 | 
            +
                refute(XML.default_substitute_entities)
         | 
| 78 89 | 
             
                assert_equal(0, XML.default_options)
         | 
| 79 90 |  | 
| 80 91 | 
             
                XML.default_substitute_entities = true
         | 
| @@ -82,10 +93,14 @@ class TestXml < Minitest::Test | |
| 82 93 | 
             
                assert_equal(XML::Parser::Options::NOENT, XML.default_options)
         | 
| 83 94 |  | 
| 84 95 | 
             
                XML.default_substitute_entities = false
         | 
| 85 | 
            -
                 | 
| 96 | 
            +
                refute(XML.default_substitute_entities)
         | 
| 97 | 
            +
             | 
| 98 | 
            +
                XML.default_substitute_entities = original
         | 
| 86 99 | 
             
              end
         | 
| 87 100 |  | 
| 88 101 | 
             
              def test_default_tree_indent_string
         | 
| 102 | 
            +
                original = XML.default_tree_indent_string
         | 
| 103 | 
            +
             | 
| 89 104 | 
             
                s = XML.default_tree_indent_string
         | 
| 90 105 | 
             
                assert_instance_of(String, s)
         | 
| 91 106 | 
             
                assert_equal('  ', s)
         | 
| @@ -97,11 +112,15 @@ class TestXml < Minitest::Test | |
| 97 112 | 
             
                s = XML.default_tree_indent_string
         | 
| 98 113 | 
             
                assert_instance_of(String, s)
         | 
| 99 114 | 
             
                assert_equal('  ', s)
         | 
| 115 | 
            +
             | 
| 116 | 
            +
                XML.default_tree_indent_string = original
         | 
| 100 117 | 
             
              end
         | 
| 101 118 |  | 
| 102 119 | 
             
              def test_default_validity_checking
         | 
| 120 | 
            +
                original = XML.default_validity_checking
         | 
| 121 | 
            +
             | 
| 103 122 | 
             
                XML.default_validity_checking = false
         | 
| 104 | 
            -
                 | 
| 123 | 
            +
                refute(XML.default_validity_checking)
         | 
| 105 124 | 
             
                assert_equal(0, XML.default_options)
         | 
| 106 125 |  | 
| 107 126 | 
             
                XML.default_validity_checking = true
         | 
| @@ -109,12 +128,16 @@ class TestXml < Minitest::Test | |
| 109 128 | 
             
                assert_equal(XML::Parser::Options::DTDVALID, XML.default_options)
         | 
| 110 129 |  | 
| 111 130 | 
             
                XML.default_validity_checking = false
         | 
| 112 | 
            -
                 | 
| 131 | 
            +
                refute(XML.default_validity_checking)
         | 
| 132 | 
            +
             | 
| 133 | 
            +
                XML.default_validity_checking = original
         | 
| 113 134 | 
             
              end
         | 
| 114 135 |  | 
| 115 136 | 
             
              def test_default_warnings
         | 
| 137 | 
            +
                original = XML.default_warnings
         | 
| 138 | 
            +
             | 
| 116 139 | 
             
                XML.default_warnings = false
         | 
| 117 | 
            -
                 | 
| 140 | 
            +
                refute(XML.default_warnings)
         | 
| 118 141 | 
             
                assert_equal(XML::Parser::Options::NOWARNING, XML.default_options)
         | 
| 119 142 |  | 
| 120 143 | 
             
                XML.default_warnings = true
         | 
| @@ -122,43 +145,45 @@ class TestXml < Minitest::Test | |
| 122 145 | 
             
                assert_equal(0, XML.default_options)
         | 
| 123 146 |  | 
| 124 147 | 
             
                XML.default_warnings = false
         | 
| 125 | 
            -
                 | 
| 148 | 
            +
                refute(XML.default_warnings)
         | 
| 149 | 
            +
             | 
| 150 | 
            +
                XML.default_warnings = original
         | 
| 126 151 | 
             
              end
         | 
| 127 152 |  | 
| 128 153 | 
             
              def test_enabled_automata
         | 
| 129 | 
            -
                 | 
| 154 | 
            +
                assert(XML.enabled_automata?)
         | 
| 130 155 | 
             
              end
         | 
| 131 156 |  | 
| 132 157 | 
             
              def test_enabled_c14n
         | 
| 133 | 
            -
                 | 
| 158 | 
            +
                assert(XML.enabled_c14n?)
         | 
| 134 159 | 
             
              end
         | 
| 135 160 |  | 
| 136 161 | 
             
              def test_enabled_catalog
         | 
| 137 | 
            -
                 | 
| 162 | 
            +
                assert(XML.enabled_catalog?)
         | 
| 138 163 | 
             
              end
         | 
| 139 164 |  | 
| 140 165 | 
             
              def test_enabled_debug
         | 
| 141 | 
            -
                 | 
| 166 | 
            +
                assert(XML.enabled_debug?)
         | 
| 142 167 | 
             
              end
         | 
| 143 168 |  | 
| 144 169 | 
             
              def test_enabled_docbook
         | 
| 145 | 
            -
                 | 
| 170 | 
            +
                assert(XML.enabled_docbook?)
         | 
| 146 171 | 
             
              end
         | 
| 147 172 |  | 
| 148 173 | 
             
              def test_enabled_ftp
         | 
| 149 | 
            -
                 | 
| 174 | 
            +
                assert(XML.enabled_ftp?)
         | 
| 150 175 | 
             
              end
         | 
| 151 176 |  | 
| 152 177 | 
             
              def test_enabled_http
         | 
| 153 | 
            -
                 | 
| 178 | 
            +
                assert(XML.enabled_http?)
         | 
| 154 179 | 
             
              end
         | 
| 155 180 |  | 
| 156 181 | 
             
              def test_enabled_html
         | 
| 157 | 
            -
                 | 
| 182 | 
            +
                assert(XML.enabled_html?)
         | 
| 158 183 | 
             
              end
         | 
| 159 184 |  | 
| 160 185 | 
             
              def test_enabled_iconv
         | 
| 161 | 
            -
                 | 
| 186 | 
            +
                assert(XML.enabled_iconv?)
         | 
| 162 187 | 
             
              end
         | 
| 163 188 |  | 
| 164 189 | 
             
              def test_enabled_memory_debug
         | 
| @@ -166,35 +191,35 @@ class TestXml < Minitest::Test | |
| 166 191 | 
             
              end
         | 
| 167 192 |  | 
| 168 193 | 
             
              def test_enabled_regexp
         | 
| 169 | 
            -
                 | 
| 194 | 
            +
                assert(XML.enabled_regexp?)
         | 
| 170 195 | 
             
              end
         | 
| 171 196 |  | 
| 172 197 | 
             
              def test_enabled_schemas
         | 
| 173 | 
            -
                 | 
| 198 | 
            +
                assert(XML.enabled_schemas?)
         | 
| 174 199 | 
             
              end
         | 
| 175 200 |  | 
| 176 201 | 
             
              def test_enabled_thread
         | 
| 177 | 
            -
                 | 
| 202 | 
            +
                assert(XML.enabled_thread?)
         | 
| 178 203 | 
             
              end
         | 
| 179 204 |  | 
| 180 205 | 
             
              def test_enabled_unicode
         | 
| 181 | 
            -
                 | 
| 206 | 
            +
                assert(XML.enabled_unicode?)
         | 
| 182 207 | 
             
              end
         | 
| 183 208 |  | 
| 184 209 | 
             
              def test_enabled_xinclude
         | 
| 185 | 
            -
                 | 
| 210 | 
            +
                assert(XML.enabled_xinclude?)
         | 
| 186 211 | 
             
              end
         | 
| 187 212 |  | 
| 188 213 | 
             
              def test_enabled_xpath
         | 
| 189 | 
            -
                 | 
| 214 | 
            +
                assert(XML.enabled_xpath?)
         | 
| 190 215 | 
             
              end
         | 
| 191 216 |  | 
| 192 217 | 
             
              def test_enabled_xpointer
         | 
| 193 | 
            -
                 | 
| 218 | 
            +
                assert(XML.enabled_xpointer?)
         | 
| 194 219 | 
             
              end
         | 
| 195 220 |  | 
| 196 221 | 
             
              def test_enabled_zlib
         | 
| 197 | 
            -
                 | 
| 222 | 
            +
                assert(XML.enabled_zlib?.is_a?(TrueClass) || XML.enabled_zlib?.is_a?(FalseClass))
         | 
| 198 223 | 
             
              end
         | 
| 199 224 |  | 
| 200 225 | 
             
              def test_intent_tree_output
         | 
| @@ -212,7 +237,7 @@ class TestXml < Minitest::Test | |
| 212 237 | 
             
              end
         | 
| 213 238 |  | 
| 214 239 | 
             
              def test_vernum
         | 
| 215 | 
            -
                assert_instance_of( | 
| 240 | 
            +
                assert_instance_of(Integer, XML::VERNUM)
         | 
| 216 241 | 
             
              end
         | 
| 217 242 |  | 
| 218 243 | 
             
              def test_libxml_parser_features
         | 
| @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            # encoding: UTF-8
         | 
| 2 2 |  | 
| 3 | 
            -
            require ' | 
| 3 | 
            +
            require File.expand_path('../test_helper', __FILE__)
         | 
| 4 4 | 
             
            require 'tempfile'
         | 
| 5 5 |  | 
| 6 6 | 
             
            class TestXPath < Minitest::Test
         | 
| @@ -109,7 +109,7 @@ class TestXPath < Minitest::Test | |
| 109 109 |  | 
| 110 110 | 
             
                # No namespace has been yet defined
         | 
| 111 111 | 
             
                assert_raises(XML::Error) do
         | 
| 112 | 
            -
                   | 
| 112 | 
            +
                  doc.find("atom:title")
         | 
| 113 113 | 
             
                end
         | 
| 114 114 |  | 
| 115 115 | 
             
                node = doc.find('atom:title', 'atom:http://www.w3.org/2005/Atom')
         | 
| @@ -164,7 +164,7 @@ class TestXPath < Minitest::Test | |
| 164 164 | 
             
                    doc.root << XML::Node.new("footer")
         | 
| 165 165 | 
             
                  end
         | 
| 166 166 |  | 
| 167 | 
            -
                   | 
| 167 | 
            +
                  doc.find('/header/footer')
         | 
| 168 168 | 
             
                end
         | 
| 169 169 | 
             
              end
         | 
| 170 170 |  | 
| @@ -241,4 +241,4 @@ class TestXPath < Minitest::Test | |
| 241 241 | 
             
                assert_equal(1, nodes.length)
         | 
| 242 242 | 
             
                assert_equal(nodes[0].content, ' my comment ')
         | 
| 243 243 | 
             
              end
         | 
| 244 | 
            -
            end
         | 
| 244 | 
            +
            end
         | 
| @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            # encoding: UTF-8
         | 
| 2 2 |  | 
| 3 | 
            -
            require ' | 
| 3 | 
            +
            require File.expand_path('../test_helper', __FILE__)
         | 
| 4 4 |  | 
| 5 5 |  | 
| 6 6 | 
             
            class TestXPathExpression < Minitest::Test
         | 
| @@ -29,7 +29,7 @@ class TestXPathExpression < Minitest::Test | |
| 29 29 |  | 
| 30 30 | 
             
              def test_find_invalid
         | 
| 31 31 | 
             
                error = assert_raises(TypeError) do
         | 
| 32 | 
            -
                   | 
| 32 | 
            +
                  @doc.find(999)
         | 
| 33 33 | 
             
                end
         | 
| 34 34 | 
             
                assert_equal('Argument should be an instance of a String or XPath::Expression',
         | 
| 35 35 | 
             
                             error.to_s)
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: libxml-ruby
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 3. | 
| 4 | 
            +
              version: 3.1.0
         | 
| 5 5 | 
             
            platform: x64-mingw32
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Ross Bamform
         | 
| @@ -14,22 +14,8 @@ authors: | |
| 14 14 | 
             
            autorequire: 
         | 
| 15 15 | 
             
            bindir: bin
         | 
| 16 16 | 
             
            cert_chain: []
         | 
| 17 | 
            -
            date:  | 
| 17 | 
            +
            date: 2018-02-03 00:00:00.000000000 Z
         | 
| 18 18 | 
             
            dependencies:
         | 
| 19 | 
            -
            - !ruby/object:Gem::Dependency
         | 
| 20 | 
            -
              name: hanna_guado
         | 
| 21 | 
            -
              requirement: !ruby/object:Gem::Requirement
         | 
| 22 | 
            -
                requirements:
         | 
| 23 | 
            -
                - - ">="
         | 
| 24 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 25 | 
            -
                    version: '0'
         | 
| 26 | 
            -
              type: :development
         | 
| 27 | 
            -
              prerelease: false
         | 
| 28 | 
            -
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 29 | 
            -
                requirements:
         | 
| 30 | 
            -
                - - ">="
         | 
| 31 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 32 | 
            -
                    version: '0'
         | 
| 33 19 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 34 20 | 
             
              name: rake-compiler
         | 
| 35 21 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -151,10 +137,6 @@ files: | |
| 151 137 | 
             
            - ext/libxml/ruby_xml_xpointer.c
         | 
| 152 138 | 
             
            - ext/libxml/ruby_xml_xpointer.h
         | 
| 153 139 | 
             
            - ext/vc/libxml_ruby.sln
         | 
| 154 | 
            -
            - lib/2.4/libxml_ruby.so
         | 
| 155 | 
            -
            - lib/libs/libiconv-2.dll
         | 
| 156 | 
            -
            - lib/libs/libxml2-2.dll
         | 
| 157 | 
            -
            - lib/libs/zlib1.dll
         | 
| 158 140 | 
             
            - lib/libxml.rb
         | 
| 159 141 | 
             
            - lib/libxml/attr.rb
         | 
| 160 142 | 
             
            - lib/libxml/attr_decl.rb
         | 
| @@ -222,6 +204,7 @@ files: | |
| 222 204 | 
             
            - test/model/bands.utf-8.xml
         | 
| 223 205 | 
             
            - test/model/bands.xml
         | 
| 224 206 | 
             
            - test/model/books.xml
         | 
| 207 | 
            +
            - test/model/cwm_1_0.xml
         | 
| 225 208 | 
             
            - test/model/merge_bug_data.xml
         | 
| 226 209 | 
             
            - test/model/ruby-lang.html
         | 
| 227 210 | 
             
            - test/model/rubynet.xml
         | 
| @@ -232,47 +215,47 @@ files: | |
| 232 215 | 
             
            - test/model/shiporder.xsd
         | 
| 233 216 | 
             
            - test/model/soap.xml
         | 
| 234 217 | 
             
            - test/model/xinclude.xml
         | 
| 235 | 
            -
            - test/ | 
| 236 | 
            -
            - test/ | 
| 237 | 
            -
            - test/ | 
| 238 | 
            -
            - test/ | 
| 239 | 
            -
            - test/ | 
| 240 | 
            -
            - test/ | 
| 241 | 
            -
            - test/ | 
| 242 | 
            -
            - test/ | 
| 243 | 
            -
            - test/ | 
| 244 | 
            -
            - test/ | 
| 245 | 
            -
            - test/ | 
| 246 | 
            -
            - test/tc_html_parser.rb
         | 
| 247 | 
            -
            - test/tc_html_parser_context.rb
         | 
| 248 | 
            -
            - test/tc_namespace.rb
         | 
| 249 | 
            -
            - test/tc_namespaces.rb
         | 
| 250 | 
            -
            - test/tc_node.rb
         | 
| 251 | 
            -
            - test/tc_node_cdata.rb
         | 
| 252 | 
            -
            - test/tc_node_comment.rb
         | 
| 253 | 
            -
            - test/tc_node_copy.rb
         | 
| 254 | 
            -
            - test/tc_node_edit.rb
         | 
| 255 | 
            -
            - test/tc_node_pi.rb
         | 
| 256 | 
            -
            - test/tc_node_text.rb
         | 
| 257 | 
            -
            - test/tc_node_write.rb
         | 
| 258 | 
            -
            - test/tc_node_xlink.rb
         | 
| 259 | 
            -
            - test/tc_parser.rb
         | 
| 260 | 
            -
            - test/tc_parser_context.rb
         | 
| 261 | 
            -
            - test/tc_properties.rb
         | 
| 262 | 
            -
            - test/tc_reader.rb
         | 
| 263 | 
            -
            - test/tc_relaxng.rb
         | 
| 264 | 
            -
            - test/tc_sax_parser.rb
         | 
| 265 | 
            -
            - test/tc_schema.rb
         | 
| 266 | 
            -
            - test/tc_traversal.rb
         | 
| 267 | 
            -
            - test/tc_writer.rb
         | 
| 268 | 
            -
            - test/tc_xinclude.rb
         | 
| 269 | 
            -
            - test/tc_xml.rb
         | 
| 270 | 
            -
            - test/tc_xpath.rb
         | 
| 271 | 
            -
            - test/tc_xpath_context.rb
         | 
| 272 | 
            -
            - test/tc_xpath_expression.rb
         | 
| 273 | 
            -
            - test/tc_xpointer.rb
         | 
| 218 | 
            +
            - test/test_attr.rb
         | 
| 219 | 
            +
            - test/test_attr_decl.rb
         | 
| 220 | 
            +
            - test/test_attributes.rb
         | 
| 221 | 
            +
            - test/test_canonicalize.rb
         | 
| 222 | 
            +
            - test/test_deprecated_require.rb
         | 
| 223 | 
            +
            - test/test_document.rb
         | 
| 224 | 
            +
            - test/test_document_write.rb
         | 
| 225 | 
            +
            - test/test_dtd.rb
         | 
| 226 | 
            +
            - test/test_encoding.rb
         | 
| 227 | 
            +
            - test/test_encoding_sax.rb
         | 
| 228 | 
            +
            - test/test_error.rb
         | 
| 274 229 | 
             
            - test/test_helper.rb
         | 
| 230 | 
            +
            - test/test_html_parser.rb
         | 
| 231 | 
            +
            - test/test_html_parser_context.rb
         | 
| 232 | 
            +
            - test/test_namespace.rb
         | 
| 233 | 
            +
            - test/test_namespaces.rb
         | 
| 234 | 
            +
            - test/test_node.rb
         | 
| 235 | 
            +
            - test/test_node_cdata.rb
         | 
| 236 | 
            +
            - test/test_node_comment.rb
         | 
| 237 | 
            +
            - test/test_node_copy.rb
         | 
| 238 | 
            +
            - test/test_node_edit.rb
         | 
| 239 | 
            +
            - test/test_node_pi.rb
         | 
| 240 | 
            +
            - test/test_node_text.rb
         | 
| 241 | 
            +
            - test/test_node_write.rb
         | 
| 242 | 
            +
            - test/test_node_xlink.rb
         | 
| 243 | 
            +
            - test/test_parser.rb
         | 
| 244 | 
            +
            - test/test_parser_context.rb
         | 
| 245 | 
            +
            - test/test_properties.rb
         | 
| 246 | 
            +
            - test/test_reader.rb
         | 
| 247 | 
            +
            - test/test_relaxng.rb
         | 
| 248 | 
            +
            - test/test_sax_parser.rb
         | 
| 249 | 
            +
            - test/test_schema.rb
         | 
| 275 250 | 
             
            - test/test_suite.rb
         | 
| 251 | 
            +
            - test/test_traversal.rb
         | 
| 252 | 
            +
            - test/test_writer.rb
         | 
| 253 | 
            +
            - test/test_xinclude.rb
         | 
| 254 | 
            +
            - test/test_xml.rb
         | 
| 255 | 
            +
            - test/test_xpath.rb
         | 
| 256 | 
            +
            - test/test_xpath_context.rb
         | 
| 257 | 
            +
            - test/test_xpath_expression.rb
         | 
| 258 | 
            +
            - test/test_xpointer.rb
         | 
| 276 259 | 
             
            homepage: http://xml4r.github.com/libxml-ruby
         | 
| 277 260 | 
             
            licenses:
         | 
| 278 261 | 
             
            - MIT
         | 
| @@ -293,47 +276,49 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 293 276 | 
             
                  version: '0'
         | 
| 294 277 | 
             
            requirements: []
         | 
| 295 278 | 
             
            rubyforge_project: 
         | 
| 296 | 
            -
            rubygems_version: 2. | 
| 279 | 
            +
            rubygems_version: 2.7.3
         | 
| 297 280 | 
             
            signing_key: 
         | 
| 298 281 | 
             
            specification_version: 4
         | 
| 299 282 | 
             
            summary: Ruby Bindings for LibXML2
         | 
| 300 283 | 
             
            test_files:
         | 
| 301 | 
            -
            - test/ | 
| 302 | 
            -
            - test/ | 
| 303 | 
            -
            - test/ | 
| 304 | 
            -
            - test/ | 
| 305 | 
            -
            - test/ | 
| 306 | 
            -
            - test/ | 
| 307 | 
            -
            - test/ | 
| 308 | 
            -
            - test/ | 
| 309 | 
            -
            - test/ | 
| 310 | 
            -
            - test/ | 
| 311 | 
            -
            - test/ | 
| 312 | 
            -
            - test/ | 
| 313 | 
            -
            - test/ | 
| 314 | 
            -
            - test/ | 
| 315 | 
            -
            - test/ | 
| 316 | 
            -
            - test/ | 
| 317 | 
            -
            - test/ | 
| 318 | 
            -
            - test/ | 
| 319 | 
            -
            - test/ | 
| 320 | 
            -
            - test/ | 
| 321 | 
            -
            - test/ | 
| 322 | 
            -
            - test/ | 
| 323 | 
            -
            - test/ | 
| 324 | 
            -
            - test/ | 
| 325 | 
            -
            - test/ | 
| 326 | 
            -
            - test/ | 
| 327 | 
            -
            - test/ | 
| 328 | 
            -
            - test/ | 
| 329 | 
            -
            - test/ | 
| 330 | 
            -
            - test/ | 
| 331 | 
            -
            - test/ | 
| 332 | 
            -
            - test/ | 
| 333 | 
            -
            - test/ | 
| 334 | 
            -
            - test/ | 
| 335 | 
            -
            - test/ | 
| 336 | 
            -
            - test/ | 
| 337 | 
            -
            - test/ | 
| 338 | 
            -
            - test/ | 
| 339 | 
            -
            - test/ | 
| 284 | 
            +
            - test/test_attr.rb
         | 
| 285 | 
            +
            - test/test_attributes.rb
         | 
| 286 | 
            +
            - test/test_attr_decl.rb
         | 
| 287 | 
            +
            - test/test_canonicalize.rb
         | 
| 288 | 
            +
            - test/test_deprecated_require.rb
         | 
| 289 | 
            +
            - test/test_document.rb
         | 
| 290 | 
            +
            - test/test_document_write.rb
         | 
| 291 | 
            +
            - test/test_dtd.rb
         | 
| 292 | 
            +
            - test/test_encoding.rb
         | 
| 293 | 
            +
            - test/test_encoding_sax.rb
         | 
| 294 | 
            +
            - test/test_error.rb
         | 
| 295 | 
            +
            - test/test_helper.rb
         | 
| 296 | 
            +
            - test/test_html_parser.rb
         | 
| 297 | 
            +
            - test/test_html_parser_context.rb
         | 
| 298 | 
            +
            - test/test_namespace.rb
         | 
| 299 | 
            +
            - test/test_namespaces.rb
         | 
| 300 | 
            +
            - test/test_node.rb
         | 
| 301 | 
            +
            - test/test_node_cdata.rb
         | 
| 302 | 
            +
            - test/test_node_comment.rb
         | 
| 303 | 
            +
            - test/test_node_copy.rb
         | 
| 304 | 
            +
            - test/test_node_edit.rb
         | 
| 305 | 
            +
            - test/test_node_pi.rb
         | 
| 306 | 
            +
            - test/test_node_text.rb
         | 
| 307 | 
            +
            - test/test_node_write.rb
         | 
| 308 | 
            +
            - test/test_node_xlink.rb
         | 
| 309 | 
            +
            - test/test_parser.rb
         | 
| 310 | 
            +
            - test/test_parser_context.rb
         | 
| 311 | 
            +
            - test/test_properties.rb
         | 
| 312 | 
            +
            - test/test_reader.rb
         | 
| 313 | 
            +
            - test/test_relaxng.rb
         | 
| 314 | 
            +
            - test/test_sax_parser.rb
         | 
| 315 | 
            +
            - test/test_schema.rb
         | 
| 316 | 
            +
            - test/test_suite.rb
         | 
| 317 | 
            +
            - test/test_traversal.rb
         | 
| 318 | 
            +
            - test/test_writer.rb
         | 
| 319 | 
            +
            - test/test_xinclude.rb
         | 
| 320 | 
            +
            - test/test_xml.rb
         | 
| 321 | 
            +
            - test/test_xpath.rb
         | 
| 322 | 
            +
            - test/test_xpath_context.rb
         | 
| 323 | 
            +
            - test/test_xpath_expression.rb
         | 
| 324 | 
            +
            - test/test_xpointer.rb
         |