aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rexml
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-25 02:26:30 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-25 02:26:30 +0000
commit04e0609a0685b6e263ece22765ffa1393b5c54ad (patch)
tree63e4e831626614551e62dd50ff30225664c9e0f5 /lib/rexml
parent1bcc76338daa90825aa6de43e903c5717bdca663 (diff)
downloadruby-04e0609a0685b6e263ece22765ffa1393b5c54ad.tar.gz
Import REXML 3.1.9
It restores removed REXML::Parsers::BaseParser::UNQME_STR. Because it's used by kramdown. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml')
-rw-r--r--lib/rexml/parsers/baseparser.rb4
-rw-r--r--lib/rexml/rexml.gemspec1
-rw-r--r--lib/rexml/rexml.rb2
3 files changed, 6 insertions, 1 deletions
diff --git a/lib/rexml/parsers/baseparser.rb b/lib/rexml/parsers/baseparser.rb
index de337a74d5..39e9ec3fb1 100644
--- a/lib/rexml/parsers/baseparser.rb
+++ b/lib/rexml/parsers/baseparser.rb
@@ -37,6 +37,10 @@ module REXML
QNAME_STR= "(?:(#{NCNAME_STR}):)?(#{NCNAME_STR})"
QNAME = /(#{QNAME_STR})/
+ # Just for backward compatibility. For example, kramdown uses this.
+ # It's not used in REXML.
+ UNAME_STR= "(?:#{NCNAME_STR}:)?#{NCNAME_STR}"
+
NAMECHAR = '[\-\w\.:]'
NAME = "([\\w:]#{NAMECHAR}*)"
NMTOKEN = "(?:#{NAMECHAR})+"
diff --git a/lib/rexml/rexml.gemspec b/lib/rexml/rexml.gemspec
index 8362ca3c3a..6fe7e635f1 100644
--- a/lib/rexml/rexml.gemspec
+++ b/lib/rexml/rexml.gemspec
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
".travis.yml",
"Gemfile",
"LICENSE.txt",
+ "NEWS.md",
"README.md",
"Rakefile",
"lib/rexml/attlistdecl.rb",
diff --git a/lib/rexml/rexml.rb b/lib/rexml/rexml.rb
index 654f54799f..7851c78bf5 100644
--- a/lib/rexml/rexml.rb
+++ b/lib/rexml/rexml.rb
@@ -24,7 +24,7 @@
module REXML
COPYRIGHT = "Copyright © 2001-2008 Sean Russell <ser@germane-software.com>"
DATE = "2008/019"
- VERSION = "3.1.8"
+ VERSION = "3.1.9"
REVISION = ""
Copyright = COPYRIGHT