relaton-bipm 1.14.0 → 1.14.1

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: ef29247a9577725c9ca6f7214bdf462f7893db9a81f1ba2a2fa84b36777da806
4
- data.tar.gz: da308da1e20e3286f26a5b449dce8ceee829add7d2e993444f99682f20760b97
3
+ metadata.gz: 516c29a4d2e4ce02f6e2a1800f248f26ffa9b15c848d604ba5c100e05104acc8
4
+ data.tar.gz: 32455c13d2414e272d3ae9d9fe9b948116987439a81133fe235370eedac98fdc
5
5
  SHA512:
6
- metadata.gz: 829c4b6d4b5606d29fe178cb2b9d1a95946a4fc5647c77d8190a6ba543ac6e19a59616019f81aa03b0955298f436879249b7fcb5bb05a94162255f4794765225
7
- data.tar.gz: 3a32dfd8bec6296ca598e3337c407f8a37a7be844a12f222e4e95409a3f892281bdc1ee7bd3a3d8b9369bded4f2fe5136dd6cfd2ef5b10d7ddfd759420e0ef4d
6
+ metadata.gz: dab2ecf54b507fad29bedd65870525f8c063d2299e7df03fd731f5382e43ecbd900931860b58c8c346ed98c3f1214242f97f795c549f20da9d0a65bb321191e3
7
+ data.tar.gz: eba8ab69d65e03ee43cfb3bd8529eb56c6836244897f71deba1799ebf33c513a375bb1fb4527920d721b11bd9cd6604d253a831d9d62c5703cd480d39ed9d8b4
@@ -197,10 +197,11 @@ module RelatonBipm
197
197
  # @param [RelatonBipm::BipmBibliographicItem] item bibliographic item
198
198
  # @param [String] path path to YAML file
199
199
  #
200
- def add_to_index(item, path) # rubocop:disable Metrics/AbcSize
200
+ def add_to_index(item, path) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
201
201
  key = [item.docnumber]
202
202
  TYPEABBREV.each do |k, v|
203
203
  if item.docnumber.include? k
204
+ key << item.docnumber.sub(k, v)
204
205
  key << item.docnumber.sub(k, v).sub(/(\(\d{4})(\))/, "\\1, EN\\2")
205
206
  key << item.docnumber.sub(k, v).sub(/(\(\d{4})(\))/, "\\1, FR\\2")
206
207
  break
@@ -1,3 +1,3 @@
1
1
  module RelatonBipm
2
- VERSION = "1.14.0".freeze
2
+ VERSION = "1.14.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-bipm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.0
4
+ version: 1.14.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: 2022-12-03 00:00:00.000000000 Z
11
+ date: 2022-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug