relaton-bib 1.9.14 → 1.9.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton_bib/bibxml_parser.rb +3 -1
- data/lib/relaton_bib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df627fef24296d28c6a6802972a545ce575e89065efc41d07a1783c05fa9d1ad
|
4
|
+
data.tar.gz: aff5fe6709c54247e238523cbb49b04137723dc2264e79c054415b1ed29bd706
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e787baf783f229454cbf25423e6ed998476df6d3a4a70654f43c6385be9e74f92913f5526f6d589b5e5c3a23de2123e578109bac9cef79d76734c9c67a6100b1
|
7
|
+
data.tar.gz: e1977eb5ab24edd762217c6799319adfb4da51decf4cd9d1cf0660d1e2102eeb568a47a734a9bff40e45748c6fa08efd17f1e094d76fc8285bfb59e100b42637
|
@@ -82,7 +82,9 @@ module RelatonBib
|
|
82
82
|
type_match = id&.match(/^(3GPP|W3C|[A-Z]{2,})(?:\.(?=[A-Z])|(?=\d))/)
|
83
83
|
type = self::FLAVOR || (type_match && type_match[1])
|
84
84
|
if id
|
85
|
-
|
85
|
+
/^(?<pref>I-D|3GPP|W3C|[A-Z]{2,})\.?(?<num>.+)/ =~ id
|
86
|
+
num.sub!(/^-?0+/, "") if %w[RFC BCP FYI STD].include?(pref)
|
87
|
+
pid = pref ? "#{pref} #{num}" : id
|
86
88
|
ret << DocumentIdentifier.new(type: type, id: pid)
|
87
89
|
end
|
88
90
|
%w[anchor docName number].each do |atr|
|
data/lib/relaton_bib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-bib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|