rexml 3.1.8 → 3.1.9
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.
Potentially problematic release.
This version of rexml might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/NEWS.md +47 -0
- data/lib/rexml/parsers/baseparser.rb +4 -0
- data/lib/rexml/rexml.rb +1 -1
- data/rexml.gemspec +1 -1
- metadata +4 -5
- data/run-test.rb +0 -9
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 39ed718e89f2e28e716bbaf921b7567fb49f15efd6dba9b79d4db51361e5d6f0
         | 
| 4 | 
            +
              data.tar.gz: 9edba002d8bc9d9024fb416f29eebffab6725a808e611cdd781d438cf4bb3945
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: e8e144b341ae9192d3497814bb5fa0a091f31a0ed20185d8a09a3efc7b96edefe1042259d6e0aead8fd0ae5c9a67576c89e9b2fd2b23e1d8df5c2fdd2f3d2f53
         | 
| 7 | 
            +
              data.tar.gz: ecbe06b88adf772cec23a90b40a0201a3e4b2d52d5afb0ca6af4a2f1b780d2adacf8fc0d2b425c9e209c87027207ae4954bbbac47b743c9a748092e1203fa4d0
         | 
    
        data/NEWS.md
    ADDED
    
    | @@ -0,0 +1,47 @@ | |
| 1 | 
            +
            # News
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            ## 3.1.9 - 2018-12-20 {#version-3-1-9}
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            ### Improvements
         | 
| 6 | 
            +
             | 
| 7 | 
            +
              * Improved backward compatibility.
         | 
| 8 | 
            +
             | 
| 9 | 
            +
                Restored `REXML::Parsers::BaseParser::UNQME_STR` because it's used
         | 
| 10 | 
            +
                by kramdown.
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            ## 3.1.8 - 2018-12-20 {#version-3-1-8}
         | 
| 13 | 
            +
             | 
| 14 | 
            +
            ### Improvements
         | 
| 15 | 
            +
             | 
| 16 | 
            +
              * Added support for customizing quote character in prologue.
         | 
