relaton-ieee 1.14.8 → 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/grammars/biblio.rng +1 -1
- data/lib/relaton_ieee/balloting_group.rb +1 -1
- data/lib/relaton_ieee/config.rb +10 -0
- data/lib/relaton_ieee/document_status.rb +1 -1
- data/lib/relaton_ieee/ieee_bibliographic_item.rb +4 -4
- data/lib/relaton_ieee/ieee_bibliography.rb +4 -3
- data/lib/relaton_ieee/rawbib_id_parser.rb +1 -1
- data/lib/relaton_ieee/util.rb +9 -0
- data/lib/relaton_ieee/version.rb +1 -1
- data/lib/relaton_ieee.rb +6 -4
- data/relaton_ieee.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: 4776aa01882239661d49f30ea9783fb75aa0a767118ed9fb87b456bb5284fbdf
|
4
|
+
data.tar.gz: cf54b9c410b1e1d533e355c55609eb509da7d57a8a777eee85ae43c3f19e760b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b47ad55bd3dd0b063ab0cc4703dfe1a3a52b801ab27e7802b5247ed2f8d7e08ed2d59e167b193a102239d2457c68578d33c50c01350255d41a6a451c2768852d
|
7
|
+
data.tar.gz: d6d8b7de8e9a50cb90f977f3e503dbcac671157e5025d75ccbf6b6e71a342d6936146118244cea4be6200048a24530ad1f8d19381411d3f9e96d649be585f808
|
@@ -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/grammars/biblio.rng
CHANGED
@@ -13,7 +13,7 @@ module RelatonIeee
|
|
13
13
|
#
|
14
14
|
def initialize(type:, content:)
|
15
15
|
unless TYPES.include?(type)
|
16
|
-
warn "
|
16
|
+
Util.warn "WARNING: type of Balloting group must be one of `#{TYPES.join('`, `')}`"
|
17
17
|
end
|
18
18
|
|
19
19
|
@type = type
|
@@ -25,12 +25,12 @@ module RelatonIeee
|
|
25
25
|
#
|
26
26
|
def initialize(**args) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
|
27
27
|
if args[:doctype] && !DOCTYPES.include?(args[:doctype])
|
28
|
-
warn "
|
29
|
-
|
28
|
+
Util.warn "invalid doctype `#{args[:doctype]}`. " \
|
29
|
+
"It should be one of: `#{DOCTYPES.join('`, `')}`."
|
30
30
|
end
|
31
31
|
if args[:docsubtype] && !SUBTYPES.include?(args[:docsubtype])
|
32
|
-
warn "
|
33
|
-
|
32
|
+
Util.warn "invalid docsubtype `#{args[:docsubtype]}`. " \
|
33
|
+
"It should be one of: `#{SUBTYPES.join('`, `')}`."
|
34
34
|
end
|
35
35
|
eg = args.delete(:editorialgroup)
|
36
36
|
@trialuse = args.delete(:trialuse)
|
@@ -38,13 +38,14 @@ module RelatonIeee
|
|
38
38
|
# if document is found else returns NilClass
|
39
39
|
#
|
40
40
|
def get(code, _year = nil, _opts = {}) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
|
41
|
-
warn "
|
41
|
+
Util.warn "(#{code}) fetching..."
|
42
42
|
item = search(code)
|
43
43
|
if item
|
44
|
-
warn "
|
44
|
+
Util.warn "(#{code}) found `#{item.docidentifier.first.id}`"
|
45
45
|
item
|
46
46
|
else
|
47
|
-
warn "
|
47
|
+
Util.warn "(#{code}) not found"
|
48
|
+
nil
|
48
49
|
end
|
49
50
|
end
|
50
51
|
end
|
@@ -456,7 +456,7 @@ module RelatonIeee
|
|
456
456
|
PubId.new(publisher: $1, number: $2)
|
457
457
|
|
458
458
|
else
|
459
|
-
warn %{Use stdnumber "#{stdnumber}" for nortitle "#{normtitle}"}
|
459
|
+
Util.warn %{Use stdnumber "#{stdnumber}" for nortitle "#{normtitle}"}
|
460
460
|
PubId.new(publisher: "IEEE", number: stdnumber)
|
461
461
|
end
|
462
462
|
rescue ArgumentError => e
|
data/lib/relaton_ieee/version.rb
CHANGED
data/lib/relaton_ieee.rb
CHANGED
@@ -4,6 +4,8 @@ require "yaml"
|
|
4
4
|
require "relaton/index"
|
5
5
|
require "relaton_bib"
|
6
6
|
require "relaton_ieee/version"
|
7
|
+
require "relaton_ieee/config"
|
8
|
+
require "relaton_ieee/util"
|
7
9
|
require "relaton_ieee/document_status"
|
8
10
|
require "relaton_ieee/ieee_bibliography"
|
9
11
|
require "relaton_ieee/ieee_bibliographic_item"
|
@@ -20,9 +22,9 @@ module RelatonIeee
|
|
20
22
|
# Returns hash of XML reammar
|
21
23
|
# @return [String]
|
22
24
|
def self.grammar_hash
|
23
|
-
gem_path = File.expand_path "..", __dir__
|
24
|
-
grammars_path = File.join gem_path, "grammars", "*"
|
25
|
-
grammars = Dir[grammars_path].sort.map { |gp| File.read gp }.join
|
26
|
-
Digest::MD5.hexdigest grammars
|
25
|
+
# gem_path = File.expand_path "..", __dir__
|
26
|
+
# grammars_path = File.join gem_path, "grammars", "*"
|
27
|
+
# grammars = Dir[grammars_path].sort.map { |gp| File.read gp }.join
|
28
|
+
Digest::MD5.hexdigest RelatonIeee::VERSION + RelatonBib::VERSION # grammars
|
27
29
|
end
|
28
30
|
end
|
data/relaton_ieee.gemspec
CHANGED
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
|
|
33
33
|
|
34
34
|
spec.add_dependency "faraday", "~> 2.7.0"
|
35
35
|
spec.add_dependency "mini_portile2", "~> 2.8.0"
|
36
|
-
spec.add_dependency "relaton-bib", "~> 1.
|
36
|
+
spec.add_dependency "relaton-bib", "~> 1.16.0"
|
37
37
|
spec.add_dependency "relaton-index", "~> 0.2.0"
|
38
38
|
spec.add_dependency "rubyzip", "~> 2.3.0"
|
39
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-ieee
|
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: faraday
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.16.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.16.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: relaton-index
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +108,7 @@ files:
|
|
108
108
|
- lib/relaton_ieee.rb
|
109
109
|
- lib/relaton_ieee/balloting_group.rb
|
110
110
|
- lib/relaton_ieee/bibxml_parser.rb
|
111
|
+
- lib/relaton_ieee/config.rb
|
111
112
|
- lib/relaton_ieee/data_fetcher.rb
|
112
113
|
- lib/relaton_ieee/data_parser.rb
|
113
114
|
- lib/relaton_ieee/document_status.rb
|
@@ -118,6 +119,7 @@ files:
|
|
118
119
|
- lib/relaton_ieee/processor.rb
|
119
120
|
- lib/relaton_ieee/pub_id.rb
|
120
121
|
- lib/relaton_ieee/rawbib_id_parser.rb
|
122
|
+
- lib/relaton_ieee/util.rb
|
121
123
|
- lib/relaton_ieee/version.rb
|
122
124
|
- lib/relaton_ieee/xml_parser.rb
|
123
125
|
- relaton_ieee.gemspec
|