relaton-ietf 1.14.5 → 1.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +2 -1
- data/README.adoc +1 -1
- data/grammars/biblio.rng +1 -1
- data/lib/relaton_ietf/config.rb +10 -0
- data/lib/relaton_ietf/ietf_bibliographic_item.rb +1 -1
- data/lib/relaton_ietf/ietf_bibliography.rb +3 -3
- data/lib/relaton_ietf/util.rb +9 -0
- data/lib/relaton_ietf/version.rb +1 -1
- data/lib/relaton_ietf.rb +6 -4
- data/relaton_ietf.gemspec +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d38fb8a37a82452b362231a9c9c5b0424c736ed9b736590d89a486fad08b56e3
|
4
|
+
data.tar.gz: 0af04bcb2a9573b6548442a2182a476de630f19ad10c1c6a492a9271fe905251
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28592296140fadf98b245fd0efdb62bf9e1c808a4487cd18e8025dcc1daf303cc90466ca0bf21b2c433652b4543265f866d0b83246a1764089be80e48dabb4e6
|
7
|
+
data.tar.gz: cae243d8e3af11d86d7de6969442fbbcf5e9c08cdaa0839237ec8a2dd6222da58a57132e3cfa8060daa1385fe0668767aae4223c2b6f0000ba77365ddbfd841f
|
@@ -7,7 +7,8 @@ on:
|
|
7
7
|
inputs:
|
8
8
|
next_version:
|
9
9
|
description: |
|
10
|
-
Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
|
10
|
+
Next release version. Possible values: x.y.z, major, minor, patch (or pre|rc|etc).
|
11
|
+
Also, you can pass 'skip' to skip 'git tag' and do 'gem push' for the current version
|
11
12
|
required: true
|
12
13
|
default: 'skip'
|
13
14
|
repository_dispatch:
|
data/README.adoc
CHANGED
@@ -85,7 +85,7 @@ item.to_xml bibdata: true
|
|
85
85
|
<docidentifier type="IETF" primary="true">RFC 8341</docidentifier>
|
86
86
|
<docidentifier type="DOI">10.17487/RFC8341</docidentifier>
|
87
87
|
...
|
88
|
-
<ext schema-version="v1.0.
|
88
|
+
<ext schema-version="v1.0.1">
|
89
89
|
<editorialgroup>
|
90
90
|
<committee>netconf</committee>
|
91
91
|
</editorialgroup>
|
data/grammars/biblio.rng
CHANGED
@@ -13,7 +13,7 @@ module RelatonIetf
|
|
13
13
|
# @param stream [String, nil]
|
14
14
|
def initialize(**args)
|
15
15
|
if args[:doctype] && !DOCTYPES.include?(args[:doctype])
|
16
|
-
warn "
|
16
|
+
Util.warn "WARNING: invalid doctype `#{args[:doctype]}`"
|
17
17
|
end
|
18
18
|
@stream = args.delete(:stream)
|
19
19
|
super
|
@@ -18,13 +18,13 @@ module RelatonIetf
|
|
18
18
|
# reference is required
|
19
19
|
# @return [RelatonIetf::IetfBibliographicItem] Relaton of reference
|
20
20
|
def get(code, _year = nil, _opts = {})
|
21
|
-
warn "
|
21
|
+
Util.warn "(#{code}) fetching..."
|
22
22
|
result = search code
|
23
23
|
if result
|
24
24
|
docid = result.docidentifier.detect(&:primary) || result.docidentifier.first
|
25
|
-
warn "
|
25
|
+
Util.warn "(#{code}) found `#{docid.id}`"
|
26
26
|
else
|
27
|
-
warn "
|
27
|
+
Util.warn "(#{code}) not found"
|
28
28
|
end
|
29
29
|
result
|
30
30
|
end
|
data/lib/relaton_ietf/version.rb
CHANGED
data/lib/relaton_ietf.rb
CHANGED
@@ -4,6 +4,8 @@ require "net/http"
|
|
4
4
|
require "relaton/index"
|
5
5
|
require "relaton_bib"
|
6
6
|
require "relaton_ietf/version"
|
7
|
+
require "relaton_ietf/config"
|
8
|
+
require "relaton_ietf/util"
|
7
9
|
require "relaton_ietf/bibxml_parser"
|
8
10
|
require "relaton_ietf/ietf_bibliography"
|
9
11
|
require "relaton_ietf/xml_parser"
|
@@ -16,9 +18,9 @@ module RelatonIetf
|
|
16
18
|
# Returns hash of XML reammar
|
17
19
|
# @return [String]
|
18
20
|
def self.grammar_hash
|
19
|
-
gem_path = File.expand_path "..", __dir__
|
20
|
-
grammars_path = File.join gem_path, "grammars", "*"
|
21
|
-
grammars = Dir[grammars_path].sort.map { |gp| File.read gp }.join
|
22
|
-
Digest::MD5.hexdigest grammars
|
21
|
+
# gem_path = File.expand_path "..", __dir__
|
22
|
+
# grammars_path = File.join gem_path, "grammars", "*"
|
23
|
+
# grammars = Dir[grammars_path].sort.map { |gp| File.read gp }.join
|
24
|
+
Digest::MD5.hexdigest RelatonIetf::VERSION + RelatonBib::VERSION # grammars
|
23
25
|
end
|
24
26
|
end
|
data/relaton_ietf.gemspec
CHANGED
@@ -29,6 +29,6 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.require_paths = ["lib"]
|
30
30
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
31
31
|
|
32
|
-
spec.add_dependency "relaton-bib", "~> 1.
|
32
|
+
spec.add_dependency "relaton-bib", "~> 1.16.0"
|
33
33
|
spec.add_dependency "relaton-index", "~> 0.2.3"
|
34
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-ietf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.16.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: relaton-bib
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.16.0
|
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: 1.
|
26
|
+
version: 1.16.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: relaton-index
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -71,6 +71,7 @@ files:
|
|
71
71
|
- lib/relaton_ietf.rb
|
72
72
|
- lib/relaton_ietf/bibxml_parser.rb
|
73
73
|
- lib/relaton_ietf/committee.rb
|
74
|
+
- lib/relaton_ietf/config.rb
|
74
75
|
- lib/relaton_ietf/data_fetcher.rb
|
75
76
|
- lib/relaton_ietf/hash_converter.rb
|
76
77
|
- lib/relaton_ietf/ietf_bibliographic_item.rb
|
@@ -80,6 +81,7 @@ files:
|
|
80
81
|
- lib/relaton_ietf/rfc_entry.rb
|
81
82
|
- lib/relaton_ietf/rfc_index_entry.rb
|
82
83
|
- lib/relaton_ietf/scrapper.rb
|
84
|
+
- lib/relaton_ietf/util.rb
|
83
85
|
- lib/relaton_ietf/version.rb
|
84
86
|
- lib/relaton_ietf/xml_parser.rb
|
85
87
|
- relaton_ietf.gemspec
|