rexml 3.2.9 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rexml might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/NEWS.md +14 -2
- data/lib/rexml/rexml.rb +1 -1
- data/lib/rexml/source.rb +20 -0
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25c91d880b1d9de11210a1fec235f630b6948e09104aa810b3cdde1a3d277139
|
4
|
+
data.tar.gz: b06ffa92b8f883052db3b41fcc025b9b09c0f9117c301476de0264203c94632f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21fe3b359774dd752c405d74c4888f25dfd55c436ca0f02cc34f602aff88b99f80b97cdb186bf9ccc40e52783b9f90f985d8e87fd0687972cedaf759c808cc9d
|
7
|
+
data.tar.gz: d613797dcd6f20b6c1d17deca5235a91456165fbc04dcd4fa0ec419e72bd8ba0aee7eadbb2a7e2a65263f74e0dcfacc99a9976ffe396717c2956b7f5155c2725
|
data/NEWS.md
CHANGED
@@ -1,12 +1,24 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
-
## 3.
|
3
|
+
## 3.3.0 - 2024-06-11 {#version-3-3-0}
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* Added support for strscan 0.7.0 installed with Ruby 2.6.
|
8
|
+
* GH-142
|
9
|
+
* Reported by Fernando Trigoso.
|
10
|
+
|
11
|
+
### Thanks
|
12
|
+
|
13
|
+
* Fernando Trigoso
|
14
|
+
|
15
|
+
## 3.2.9 - 2024-06-09 {#version-3-2-9}
|
4
16
|
|
5
17
|
### Improvements
|
6
18
|
|
7
19
|
* Added support for old strscan.
|
8
20
|
* GH-132
|
9
|
-
* Reported by Adam
|
21
|
+
* Reported by Adam.
|
10
22
|
|
11
23
|
* Improved attribute value parse performance.
|
12
24
|
* GH-135
|
data/lib/rexml/rexml.rb
CHANGED
data/lib/rexml/source.rb
CHANGED
@@ -1,8 +1,28 @@
|
|
1
1
|
# coding: US-ASCII
|
2
2
|
# frozen_string_literal: false
|
3
|
+
|
4
|
+
require "strscan"
|
5
|
+
|
3
6
|
require_relative 'encoding'
|
4
7
|
|
5
8
|
module REXML
|
9
|
+
if StringScanner::Version < "1.0.0"
|
10
|
+
module StringScannerCheckScanString
|
11
|
+
refine StringScanner do
|
12
|
+
def check(pattern)
|
13
|
+
pattern = /#{Regexp.escape(pattern)}/ if pattern.is_a?(String)
|
14
|
+
super(pattern)
|
15
|
+
end
|
16
|
+
|
17
|
+
def scan(pattern)
|
18
|
+
pattern = /#{Regexp.escape(pattern)}/ if pattern.is_a?(String)
|
19
|
+
super(pattern)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
using StringScannerCheckScanString
|
24
|
+
end
|
25
|
+
|
6
26
|
# Generates Source-s. USE THIS CLASS.
|
7
27
|
class SourceFactory
|
8
28
|
# Generates a Source object
|
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rexml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
|
+
autorequire:
|
8
9
|
bindir: bin
|
9
10
|
cert_chain: []
|
10
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-11 00:00:00.000000000 Z
|
11
12
|
dependencies:
|
12
13
|
- !ruby/object:Gem::Dependency
|
13
14
|
name: strscan
|
@@ -116,6 +117,7 @@ homepage: https://github.com/ruby/rexml
|
|
116
117
|
licenses:
|
117
118
|
- BSD-2-Clause
|
118
119
|
metadata: {}
|
120
|
+
post_install_message:
|
119
121
|
rdoc_options:
|
120
122
|
- "--main"
|
121
123
|
- README.md
|
@@ -132,7 +134,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
134
|
- !ruby/object:Gem::Version
|
133
135
|
version: '0'
|
134
136
|
requirements: []
|
135
|
-
rubygems_version: 3.
|
137
|
+
rubygems_version: 3.4.20
|
138
|
+
signing_key:
|
136
139
|
specification_version: 4
|
137
140
|
summary: An XML toolkit for Ruby
|
138
141
|
test_files: []
|