relaton-ecma 1.14.4 → 1.14.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton_ecma/ecma_bibliography.rb +4 -4
- data/lib/relaton_ecma/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: a3a17d2f8126423b0eae703e2717b2d4f38c00fa9304f8fd82243d90723f031f
|
4
|
+
data.tar.gz: bc243dd95f471d0dceb3c8cf0e3e822de4129878c27fad8af41527a6b13c5300
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8e0b3621f7a3eb7ed634def125212dcd6e16bf1a7ff00bbb294a4abfed259cce576ba095d96025649997233e7ec6df611dc053c12c5370727c626270ae1aa9f
|
7
|
+
data.tar.gz: ef34bbb342969706f7d8b9f49d0c69c35cf9a3a87929508f7e30aeb491f1404fb1457b0ec15f83ee426501d9b0824952cfde6e86da19c55776cabd33e7a54948
|
@@ -22,15 +22,15 @@ module RelatonEcma
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def parse_ref(ref)
|
25
|
-
%r{^
|
26
|
-
(?<id>
|
25
|
+
%r{^ECMA[-\s]
|
26
|
+
(?<id>(?:\d[\d-]*|\w+/\d+))
|
27
27
|
(?:\sed(?<ed>[\d.]+))?
|
28
28
|
(?:\svol(?<vol>\d+))?
|
29
29
|
}x.match ref
|
30
30
|
end
|
31
31
|
|
32
|
-
def match_ref(refparts, row)
|
33
|
-
row[:id][:id]
|
32
|
+
def match_ref(refparts, row) # rubocop:disable Metrics/AbcSize
|
33
|
+
row[:id][:id].match?(/^ECMA[-\s]#{refparts[:id]}/) &&
|
34
34
|
(refparts[:ed].nil? || row[:id][:ed] == refparts[:ed]) &&
|
35
35
|
(refparts[:vol].nil? || row[:id][:vol] == refparts[:vol])
|
36
36
|
end
|
data/lib/relaton_ecma/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-ecma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.14.
|
4
|
+
version: 1.14.5
|
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-06-
|
11
|
+
date: 2023-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mechanize
|