From 30e0f7cff6845d52029e79fafc3dd69ee76d29a0 Mon Sep 17 00:00:00 2001 From: Nick Nicholas Date: Mon, 11 Sep 2023 19:35:27 +1000 Subject: [PATCH] version bump --- Gemfile.devel | 4 ---- lib/metanorma/ieee/version.rb | 2 +- metanorma-ieee.gemspec | 2 +- spec/spec_helper.rb | 12 ++++++------ 4 files changed, 8 insertions(+), 12 deletions(-) delete mode 100644 Gemfile.devel diff --git a/Gemfile.devel b/Gemfile.devel deleted file mode 100644 index f192ccc..0000000 --- a/Gemfile.devel +++ /dev/null @@ -1,4 +0,0 @@ -gem "metanorma-standoc", git: "https://github.com/metanorma/metanorma-standoc", branch: "fix/doctype-attribute" -gem "metanorma-iso", git: "https://github.com/metanorma/metanorma-iso", branch: "fix/doctype-attribute" -gem "isodoc", git: "https://github.com/metanorma/isodoc", branch: "main" - diff --git a/lib/metanorma/ieee/version.rb b/lib/metanorma/ieee/version.rb index 904c113..a0fda94 100644 --- a/lib/metanorma/ieee/version.rb +++ b/lib/metanorma/ieee/version.rb @@ -1,5 +1,5 @@ module Metanorma module IEEE - VERSION = "1.1.1".freeze + VERSION = "1.1.2".freeze end end diff --git a/metanorma-ieee.gemspec b/metanorma-ieee.gemspec index 02ae275..14de4e0 100644 --- a/metanorma-ieee.gemspec +++ b/metanorma-ieee.gemspec @@ -25,7 +25,7 @@ Gem::Specification.new do |spec| spec.require_paths = ["lib"] spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0") - spec.add_dependency "metanorma-standoc", "~> 2.5.4" + spec.add_dependency "metanorma-standoc", "~> 2.6.0" spec.add_dependency "mnconvert", "~> 1.20" #spec.add_dependency "pubid-ieee", "~> 0.1.1" #spec.add_dependency "pubid-iso", "~> 0.5.3" diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 00b9f83..0e9b613 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -63,9 +63,9 @@ def metadata(xml) def htmlencode(xml) HTMLEntities.new.encode(xml, :hexadecimal) - .gsub(/>/, ">").gsub(/ /, "\n") - .gsub(/"/, '"').gsub(/</, "<") - .gsub(/&/, "&").gsub(/'/, "'") + .gsub(">", ">").gsub(" ", "\n") + .gsub(""", '"').gsub("<", "<") + .gsub("&", "&").gsub("'", "'") .gsub(/\\u(....)/) do |_s| "&#x#{$1.downcase};" end @@ -303,12 +303,12 @@ def word2xml(filename) File.read(filename, encoding: "UTF-8") .sub(/^.*.*$/m, "") - .gsub(/<\/o:/, "