metanorma-jis 0.1.1 → 0.1.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: 4366e5bb7877d5bf27560046213279fdac21ff1b21a7cfcf2cb1456f39a03091
4
- data.tar.gz: fdc359c5a0d15c34f767b6d7529a6837ef5e9b8a394edfeed15c9e6726e9f4b9
3
+ metadata.gz: 4996ea4b1bb499c2bf908cc1c253b8639b14b043826073dd25bf76b9b5e4a171
4
+ data.tar.gz: d81bbb783eed5d0cfd07368f4ca5a0feca7c04fe02bf99081a1dcb2dc72624cb
5
5
  SHA512:
6
- metadata.gz: 92ccc85ff096d361680d9736b684adc199547be3a4edabdcbd923b1ff5d03af47f255ebc33602efc5b2d03085d2aa0a09f064dfec756e8093c7f0474d97796fa
7
- data.tar.gz: bffef6682d58e65c5f85614a80baf4d0c99449b20e5a4b90200592dcaa05f64c597383b8a095e441597a1fe2bc859ef3c49bbb4dd254ea73d98ed91c07439d4d
6
+ metadata.gz: bb4ff093637c801ed9dd560b68000fd6a39ab5499ac31f3f48d98796450184e20357203aeb494a9dbfa4c5d07e654900e4df3dda181b617d735882671dc445aa
7
+ data.tar.gz: 3861d3f219c83c43c1dd34d02a26a77ea9f54dc315435f866c744f5c302119ab2250927977ccc288d8513cc71b766b552f106b6af59ac452f6bd4b5086848d4c
@@ -1,12 +1,11 @@
1
1
  module Metanorma
2
2
  module JIS
3
3
  class Converter < ISO::Converter
4
- def doctype_validate(xmldoc)
5
- doctype = xmldoc&.at("//bibdata/ext/doctype")&.text
4
+ def doctype_validate(_xmldoc)
6
5
  %w(japanese-industrial-standard technical-report
7
- technical-specification amendment).include? doctype or
6
+ technical-specification amendment).include? @doctype or
8
7
  @log.add("Document Attributes", nil,
9
- "#{doctype} is not a recognised document type")
8
+ "#{@doctype} is not a recognised document type")
10
9
  end
11
10
 
12
11
  def script_validate(xmldoc)
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module JIS
3
- VERSION = "0.1.1".freeze
3
+ VERSION = "0.1.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-jis"
35
35
 
36
36
  spec.add_development_dependency "debug"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-jis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.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-jis
29
29
  requirement: !ruby/object:Gem::Requirement