isodoc 0.9.4 → 0.9.5

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: e082597aff2415338a5b2da3d30bc03c00fd4c27d4e582084680efea7e54ecd6
4
- data.tar.gz: cc31894370e9a50dde359a87b691c05fdf20845bc00052012d562a74b1113872
3
+ metadata.gz: 6f70c0cba186e39bd9deeabc346d5665abee6eafaea99ce59c6ae126d468a401
4
+ data.tar.gz: 5a697a7da8270b68b1f325c6565de311b79ec13f64cd5b1420e942df91bd1a22
5
5
  SHA512:
6
- metadata.gz: bdab9417834b8ecba230e865f7c140d27dc6d41dbb95b15b9d95335e423d36d423541c78c062220125fef4de2b7228c027f432429cb021badf6189eece6e7462
7
- data.tar.gz: b903fc09c60b5ff0881f258f21f991c2770f6b1a5df434ac9964cc105de402b7eef75f5d5b9c7f97e9dd1abf7926226a68e217de03fab7c0f9bde314cf279927
6
+ metadata.gz: 33ee7e92975ca29141b268e7a376dc9ca546bcf80a4d9c66f25c722e26480c475f5b978e7909b1fa66a69817eb28454842ef186e966267ca544aed3bb767af75
7
+ data.tar.gz: b5a1c0cf97f04fe1dc30e0bccb87f50a83da3d059ed4d46a05580b433054c5f8abdd7fb64d89cdaf458127f469c3e7f00b0d4015f1a2e91aec5dfb9198dd82c5
@@ -1,13 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- isodoc (0.9.4)
4
+ isodoc (0.9.5)
5
5
  asciimath
6
6
  html2doc (~> 0.8.1)
7
7
  htmlentities (~> 4.3.4)
8
8
  liquid
9
9
  metanorma (~> 0.2.7)
10
10
  nokogiri
11
+ rake (~> 12.0)
11
12
  roman-numerals
12
13
  ruby-xslt
13
14
  sassc (~> 1.12.1)
@@ -98,14 +99,14 @@ GEM
98
99
  diff-lcs (>= 1.2.0, < 2.0)
99
100
  rspec-support (~> 3.8.0)
100
101
  rspec-support (3.8.0)
101
- rubocop (0.59.2)
102
+ rubocop (0.60.0)
102
103
  jaro_winkler (~> 1.5.1)
103
104
  parallel (~> 1.10)
104
105
  parser (>= 2.5, != 2.5.1.1)
105
106
  powerpack (~> 0.1)
106
107
  rainbow (>= 2.2.2, < 4.0)
107
108
  ruby-progressbar (~> 1.7)
108
- unicode-display_width (~> 1.0, >= 1.0.1)
109
+ unicode-display_width (~> 1.4.0)
109
110
  ruby-progressbar (1.10.0)
110
111
  ruby-xslt (0.9.10)
111
112
  ruby_dep (1.5.0)
@@ -139,7 +140,6 @@ DEPENDENCIES
139
140
  guard (~> 2.14)
140
141
  guard-rspec (~> 4.7)
141
142
  isodoc!
142
- rake (~> 12.0)
143
143
  rspec (~> 3.6)
144
144
  rubocop (~> 0.50)
145
145
  simplecov (~> 0.15)
@@ -39,13 +39,13 @@ Gem::Specification.new do |spec|
39
39
  spec.add_dependency "roman-numerals"
40
40
  spec.add_dependency "sassc", "~> 1.12.1"
41
41
  spec.add_dependency "metanorma", "~> 0.2.7"
42
+ spec.add_dependency "rake", "~> 12.0"
42
43
 
43
44
  spec.add_development_dependency "bundler", "~> 1.15"
44
45
  spec.add_development_dependency "byebug", "~> 9.1"
45
46
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
46
47
  spec.add_development_dependency "guard", "~> 2.14"
47
48
  spec.add_development_dependency "guard-rspec", "~> 4.7"
48
- spec.add_development_dependency "rake", "~> 12.0"
49
49
  spec.add_development_dependency "rspec", "~> 3.6"
50
50
  spec.add_development_dependency "rubocop", "~> 0.50"
51
51
  spec.add_development_dependency "simplecov", "~> 0.15"
@@ -105,7 +105,7 @@ module IsoDoc::Function
105
105
  end
106
106
 
107
107
  def term_defs_boilerplate(div, source, term, preface)
108
- source.each { |s| @anchors[s["bibitemid"]] or warn "#{s['bibitemid']} not referenced" }
108
+ source.each { |s| @anchors[s["bibitemid"]] or warn "term source #{s['bibitemid']} not referenced" }
109
109
  if source.empty? && term.nil?
110
110
  div << @no_terms_boilerplate
111
111
  else
@@ -42,8 +42,9 @@ module IsoDoc::HtmlFunction
42
42
  end
43
43
 
44
44
  def toHTML(result, filename)
45
- result = script_cdata(from_xhtml(html_cleanup(to_xhtml(result))))
45
+ result = (from_xhtml(html_cleanup(to_xhtml(result))))
46
46
  result = populate_template(result, :html)
47
+ result = script_cdata(from_xhtml(move_images(to_xhtml(result))))
47
48
  File.open("#{filename}.html", "w:UTF-8") do |f|
48
49
  f.write(result)
49
50
  end
@@ -51,7 +52,7 @@ module IsoDoc::HtmlFunction
51
52
 
52
53
  def html_cleanup(x)
53
54
  footnote_backlinks(html_toc(
54
- term_header(move_images(html_footnote_filter(html_preface(htmlstyle(x))))))
55
+ term_header((html_footnote_filter(html_preface(htmlstyle(x))))))
55
56
  )
56
57
  end
57
58
 
@@ -1,3 +1,3 @@
1
1
  module IsoDoc
2
- VERSION = "0.9.4".freeze
2
+ VERSION = "0.9.5".freeze
3
3
  end
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
4
+ version: 0.9.5
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-17 00:00:00.000000000 Z
11
+ date: 2018-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciimath
@@ -164,6 +164,20 @@ dependencies:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: 0.2.7
167
+ - !ruby/object:Gem::Dependency
168
+ name: rake
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '12.0'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '12.0'
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: bundler
169
183
  requirement: !ruby/object:Gem::Requirement
@@ -234,20 +248,6 @@ dependencies:
234
248
  - - "~>"
235
249
  - !ruby/object:Gem::Version
236
250
  version: '4.7'
237
- - !ruby/object:Gem::Dependency
238
- name: rake
239
- requirement: !ruby/object:Gem::Requirement
240
- requirements:
241
- - - "~>"
242
- - !ruby/object:Gem::Version
243
- version: '12.0'
244
- type: :development
245
- prerelease: false
246
- version_requirements: !ruby/object:Gem::Requirement
247
- requirements:
248
- - - "~>"
249
- - !ruby/object:Gem::Version
250
- version: '12.0'
251
251
  - !ruby/object:Gem::Dependency
252
252
  name: rspec
253
253
  requirement: !ruby/object:Gem::Requirement