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 +4 -4
- data/lib/metanorma/jis/validate.rb +3 -4
- data/lib/metanorma/jis/version.rb +1 -1
- data/metanorma-jis.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: 4996ea4b1bb499c2bf908cc1c253b8639b14b043826073dd25bf76b9b5e4a171
|
4
|
+
data.tar.gz: d81bbb783eed5d0cfd07368f4ca5a0feca7c04fe02bf99081a1dcb2dc72624cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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)
|
data/metanorma-jis.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-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.
|
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-
|
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-jis
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|