sskatex 0.9.36 → 0.9.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sskatex.rb +4 -10
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ab384ff477d1c904cb7337e0f3d2ba13c8443584
|
|
4
|
+
data.tar.gz: 364568a86bd1f8f775feef5bd6c2f68f36bc6dc3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f4aeb562fea8dcda1e6ac9c162c2b77165b71ee2a0ee57505b661547cf0d88c89bcd39c2281b21280227f28bb65b301e6da71fd0edbca680b549e62d23a5408
|
|
7
|
+
data.tar.gz: fceb1fb83f2a6b5f27867708bea70793d8ad0877c25e03c4d82e2f00c2a0042f3a9e185e04237398675ebe7d67e11e030ebea167d0874734b6812c6d0601a916
|
data/lib/sskatex.rb
CHANGED
|
@@ -58,15 +58,9 @@ require 'json'
|
|
|
58
58
|
# Applications using SsKaTeX need to check this.
|
|
59
59
|
class SsKaTeX
|
|
60
60
|
|
|
61
|
-
#
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
begin
|
|
65
|
-
::ENV['EXECJS_RUNTIME'] = 'Disabled' # Defer automatic JS engine selection
|
|
66
|
-
require 'execjs'
|
|
67
|
-
ensure
|
|
68
|
-
::ENV['EXECJS_RUNTIME'] = ENV_EXECJS_RUNTIME
|
|
69
|
-
end
|
|
61
|
+
# Defer ExecJS's engine auto-selection (avoided later unless necessary).
|
|
62
|
+
require 'execjs/module'
|
|
63
|
+
require 'execjs/runtimes'
|
|
70
64
|
|
|
71
65
|
# Root directory for auxiliary files of this gem
|
|
72
66
|
DATADIR = File.expand_path(File.join(File.dirname(__FILE__),
|
|
@@ -274,7 +268,7 @@ class SsKaTeX
|
|
|
274
268
|
logger ||= @logger
|
|
275
269
|
logv(logger) {"Available JS runtimes: #{Utils.js_runtimes.join(', ')}"}
|
|
276
270
|
jsrun = (@config[:js_run] ||
|
|
277
|
-
|
|
271
|
+
ENV['EXECJS_RUNTIME'] ||
|
|
278
272
|
Utils::JSRUN_TOSYM[ExecJS::Runtimes.best_available] ||
|
|
279
273
|
'Disabled').to_s.to_sym
|
|
280
274
|
logv(logger) {"Selected JS runtime: #{jsrun}"}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sskatex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.37
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Christian Cornelssen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-01-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: execjs
|