softcover 1.1.20 → 1.1.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/softcover/builders/epub.rb +2 -12
- data/lib/softcover/version.rb +1 -1
- data/softcover.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce31c596e53a7ad4638b2baa4b2f4730e2b93e89
|
4
|
+
data.tar.gz: 31e0b0676d030b3193ac5871e57c92faab54824e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f74025287a25be3199059334c1a2dd1c872abd4699774a1499c88236d07d84a122d775978d43d12e953accb0d07bfd5ba7e4f817cbffd22d92b6c982e171012
|
7
|
+
data.tar.gz: dda20a9db52edec1a2b2c8c20ef96e42542825f24b8205e3eff9cc24655a1906010cd02c2729dedcee125be426050aa5076629aa940d00ea4fc96ab806441e7e
|
@@ -272,7 +272,7 @@ module Softcover
|
|
272
272
|
return nil unless File.exist?('phantomjs_source.html')
|
273
273
|
raw_source = File.read('phantomjs_source.html')
|
274
274
|
source = strip_attributes(Nokogiri::HTML(raw_source))
|
275
|
-
|
275
|
+
rm 'phantomjs_source.html'
|
276
276
|
# Remove the first body div, which is the hidden MathJax SVGs.
|
277
277
|
if (mathjax_svgs = source.at_css('body div'))
|
278
278
|
mathjax_svgs.remove
|
@@ -354,18 +354,8 @@ module Softcover
|
|
354
354
|
# This gives a false positive when math is included in verbatim
|
355
355
|
# environments and nowhere else, but it does little harm (requiring only
|
356
356
|
# an unnecessary call to page.js).
|
357
|
-
# The regex includes both standard (La)TeX and amsmath extensions.
|
358
357
|
def math?(string)
|
359
|
-
|
360
|
-
|\\\[
|
361
|
-
|\\begin{(?:equation
|
362
|
-
|align
|
363
|
-
|gather
|
364
|
-
|flalign
|
365
|
-
|multline
|
366
|
-
|alignat
|
367
|
-
|split))/x
|
368
|
-
!!string.match(math_regex)
|
358
|
+
!!string.match(/(?:\\\(|\\\[|\\begin{equation})/)
|
369
359
|
end
|
370
360
|
|
371
361
|
def create_style_files(options)
|
data/lib/softcover/version.rb
CHANGED
data/softcover.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
19
|
gem.require_paths = ["lib"]
|
20
20
|
|
21
|
-
gem.add_dependency 'polytexnic', '~> 1.1.
|
21
|
+
gem.add_dependency 'polytexnic', '~> 1.1.12'
|
22
22
|
gem.add_dependency 'msgpack', '~> 0.4.2'
|
23
23
|
gem.add_dependency 'nokogiri', '~> 1.6.0'
|
24
24
|
gem.add_dependency 'thor', '~> 0.18.1'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: softcover
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Hartl
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-12-
|
12
|
+
date: 2015-12-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: polytexnic
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 1.1.
|
20
|
+
version: 1.1.12
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 1.1.
|
27
|
+
version: 1.1.12
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: msgpack
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|