Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Sep 11, 2023
1 parent 2f8c0b5 commit 30e0f7c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
4 changes: 0 additions & 4 deletions Gemfile.devel

This file was deleted.

2 changes: 1 addition & 1 deletion lib/metanorma/ieee/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Metanorma
module IEEE
VERSION = "1.1.1".freeze
VERSION = "1.1.2".freeze
end
end
2 changes: 1 addition & 1 deletion metanorma-ieee.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
12 changes: 6 additions & 6 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def metadata(xml)

def htmlencode(xml)
HTMLEntities.new.encode(xml, :hexadecimal)
.gsub(/>/, ">").gsub(/
/, "\n")
.gsub(/&#x22;/, '"').gsub(/&#x3c;/, "<")
.gsub(/&#x26;/, "&").gsub(/&#x27;/, "'")
.gsub("&#x3e;", ">").gsub("&#xa;", "\n")
.gsub("&#x22;", '"').gsub("&#x3c;", "<")
.gsub("&#x26;", "&").gsub("&#x27;", "'")
.gsub(/\\u(....)/) do |_s|
"&#x#{$1.downcase};"
end
Expand Down Expand Up @@ -303,12 +303,12 @@ def word2xml(filename)
File.read(filename, encoding: "UTF-8")
.sub(/^.*<html/m, "<html")
.sub(/<\/html>.*$/m, "</html>")
.gsub(/<\/o:/, "</").gsub(/<o:/, "<")
.gsub(/epub:type/, "type")
.gsub("</o:", "</").gsub("<o:", "<")
.gsub("epub:type", "type")
end

def mock_pdf
allow(Mn2pdf).to receive(:convert) do |url, output, _c, _d|
FileUtils.cp(url.gsub(/"/, ""), output.gsub(/"/, ""))
FileUtils.cp(url.gsub('"', ""), output.gsub('"', ""))
end
end

0 comments on commit 30e0f7c

Please sign in to comment.