| 17 | 
            +
                [GitHub#8][Bug #9367][Reported by Takashi Oguma]
         | 
| 18 | 
            +
             | 
| 19 | 
            +
                * You can use `"` as quote character by specifying `:quote` to
         | 
| 20 | 
            +
                  `REXML::Document#context[:prologue_quote]`.
         | 
| 21 | 
            +
             | 
| 22 | 
            +
                * You can use `'` as quote character by specifying `:apostrophe`
         | 
| 23 | 
            +
                  to `REXML::Document#context[:prologue_quote]`.
         | 
| 24 | 
            +
             | 
| 25 | 
            +
              * Added processing instruction target check. The target must not nil.
         | 
| 26 | 
            +
                [GitHub#7][Reported by Ariel Zelivansky]
         | 
| 27 | 
            +
             | 
| 28 | 
            +
              * Added name check for element and attribute.
         | 
| 29 | 
            +
                [GitHub#7][Reported by Ariel Zelivansky]
         | 
| 30 | 
            +
             | 
| 31 | 
            +
              * Stopped to use `Exception`.
         | 
| 32 | 
            +
                [GitHub#9][Patch by Jean Boussier]
         | 
| 33 | 
            +
             | 
| 34 | 
            +
            ### Fixes
         | 
| 35 | 
            +
             | 
| 36 | 
            +
              * Fixed a bug that `REXML::Text#clone` escapes value twice.
         | 
| 37 | 
            +
                [ruby-dev:50626][Bug #15058][Reported by Ryosuke Nanba]
         | 
| 38 | 
            +
             | 
| 39 | 
            +
            ### Thanks
         | 
| 40 | 
            +
             | 
| 41 | 
            +
              * Takashi Oguma
         | 
| 42 | 
            +
             | 
| 43 | 
            +
              * Ariel Zelivansky
         | 
| 44 | 
            +
             | 
| 45 | 
            +
              * Jean Boussier
         | 
| 46 | 
            +
             | 
| 47 | 
            +
              * Ryosuke Nanba
         | 
| @@ -37,6 +37,10 @@ module REXML | |
| 37 37 | 
             
                  QNAME_STR= "(?:(#{NCNAME_STR}):)?(#{NCNAME_STR})"
         | 
| 38 38 | 
             
                  QNAME = /(#{QNAME_STR})/
         | 
| 39 39 |  | 
| 40 | 
            +
                  # Just for backward compatibility. For example, kramdown uses this.
         | 
| 41 | 
            +
                  # It's not used in REXML.
         | 
| 42 | 
            +
                  UNAME_STR= "(?:#{NCNAME_STR}:)?#{NCNAME_STR}"
         | 
| 43 | 
            +
             | 
| 40 44 | 
             
                  NAMECHAR = '[\-\w\.:]'
         | 
| 41 45 | 
             
                  NAME = "([\\w:]#{NAMECHAR}*)"
         | 
| 42 46 | 
             
                  NMTOKEN = "(?:#{NAMECHAR})+"
         | 
    
        data/lib/rexml/rexml.rb
    CHANGED
    
    
    
        data/rexml.gemspec
    CHANGED
    
    | @@ -21,6 +21,7 @@ Gem::Specification.new do |spec| | |
| 21 21 | 
             
                ".travis.yml",
         | 
| 22 22 | 
             
                "Gemfile",
         | 
| 23 23 | 
             
                "LICENSE.txt",
         | 
| 24 | 
            +
                "NEWS.md",
         | 
| 24 25 | 
             
                "README.md",
         | 
| 25 26 | 
             
                "Rakefile",
         | 
| 26 27 | 
             
                "lib/rexml/attlistdecl.rb",
         | 
| @@ -74,7 +75,6 @@ Gem::Specification.new do |spec| | |
| 74 75 | 
             
                "lib/rexml/xpath.rb",
         | 
| 75 76 | 
             
                "lib/rexml/xpath_parser.rb",
         | 
| 76 77 | 
             
                "rexml.gemspec",
         | 
| 77 | 
            -
                "run-test.rb",
         | 
| 78 78 | 
             
              ]
         | 
| 79 79 | 
             
              spec.bindir        = "exe"
         | 
| 80 80 | 
             
              spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: rexml
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 3.1. | 
| 4 | 
            +
              version: 3.1.9
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Kouhei Sutou
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2018-12- | 
| 11 | 
            +
            date: 2018-12-25 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         | 
| @@ -49,6 +49,7 @@ files: | |
| 49 49 | 
             
            - ".travis.yml"
         | 
| 50 50 | 
             
            - Gemfile
         | 
| 51 51 | 
             
            - LICENSE.txt
         | 
| 52 | 
            +
            - NEWS.md
         | 
| 52 53 | 
             
            - README.md
         | 
| 53 54 | 
             
            - Rakefile
         | 
| 54 55 | 
             
            - lib/rexml/attlistdecl.rb
         | 
| @@ -102,7 +103,6 @@ files: | |
| 102 103 | 
             
            - lib/rexml/xpath.rb
         | 
| 103 104 | 
             
            - lib/rexml/xpath_parser.rb
         | 
| 104 105 | 
             
            - rexml.gemspec
         | 
| 105 | 
            -
            - run-test.rb
         | 
| 106 106 | 
             
            homepage: https://github.com/ruby/rexml
         | 
| 107 107 | 
             
            licenses:
         | 
| 108 108 | 
             
            - BSD-2-Clause
         | 
| @@ -122,8 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 122 122 | 
             
                - !ruby/object:Gem::Version
         | 
| 123 123 | 
             
                  version: '0'
         | 
| 124 124 | 
             
            requirements: []
         | 
| 125 | 
            -
             | 
| 126 | 
            -
            rubygems_version: 3.0.0.beta3
         | 
| 125 | 
            +
            rubygems_version: 3.0.1
         | 
| 127 126 | 
             
            signing_key: 
         | 
| 128 127 | 
             
            specification_version: 4
         | 
| 129 128 | 
             
            summary: An XML toolkit for Ruby
         |