metanorma-iec 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/metanorma/iec/converter.rb +4 -5
- data/lib/metanorma/iec/version.rb +1 -1
- data/metanorma-iec.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 775ea3e8ebe1ca3b1f99a984c20cd6bab0d47ecd96b66af97c6a3d1701d5539a
|
4
|
+
data.tar.gz: 77c767e8dc7f34d00bbd6efc742932b8799574a26ced31f964688ba99a9f7eb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36af1bdfc571c505d61b2f645a8c9b17688f4ad66d0fbbd53b169e7ccacb31ba2de46ec98bcff92a7ab84ac9e028e2f29a30855c85be2824549c3794b5d2432f
|
7
|
+
data.tar.gz: c3ad912193409e961b414a963dbf0ef96727be45c1895e6c554054dd5b2210d95f28fcd1a0d64259e849b79020e3976280e94edf68097a603f72960dacf1d006
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require "asciidoctor"
|
2
2
|
require "metanorma-iso"
|
3
3
|
require "metanorma/iso/converter"
|
4
|
-
require_relative "
|
4
|
+
require_relative "front"
|
5
5
|
|
6
6
|
module Metanorma
|
7
7
|
module Iec
|
@@ -29,13 +29,12 @@ module Metanorma
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def doctype_validate(xmldoc)
|
32
|
-
doctype = xmldoc&.at("//bibdata/ext/doctype")&.text
|
33
32
|
%w(international-standard technical-specification technical-report
|
34
33
|
publicly-available-specification international-workshop-agreement
|
35
|
-
guide interpretation-sheet).include? doctype or
|
34
|
+
guide interpretation-sheet).include? @doctype or
|
36
35
|
@log.add("Document Attributes", nil,
|
37
|
-
"#{doctype} is not a recognised document type")
|
38
|
-
if function = xmldoc
|
36
|
+
"#{@doctype} is not a recognised document type")
|
37
|
+
if function = xmldoc.at("//bibdata/ext/function")&.text
|
39
38
|
%w(emc quality-assurance safety environment).include? function or
|
40
39
|
@log.add("Document Attributes", nil,
|
41
40
|
"#{function} is not a recognised document function")
|
data/metanorma-iec.gemspec
CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.test_files = `git ls-files -- {spec}/*`.split("\n")
|
31
31
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
32
32
|
|
33
|
-
spec.add_dependency "metanorma-iso", "~> 2.5.
|
33
|
+
spec.add_dependency "metanorma-iso", "~> 2.5.2"
|
34
34
|
spec.add_dependency "pubid-iec"
|
35
35
|
spec.add_dependency "ruby-jing"
|
36
36
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-iso
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.5.
|
19
|
+
version: 2.5.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.5.
|
26
|
+
version: 2.5.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pubid-iec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|