metanorma-gb 1.2.2 → 1.2.3

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: 274fe81bfa08f26c92749b206f26223b788d78f9a857156b97971bb31d3dc86a
4
- data.tar.gz: 5fc0fd4d8a6aad3e07a6246a50f6a8c751b7c6cf0797be3bd977e95ca3706033
3
+ metadata.gz: 502289adfb4acad2a7e4f2822371c906b71757688f6625b33af0a16d664e4d63
4
+ data.tar.gz: 42e5b4cec6e333c486c3ef3a0a821b9d84b593e3399eebc7382803a2c5beb328
5
5
  SHA512:
6
- metadata.gz: 55de595c7d6265307288f0ee6a9f10f21a5dd8c6e3a4397980ab821371a4b2b9255cdf8f3f40014fbf765f0fc593c1428481c3814db6d7e7519de9268689a09c
7
- data.tar.gz: 667d00f0e29a26a2849f4909955001ff9d9544cc849b2d028d55ddfa442599ef844aa14d25f401ea3df2451d604b511e4521a6b062b9dd27c7ef5c6789aa1f68
6
+ metadata.gz: c09d9310acf0f5c23768b0e164df35e4fa701ef14db205eb48365ae77ad69a5e84f9d87d395b5f7f90b8ebbacf84143e2043362ec3294a45959de27c775384f5
7
+ data.tar.gz: 352a3967223f72c5c7aaacc893428fabaa467b8f8c832188c477d0124229866092007645a6bc10ffb48755e3e1974abdea64ea9fdabd8d61c01a21ce88737d7c
@@ -6,6 +6,7 @@ os:
6
6
  - linux
7
7
  - osx
8
8
  rvm:
9
+ - 2.6
9
10
  - 2.5
10
11
  - 2.4
11
12
  - ruby-head
@@ -7,6 +7,7 @@ cache:
7
7
 
8
8
  environment:
9
9
  matrix:
10
+ - RUBY_VERSION: 26
10
11
  - RUBY_VERSION: 25
11
12
  - RUBY_VERSION: 24
12
13
  - RUBY_VERSION: _trunk
@@ -164,8 +164,10 @@ module IsoDoc
164
164
  end
165
165
 
166
166
  def termref_render(x)
167
+ x.sub!(%r{\s*\[MODIFICATION\]\s*$}m, l10n(", #{@modified_lbl}"))
167
168
  parts = x.split(%r{(\s*\[MODIFICATION\]|,)}m)
168
- parts[1] = l10n(", #{@source_lbl}") if parts.size > 1 && parts[1] == ","
169
+ parts[1] = l10n(", #{@source_lbl}") if parts.size > 1 && parts[1] == "," &&
170
+ !/^\s*#{@modified_lbl}/.match(parts[2])
169
171
  parts.map do |p|
170
172
  /\s*\[MODIFICATION\]/.match(p) ? l10n(", #{@modified_lbl} — ") : p
171
173
  end.join.sub(/\A\s*/m, l10n("[")).sub(/\s*\z/m, l10n("]"))
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Gb
3
- VERSION = "1.2.2"
3
+ VERSION = "1.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-gb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-15 00:00:00.000000000 Z
11
+ date: 2019-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-iso