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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fba6e4a65a2627cecc632c2f0a2f2eb92b7dc60a
4
- data.tar.gz: 46f45a9e9a1538ccaa7ffa63dff8656155f5692b
3
+ metadata.gz: ce31c596e53a7ad4638b2baa4b2f4730e2b93e89
4
+ data.tar.gz: 31e0b0676d030b3193ac5871e57c92faab54824e
5
5
  SHA512:
6
- metadata.gz: f12ee25389eb93f3d5a396d8f34ba0945fcbc585d9ee09388030a5c1dab7826930ca71f32079b2a8f4c9f75b788bf34266aa7da86a16e53e3b663777f1d6096a
7
- data.tar.gz: 83e84c89005d54a5291901926a1d72964627004290229aabe776dd211fcf5f4022de60c54f4a8139fbfbcecf3997e431888720983284a0b84e59f737bb61d2ab
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
- # rm 'phantomjs_source.html'
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
- math_regex = /(?:\\\(
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)
@@ -1,3 +1,3 @@
1
1
  module Softcover
2
- VERSION = "1.1.20"
2
+ VERSION = "1.1.21"
3
3
  end
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.10'
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.20
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-13 00:00:00.000000000 Z
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.10
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.10
27
+ version: 1.1.12
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: msgpack
30
30
  requirement: !ruby/object:Gem::Requirement