katex 0.4.0.beta → 0.4.1.beta

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: 4fb6198a88bc176bfd651a001034aac3577d8558
4
- data.tar.gz: 0aaae1f30df729ab729062cff587f43c47fb9b53
3
+ metadata.gz: f0e36923af6c602d4b2ba213f7bc85004f0eb201
4
+ data.tar.gz: 963690dc20b6f06d9a8d41235b6511f41f2dc567
5
5
  SHA512:
6
- metadata.gz: be11d9a2bfc81c6064b92cdf71d635de7a343a80228126d75f4442b1b9400efc7f06a1f0022f23cd78824ed699c026a325d228164ab15384bceedbd84a440c3a
7
- data.tar.gz: bac6a83a25abdb35046b2b194706248cc9aab5d102715ad5d91535b899844b10058bea6e2564bfd272812858d93f9c165550784f766e7f0377a0974782f9b0c4
6
+ metadata.gz: ec241889a848b1a74d91966d0e07f4eb609cefcd4d51d85ae061bdb521c27e6f9f06135a9d9cbea9720ad6a5d326bf95e84b217973cba8c5525547dce9050751
7
+ data.tar.gz: 5389562d3e5e5cb79a79ca94bbfbb1b316bd2d89d7e4b7fb5bdd98cb73a16ecff8b2865493b83151e458ac660a323ff4f2d7b66cddf931d0040cec9eeaa49b3a
data/README.md CHANGED
@@ -8,7 +8,7 @@ It uses [ExecJS] under the hood.
8
8
  Add this line to your application's Gemfile:
9
9
 
10
10
  ```ruby
11
- gem 'katex', '~> 0.4.0.beta'
11
+ gem 'katex', '~> 0.4.1.beta'
12
12
  ```
13
13
 
14
14
  And then execute:
@@ -86,7 +86,7 @@ and push the `.gem` file to [rubygems.org](https://rubygems.org).
86
86
  ## Contributing
87
87
 
88
88
  Bug reports and pull requests are welcome on GitHub at
89
- https://github.com/glebm/katex.
89
+ https://github.com/glebm/katex-ruby.
90
90
 
91
91
  This project is intended to be a safe, welcoming space for collaboration,
92
92
  and contributors are expected to adhere to the
data/lib/katex.rb CHANGED
@@ -44,7 +44,9 @@ module Katex
44
44
 
45
45
  def katex_context
46
46
  @load_context_mutex.synchronize do
47
- @context ||= ExecJS.compile(File.read(katex_js_path))
47
+ # Use `ExecJS::Runtimes.autodetect.compile` instead of `ExecJS.compile`
48
+ # to avoid forcing the global runtime onto the user.
49
+ @context ||= ExecJS::Runtimes.autodetect.compile File.read katex_js_path
48
50
  end
49
51
  end
50
52
 
data/lib/katex/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Katex
4
- VERSION = '0.4.0.beta'
4
+ VERSION = '0.4.1.beta'
5
5
  KATEX_VERSION = 'v0.9.0-beta'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.beta
4
+ version: 0.4.1.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Mazovetskiy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-15 00:00:00.000000000 Z
11
+ date: 2018-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs