sskatex 0.9.37 → 0.9.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/sskatex +1 -0
  3. data/lib/sskatex.rb +5 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab384ff477d1c904cb7337e0f3d2ba13c8443584
4
- data.tar.gz: 364568a86bd1f8f775feef5bd6c2f68f36bc6dc3
3
+ metadata.gz: f04f4f17a18f497eb7650e9e2100f39ef9d32587
4
+ data.tar.gz: cb3faf9a2cab026dd6f841edbb09685471b650a9
5
5
  SHA512:
6
- metadata.gz: 4f4aeb562fea8dcda1e6ac9c162c2b77165b71ee2a0ee57505b661547cf0d88c89bcd39c2281b21280227f28bb65b301e6da71fd0edbca680b549e62d23a5408
7
- data.tar.gz: fceb1fb83f2a6b5f27867708bea70793d8ad0877c25e03c4d82e2f00c2a0042f3a9e185e04237398675ebe7d67e11e030ebea167d0874734b6812c6d0601a916
6
+ metadata.gz: 356db512334ca6898232d3e8ef05c5b8a76c5367f65cef5990de5389e433a68594f7d1d695c879a71da4ed876bd79ebc313faaf3ccfcb77518e4f846fba5d839
7
+ data.tar.gz: 28bc531d33a0886a50f6d9b5766a965877c60eac074cb0ebbd5660dd6872d754b9a24b1ceab3b4456e78970b6d64370f03ef698ca45716216b668f13154ecce7
data/bin/sskatex CHANGED
@@ -1,5 +1,6 @@
1
1
  #! /usr/bin/env ruby
2
2
  require 'json'
3
+ require 'time' # needed for safe_yaml
3
4
  require 'safe_yaml'
4
5
  require 'optparse'
5
6
  require 'sskatex'
data/lib/sskatex.rb CHANGED
@@ -152,7 +152,11 @@ class SsKaTeX
152
152
  # This should really be provided by +ExecJS::Runtimes+:
153
153
  # A list of available JS engines, as symbols, in the order of preference.
154
154
  def js_runtimes
155
- ExecJS::Runtimes.runtimes.select(&:available?).map(&JSRUN_TOSYM)
155
+ # Ruby 2.3+:
156
+ # ExecJS::Runtimes.runtimes.select(&:available?).map(&JSRUN_TOSYM)
157
+ ExecJS::Runtimes.runtimes.select(&:available?).map do |runtime|
158
+ JSRUN_TOSYM[runtime]
159
+ end
156
160
  end
157
161
 
158
162
  # Configuration dicts may contain keys in both string and symbol form.
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.37
4
+ version: 0.9.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Cornelssen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-25 00:00:00.000000000 Z
11
+ date: 2018-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs