isodoc 0.9.7 → 0.9.8

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: 93ba96559e2759a596b63d1a785bfb669b3e0b1b400a091af8a6c54c4c6f1470
4
- data.tar.gz: 0c48f7c99b83091ab02ad792a6d5dd555fcc0777da4d3931dac7ed824884e0c3
3
+ metadata.gz: 76840b2da951a6a5c1ae745cf16f8a50c1c75d74519bc6e9b407847cc91276dd
4
+ data.tar.gz: 20ee7aa9917bf072e8a8244fc2af47c5585d56394e4bcae5ec1b2d601cde30c5
5
5
  SHA512:
6
- metadata.gz: b89709b81819fe0b5ed8b48fcb33f7f25f998659f74d97fa65d4642acf762d8c96aca75f525d8941596cea8ba60ad1fd6c3687ae1a178e95d49ce48a7d93e2cc
7
- data.tar.gz: c0c0b053b432bafed3e2c926f33cf39b926bfc4e4b0467f4e5c66223d5d9df7e8d4a77fe0b188de319af2f5113a75f5b2c38a111f51e6b690e2b85dacd6819ba
6
+ metadata.gz: ac3ba122ef2440b18487f6448f9a6e607180f8c461d339babb96178f318ce0e0483dbe87b55378c37f6a04cba48db824692d47feda0a2ccfd01ab53f092a3607
7
+ data.tar.gz: 9f264b5c08e2d426a43b115bc8b217a132a15a1ff2bee2aa0cd07c84db4fdba2096b502f6632bdf339f9303cbe32808f4a9e23b3c8af8c6d5c5a8aabe615d1e9
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- isodoc (0.9.7)
4
+ isodoc (0.9.8)
5
5
  asciimath
6
6
  html2doc (~> 0.8.6)
7
7
  htmlentities (~> 4.3.4)
@@ -62,7 +62,7 @@ GEM
62
62
  ruby_dep (~> 1.2)
63
63
  lumberjack (1.0.13)
64
64
  metanorma (0.3.0)
65
- method_source (0.9.0)
65
+ method_source (0.9.1)
66
66
  mime-types (3.2.2)
67
67
  mime-types-data (~> 3.2015)
68
68
  mime-types-data (3.2018.0812)
@@ -77,7 +77,7 @@ GEM
77
77
  parser (2.5.3.0)
78
78
  ast (~> 2.4.0)
79
79
  powerpack (0.1.2)
80
- pry (0.11.3)
80
+ pry (0.12.0)
81
81
  coderay (~> 1.1.0)
82
82
  method_source (~> 0.9.0)
83
83
  rainbow (3.0.0)
@@ -110,7 +110,7 @@ GEM
110
110
  ruby-progressbar (1.10.0)
111
111
  ruby-xslt (0.9.10)
112
112
  ruby_dep (1.5.0)
113
- sass (3.6.0)
113
+ sass (3.7.1)
114
114
  sass-listen (~> 4.0.0)
115
115
  sass-listen (4.0.0)
116
116
  rb-fsevent (~> 0.9, >= 0.9.4)
@@ -10,6 +10,7 @@ module IsoDoc::Function
10
10
  end
11
11
 
12
12
  def initial_anchor_names(d)
13
+ preface_names(d.at(ns("//abstract")))
13
14
  preface_names(d.at(ns("//foreword")))
14
15
  preface_names(d.at(ns("//introduction")))
15
16
  sequential_asset_names(d.xpath(ns("//foreword | //introduction")))
@@ -35,7 +36,7 @@ module IsoDoc::Function
35
36
  return if clause.nil?
36
37
  @anchors[clause["id"]] =
37
38
  { label: nil, level: 1, xref: preface_clause_name(clause), type: "clause" }
38
- clause.xpath(ns("./clause")).each_with_index do |c, i|
39
+ clause.xpath(ns("./clause | ./terms | ./term | ./definitions")).each_with_index do |c, i|
39
40
  preface_names1(c, c.at(ns("./title"))&.text, "#{preface_clause_name(clause)}, #{i+1}", 2)
40
41
  end
41
42
  end
@@ -1,3 +1,3 @@
1
1
  module IsoDoc
2
- VERSION = "0.9.7".freeze
2
+ VERSION = "0.9.8".freeze
3
3
  end
@@ -90,7 +90,7 @@ module IsoDoc::WordFunction
90
90
  meta = @meta.get
91
91
  meta[:filename] = filename
92
92
  params = meta.map { |k, v| [k.to_s, v] }.to_h
93
- headerfile = File.join(@localdir, "header.html")
93
+ headerfile = "header.html"
94
94
  File.open(headerfile, "w:UTF-8") { |f| f.write(template.render(params)) }
95
95
  @files_to_delete << headerfile
96
96
  headerfile
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isodoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-31 00:00:00.000000000 Z
11
+ date: 2018-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciimath