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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e49a111e3553773b174d7d458f732cb59ddab794ebcc759bb62c9bed93bef35b
4
- data.tar.gz: 3e4b24d7468c531d78ba6c7af5397692e20e036ac5720f75bbb0b416cafaaadf
3
+ metadata.gz: 775ea3e8ebe1ca3b1f99a984c20cd6bab0d47ecd96b66af97c6a3d1701d5539a
4
+ data.tar.gz: 77c767e8dc7f34d00bbd6efc742932b8799574a26ced31f964688ba99a9f7eb5
5
5
  SHA512:
6
- metadata.gz: 40c8f1353dc716f929cfbb62870864dd0d9b0c1c91260f11220f979ee63eead7b2a8ce23cd270a73b625445a05a35f0616c867bd55290020e2e6ebe89c0e2fec
7
- data.tar.gz: 3a0763dca6b8742338c89abc9c42c0dfe834f6c13c5e43736045dd51d52b62ba37024af0f1cadccedbc3b5ff5bf057bb7870f0f99ebac4811fa8e83a874cbb46
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 "./front"
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&.at("//bibdata/ext/function")&.text
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")
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module Iec
3
- VERSION = "2.3.1".freeze
3
+ VERSION = "2.3.2".freeze
4
4
  end
5
5
  end
6
6
 
@@ -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.1"
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.1
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-08-28 00:00:00.000000000 Z
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.1
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.1
26
+ version: 2.5.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pubid-iec
29
29
  requirement: !ruby/object:Gem::Requirement