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 +4 -4
- data/Gemfile.lock +4 -4
- data/lib/isodoc/function/xref_sect_gen.rb +2 -1
- data/lib/isodoc/version.rb +1 -1
- data/lib/isodoc/word_function/postprocess.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76840b2da951a6a5c1ae745cf16f8a50c1c75d74519bc6e9b407847cc91276dd
|
4
|
+
data.tar.gz: 20ee7aa9917bf072e8a8244fc2af47c5585d56394e4bcae5ec1b2d601cde30c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac3ba122ef2440b18487f6448f9a6e607180f8c461d339babb96178f318ce0e0483dbe87b55378c37f6a04cba48db824692d47feda0a2ccfd01ab53f092a3607
|
7
|
+
data.tar.gz: 9f264b5c08e2d426a43b115bc8b217a132a15a1ff2bee2aa0cd07c84db4fdba2096b502f6632bdf339f9303cbe32808f4a9e23b3c8af8c6d5c5a8aabe615d1e9
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
isodoc (0.9.
|
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.
|
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.
|
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.
|
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
|
data/lib/isodoc/version.rb
CHANGED
@@ -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 =
|
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.
|
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-
|
11
|
+
date: 2018-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciimath
|