metanorma-iso 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: 359772e36d1c8239ead46d6c07f40a39fde980788e557aef07190f8f45eed9b2
4
- data.tar.gz: 0f9d5976c6f643a5cf656f7df24cc1be995a90ed35803cace5a772ee29594ad2
3
+ metadata.gz: 493c5b7460547cc7e1350e52204574bb6eee0c64ae9d3fa476104f6d5afaace3
4
+ data.tar.gz: 1af5f123b39a535aee715c31e2188c70b19a9397c39d71390af7d7d48984765b
5
5
  SHA512:
6
- metadata.gz: a931e9a3a8df88521466d43b605abec5b87d6576d7615b3503025fcacc1a41b13de9a7b08b7841e45597c1c980ed5916203c6767778063604ec76c2a724d1c95
7
- data.tar.gz: c4402f74caef4c552cd0c9458baa80049100690ec86d51084b6be985a58af7eda00f7b5d7b5890650b27bcf68db3b9c92650143d12966e6d0a43a58558f0f62d
6
+ metadata.gz: a937e36840fd8235f66668391c253a535c8927df2a446ca891e76f1295018da65757bddeb76fc19121fa9ea163bd5a45b87d91492131f51ed0df7e663023929c
7
+ data.tar.gz: 71bf51df9143526252c525bc9a55667d253676a16b61afc96d8cf3f03948a4e3a579739421a579ae1d123dd4a4079c7e675a43f92b07b64818b02e2627c80a14
@@ -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
@@ -137,7 +137,10 @@ module Asciidoctor
137
137
  root.xpath("//eref").each do |t|
138
138
  preceding = t.at("./preceding-sibling::text()[last()]")
139
139
  next unless !preceding.nil? && /\bsee\s*$/mi.match(preceding)
140
- target = root.at("//*[@id = '#{t['bibitemid']}']")
140
+ unless target = root.at("//*[@id = '#{t['bibitemid']}']")
141
+ warn "ISO: '#{t} is not pointing to a real reference"
142
+ next
143
+ end
141
144
  if target.at("./ancestor::references"\
142
145
  "[title = 'Normative References']")
143
146
  warn "ISO: 'see #{t}' is pointing to a normative reference"
@@ -30,7 +30,7 @@ module IsoDoc
30
30
 
31
31
  def stage_abbrev(stage, substage, iter, draft)
32
32
  return "" unless stage
33
- stage = STAGE_ABBRS[stage.to_sym] || "??"
33
+ stage = self.class::STAGE_ABBRS[stage.to_sym] || "??"
34
34
  stage = "PRF" if stage == "IS" && substage == "00"
35
35
  stage += iter if iter
36
36
  stage = "Pre" + stage if draft =~ /^0\./
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ISO
3
- VERSION = "1.2.2".freeze
3
+ VERSION = "1.2.3".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iso
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: bin
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: asciidoctor