relaton-jis 2.1.1 → 2.2.0.pre.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CLAUDE.md +3 -1
- data/Gemfile +8 -0
- data/Rakefile +3 -3
- data/lib/relaton/jis/bibliography.rb +16 -11
- data/lib/relaton/jis/data_fetcher.rb +23 -0
- data/lib/relaton/jis/hit.rb +44 -27
- data/lib/relaton/jis/hit_collection.rb +77 -61
- data/lib/relaton/jis/processor.rb +1 -1
- data/lib/relaton/jis/scraper.rb +2 -2
- data/lib/relaton/jis/version.rb +1 -1
- data/lib/relaton/jis.rb +3 -0
- metadata +23 -16
- data/.rubocop.yml +0 -12
- data/grammars/basicdoc.rng +0 -2140
- data/grammars/biblio-standoc.rng +0 -268
- data/grammars/biblio.rng +0 -2125
- data/grammars/relaton-jis-compile.rng +0 -11
- data/grammars/relaton-jis.rng +0 -76
- data/relaton-jis.gemspec +0 -44
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
|
|
3
|
-
<include href="basicdoc.rng"/>
|
|
4
|
-
<include href="relaton-jis.rng"/>
|
|
5
|
-
<start>
|
|
6
|
-
<choice>
|
|
7
|
-
<ref name="bibitem"/>
|
|
8
|
-
<ref name="bibdata"/>
|
|
9
|
-
</choice>
|
|
10
|
-
</start>
|
|
11
|
-
</grammar>
|
data/grammars/relaton-jis.rng
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
|
3
|
-
<include href="biblio-standoc.rng">
|
|
4
|
-
<define name="DocumentType">
|
|
5
|
-
<choice>
|
|
6
|
-
<value>japanese-industrial-standard</value>
|
|
7
|
-
<value>technical-report</value>
|
|
8
|
-
<value>technical-specification</value>
|
|
9
|
-
<value>amendment</value>
|
|
10
|
-
</choice>
|
|
11
|
-
</define>
|
|
12
|
-
<define name="structuredidentifier">
|
|
13
|
-
<element name="structuredidentifier">
|
|
14
|
-
<optional>
|
|
15
|
-
<attribute name="type"/>
|
|
16
|
-
</optional>
|
|
17
|
-
<group>
|
|
18
|
-
<ref name="documentnumber"/>
|
|
19
|
-
<optional>
|
|
20
|
-
<ref name="tc-documentnumber"/>
|
|
21
|
-
</optional>
|
|
22
|
-
</group>
|
|
23
|
-
</element>
|
|
24
|
-
</define>
|
|
25
|
-
</include>
|
|
26
|
-
<define name="BibDataExtensionType" combine="interleave">
|
|
27
|
-
<optional>
|
|
28
|
-
<ref name="stagename">
|
|
29
|
-
<a:documentation>Human-readable name of the stage of publication, corresponding to the numeric stage code given in `/bibdata/status/stage`</a:documentation>
|
|
30
|
-
</ref>
|
|
31
|
-
</optional>
|
|
32
|
-
</define>
|
|
33
|
-
<define name="documentnumber">
|
|
34
|
-
<element name="project-number">
|
|
35
|
-
<optional>
|
|
36
|
-
<attribute name="part">
|
|
37
|
-
<data type="int"/>
|
|
38
|
-
</attribute>
|
|
39
|
-
</optional>
|
|
40
|
-
<optional>
|
|
41
|
-
<attribute name="subpart">
|
|
42
|
-
<data type="int"/>
|
|
43
|
-
</attribute>
|
|
44
|
-
</optional>
|
|
45
|
-
<optional>
|
|
46
|
-
<attribute name="amendment">
|
|
47
|
-
<data type="int"/>
|
|
48
|
-
</attribute>
|
|
49
|
-
</optional>
|
|
50
|
-
<optional>
|
|
51
|
-
<attribute name="corrigendum">
|
|
52
|
-
<data type="int"/>
|
|
53
|
-
</attribute>
|
|
54
|
-
</optional>
|
|
55
|
-
<optional>
|
|
56
|
-
<attribute name="origyr">
|
|
57
|
-
<ref name="ISO8601Date"/>
|
|
58
|
-
</attribute>
|
|
59
|
-
</optional>
|
|
60
|
-
<text/>
|
|
61
|
-
</element>
|
|
62
|
-
</define>
|
|
63
|
-
<define name="tc-documentnumber">
|
|
64
|
-
<element name="tc-document-number">
|
|
65
|
-
<data type="int"/>
|
|
66
|
-
</element>
|
|
67
|
-
</define>
|
|
68
|
-
<define name="stagename">
|
|
69
|
-
<element name="stagename">
|
|
70
|
-
<optional>
|
|
71
|
-
<attribute name="abbreviation"/>
|
|
72
|
-
</optional>
|
|
73
|
-
<text/>
|
|
74
|
-
</element>
|
|
75
|
-
</define>
|
|
76
|
-
</grammar>
|
data/relaton-jis.gemspec
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative "lib/relaton/jis/version"
|
|
4
|
-
|
|
5
|
-
Gem::Specification.new do |spec|
|
|
6
|
-
spec.name = "relaton-jis"
|
|
7
|
-
spec.version = Relaton::Jis::VERSION
|
|
8
|
-
spec.authors = ["Ribose Inc."]
|
|
9
|
-
spec.email = ["open.source@ribose.com"]
|
|
10
|
-
|
|
11
|
-
spec.summary = "Relaton::Jis: retrieve IETF Standards for bibliographic " \
|
|
12
|
-
"use using the BibliographicItem model"
|
|
13
|
-
spec.description = "Relaton::Jis: retrieve IETF Standards for bibliographic " \
|
|
14
|
-
"use using the BibliographicItem model"
|
|
15
|
-
spec.homepage = "https://github.com/relaton/relaton-jis"
|
|
16
|
-
spec.license = "MIT"
|
|
17
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 3.2.0")
|
|
18
|
-
|
|
19
|
-
# spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
|
|
20
|
-
|
|
21
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
|
22
|
-
# spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
|
|
23
|
-
# spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
|
|
24
|
-
|
|
25
|
-
# Specify which files should be added to the gem when it is released.
|
|
26
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
27
|
-
spec.files = Dir.chdir(__dir__) do
|
|
28
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
|
29
|
-
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
spec.bindir = "exe"
|
|
33
|
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
|
34
|
-
spec.require_paths = ["lib"]
|
|
35
|
-
|
|
36
|
-
# Uncomment to register a new dependency of your gem
|
|
37
|
-
spec.add_dependency "mechanize", "~> 2.10"
|
|
38
|
-
spec.add_dependency "relaton-core", "~> 0.0.13"
|
|
39
|
-
spec.add_dependency "relaton-index", "~> 0.2.0"
|
|
40
|
-
spec.add_dependency "relaton-iso", "~> 2.1.0"
|
|
41
|
-
|
|
42
|
-
# For more information and examples about making a new gem, check out our
|
|
43
|
-
# guide at: https://bundler.io/guides/creating_gem.html
|
|
44
|
-
end
|