isodoc 1.1.3.pre.alpha3 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/isodoc.gemspec +1 -1
- data/lib/isodoc/convert.rb +12 -8
- data/lib/isodoc/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51829acf741b07dd3c2ab2be2d56ca10aa26f32cd45830c53fe53a0ac26c8ad5
|
4
|
+
data.tar.gz: f7e70d7ca7b40958a35799f564c05b0a3d5342efdf3c6e3dd5e41536a7bb9825
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2ff423a107d6b06cc723c943ac2311513c78a46d8b63f4ded2e8b7ebf94794d00796ef2b52ad2921dc1efd97cbba8bc43b29b0e8091b2c9430627db67a75f4f
|
7
|
+
data.tar.gz: ec09dbbcf25e13bb08352f49d77c1565473f768af554a3d2b1b7311b0862f63e730fee0f69b7af82f99ce8f3a020b3088b429ed253a9852708138867dd848519
|
data/isodoc.gemspec
CHANGED
@@ -37,8 +37,8 @@ Gem::Specification.new do |spec|
|
|
37
37
|
spec.add_dependency "liquid"
|
38
38
|
spec.add_dependency "roman-numerals"
|
39
39
|
spec.add_dependency "metanorma", "~> 1.1.0"
|
40
|
-
spec.add_dependency "rake", "~> 12.0"
|
41
40
|
|
41
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
42
42
|
spec.add_development_dependency "byebug", "~> 9.1"
|
43
43
|
spec.add_development_dependency "sassc", "~> 2.4.0"
|
44
44
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
data/lib/isodoc/convert.rb
CHANGED
@@ -155,8 +155,12 @@ module IsoDoc
|
|
155
155
|
"$bodyfont: #{b};\n$headerfont: #{h};\n$monospacefont: #{m};\n"
|
156
156
|
end
|
157
157
|
|
158
|
-
def html_doc_path(file)
|
159
|
-
|
158
|
+
def html_doc_path(*file)
|
159
|
+
file.each do |f|
|
160
|
+
ret = File.join(@libdir, File.join('html', f))
|
161
|
+
File.exist?(ret) and return ret
|
162
|
+
end
|
163
|
+
nil
|
160
164
|
end
|
161
165
|
|
162
166
|
def convert_scss(filename, stylesheet)
|
@@ -165,11 +169,11 @@ module IsoDoc
|
|
165
169
|
|
166
170
|
[File.join(Gem.loaded_specs['isodoc'].full_gem_path,
|
167
171
|
'lib', 'isodoc'),
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
172
|
+
File.dirname(filename)].each do |name|
|
173
|
+
SassC.load_paths << name
|
174
|
+
end
|
175
|
+
SassC::Engine.new(scss_fontheader + stylesheet, syntax: :scss,
|
176
|
+
importer: SasscImporter)
|
173
177
|
.render
|
174
178
|
end
|
175
179
|
|
@@ -239,7 +243,7 @@ module IsoDoc
|
|
239
243
|
|
240
244
|
def middle_clause
|
241
245
|
"//clause[parent::sections][not(xmlns:title = 'Scope')]"\
|
242
|
-
|
246
|
+
'[not(descendant::terms)]'
|
243
247
|
end
|
244
248
|
end
|
245
249
|
end
|
data/lib/isodoc/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isodoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.3
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
146
|
-
type: :
|
145
|
+
version: '13.0'
|
146
|
+
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
152
|
+
version: '13.0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: byebug
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -417,9 +417,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
417
417
|
version: 2.4.0
|
418
418
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
419
419
|
requirements:
|
420
|
-
- - "
|
420
|
+
- - ">="
|
421
421
|
- !ruby/object:Gem::Version
|
422
|
-
version:
|
422
|
+
version: '0'
|
423
423
|
requirements: []
|
424
424
|
rubygems_version: 3.0.3
|
425
425
|
signing_key:
|