metanorma-ribose 1.6.10 → 1.6.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +16 -29
- data/.rubocop.yml +0 -4
- data/lib/asciidoctor/ribose/basicdoc.rng +5 -3
- data/lib/asciidoctor/ribose/isodoc.rng +134 -5
- data/lib/asciidoctor/ribose/rsd.rng +6 -0
- data/lib/isodoc/ribose/html/wordstyle.css +4 -4
- data/lib/isodoc/ribose/html/wordstyle.scss +4 -4
- data/lib/isodoc/ribose/pdf_convert.rb +3 -4
- data/lib/isodoc/ribose/{rsd.standard.xsl → ribose.standard.xsl} +572 -240
- data/lib/isodoc/ribose/xref.rb +7 -2
- data/lib/metanorma/ribose/version.rb +1 -1
- data/metanorma-ribose.gemspec +2 -2
- metadata +8 -8
data/lib/isodoc/ribose/xref.rb
CHANGED
@@ -2,6 +2,9 @@ require "metanorma-generic"
|
|
2
2
|
|
3
3
|
module IsoDoc
|
4
4
|
module Ribose
|
5
|
+
class Counter < IsoDoc::XrefGen::Counter
|
6
|
+
end
|
7
|
+
|
5
8
|
class Xref < IsoDoc::Generic::Xref
|
6
9
|
def annex_name_lbl(clause, num)
|
7
10
|
obl = l10n("(#{@labels['inform_annex']})")
|
@@ -21,9 +24,11 @@ module IsoDoc
|
|
21
24
|
@anchors[clause["id"]] =
|
22
25
|
{ label: num, level: level, xref: num }
|
23
26
|
# subclauses are not prefixed with "Clause"
|
27
|
+
i = Counter.new
|
24
28
|
clause.xpath(ns("./clause | ./terms | ./term | ./definitions | ./references")).
|
25
|
-
|
26
|
-
|
29
|
+
each do |c|
|
30
|
+
i.increment(c)
|
31
|
+
section_names1(c, "#{num}.#{i.print}", level + 1)
|
27
32
|
end
|
28
33
|
end
|
29
34
|
end
|
data/metanorma-ribose.gemspec
CHANGED
@@ -28,14 +28,14 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
30
30
|
|
31
|
-
spec.add_dependency 'metanorma-generic', '~> 1.
|
31
|
+
spec.add_dependency 'metanorma-generic', '~> 1.9.0'
|
32
32
|
|
33
33
|
spec.add_development_dependency "byebug", "~> 9.1"
|
34
34
|
spec.add_development_dependency "sassc", "2.4.0"
|
35
35
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
36
36
|
spec.add_development_dependency "guard", "~> 2.14"
|
37
37
|
spec.add_development_dependency "guard-rspec", "~> 4.7"
|
38
|
-
spec.add_development_dependency "rake", "~>
|
38
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
39
39
|
spec.add_development_dependency "rspec", "~> 3.6"
|
40
40
|
spec.add_development_dependency "rubocop", "= 0.54.0"
|
41
41
|
spec.add_development_dependency "simplecov", "~> 0.15"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-ribose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.9.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.9.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '13.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '13.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rspec
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -216,7 +216,7 @@ files:
|
|
216
216
|
- lib/isodoc/ribose/metadata.rb
|
217
217
|
- lib/isodoc/ribose/pdf_convert.rb
|
218
218
|
- lib/isodoc/ribose/presentation_xml_convert.rb
|
219
|
-
- lib/isodoc/ribose/
|
219
|
+
- lib/isodoc/ribose/ribose.standard.xsl
|
220
220
|
- lib/isodoc/ribose/word_convert.rb
|
221
221
|
- lib/isodoc/ribose/xref.rb
|
222
222
|
- lib/metanorma-ribose.rb
|
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
244
|
- !ruby/object:Gem::Version
|
245
245
|
version: '0'
|
246
246
|
requirements: []
|
247
|
-
rubygems_version: 3.
|
247
|
+
rubygems_version: 3.1.4
|
248
248
|
signing_key:
|
249
249
|
specification_version: 4
|
250
250
|
summary: metanorma-ribose lets you write Ribose standards in AsciiDoc.
|