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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ccd2fcf84630ad9f6d1bf0279704f5e216ad1cc3aa5fb48360305e73cfa84bde
4
- data.tar.gz: 04a7362f0b754f246b5e9afe0a6e74cf26a51c96962972a0d6b6b362e97a8526
3
+ metadata.gz: a3a17d2f8126423b0eae703e2717b2d4f38c00fa9304f8fd82243d90723f031f
4
+ data.tar.gz: bc243dd95f471d0dceb3c8cf0e3e822de4129878c27fad8af41527a6b13c5300
5
5
  SHA512:
6
- metadata.gz: 65d3d2a869008260987a334e75cd386f63d076165646d62ddf98b8630baaa2431afbe22fd9cdd31ff838f7e9133790dcba5f9e153a56abcbd2da39814c452df2
7
- data.tar.gz: aecf8ee7153968cf0811b80b3122045969fffe57f284ce6ceeb4d53f288156500e7bd1dc0b069132f0aad45931647389c1b365c7e0b5a78f37a759d85e119cc9
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>ECMA(?:[\d-]+|\s\w+/\d+))
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] == refparts[: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
@@ -1,3 +1,3 @@
1
1
  module RelatonEcma
2
- VERSION = "1.14.4".freeze
2
+ VERSION = "1.14.5".freeze
3
3
  end
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
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-06 00:00:00.000000000 Z
11
+ date: 2023-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize