sskatex 0.9.30 → 0.9.35

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: 0aa682c1169077ee4701f77c536650f1db74038c
4
- data.tar.gz: 38a1fa30f7165ba0776b3794195f5c924a1231fe
3
+ metadata.gz: e0028406fae14c0c8ba883137363d1beede5099a
4
+ data.tar.gz: bbe5394c1f1e18d5fb8e551611f3f872131464f3
5
5
  SHA512:
6
- metadata.gz: 0f64c5fd9bee28b5757da65acb6de17126ab4a0de80f21eb8f9855f4a13ddcedb95651bd449e7f6740021a50e9c7632ef3a58e7d7a5a7117d19fdc22169a5483
7
- data.tar.gz: 0ac7a07aa719ccc0f8ce46b600fd6a836222419e6dfb60d3d672463bdf46c9491b5101fa2a77b9d8f0a92c963ce5071d2ac949750d7e26d52044b6b88d336abd
6
+ metadata.gz: 1f43da42ec993199b6f616611a01d982fe37d286cb3e3500137bb8eeec05ec7cbb57acc1e381c7ee0c39f5d190d592c378c437ce3dfa4a3d7058aaf28b9372c3
7
+ data.tar.gz: f8b3f0e0110ce131c818ea10aff1438b41f057dbde7676dc7191a2d2d003a39d15d6cc0718579fd15a1bda512648e90bf61c00b7e4ca7c1f160373167e632bad
@@ -1,7 +1,6 @@
1
- SsKaTeX - Server-side KaTeX for Ruby
2
- (not including KaTeX itself)
3
- MIT License
4
- Copyright (C) 2017 Christian Cornelssen <ccorn@1tein.de>
1
+ The MIT License (MIT)
2
+
3
+ Copyright (C) 2017 Christian Cornelssen <ccorn@1tein.de> on SsKaTeX
5
4
 
6
5
  Permission is hereby granted, free of charge, to any person obtaining a
7
6
  copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -49,9 +49,18 @@ implies that execution of arbitrary Javascript code is possible. Specifically,
49
49
  options with `js` in their names should be accepted from trusted sources only.
50
50
  Applications using SsKaTeX need to check this.
51
51
 
52
+ Also included is a command-line interface to the SsKaTeX gem: A script called
53
+ `sskatex`. It demonstrates basic functionality and options of the SsKaTeX gem.
54
+ It only renders one TeX math expression per invocation; try `sskatex -h` for
55
+ more information. If you want to see the SsKaTeX gem used more efficiently,
56
+ look at [kramdown] v1.16 or later which can use SsKaTeX as a math engine. But
57
+ do *not* make SsKaTeX available where kramdown is exposed to untrusted users;
58
+ that would be insecure unless that process is sandboxed.
59
+
52
60
  [duktape.rb]: https://github.com/judofyr/duktape.rb#duktaperb
53
61
  [ExecJS]: https://github.com/rails/execjs#execjs
54
62
  [KaTeX]: https://khan.github.io/KaTeX/
63
+ [kramdown]: https://github.com/gettalong/kramdown
55
64
  [mathjax-node-cli]: https://github.com/mathjax/mathjax-node-cli
56
65
  [Node.js]: https://nodejs.org/
57
66
  [therubyracer]: https://github.com/cowboyd/therubyracer#therubyracer
@@ -78,7 +78,7 @@ if ARGV.size > 2
78
78
  exit 2
79
79
  end
80
80
 
81
- cfg_opts = JSON.parse(YAML.load(config_file, safe: true).to_json,
81
+ cfg_opts = JSON.parse(YAML.load_file(config_file, safe: true).to_json,
82
82
  symbolize_names: true) if config_file
83
83
  options = cfg_opts.merge(cmd_opts, &merge_dicts)
84
84
  loglevel = options[:debug] ? :debug : options[:verbose] ? :verbose : nil
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.30
4
+ version: 0.9.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Cornelssen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-30 00:00:00.000000000 Z
11
+ date: 2017-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs
@@ -64,7 +64,7 @@ executables:
64
64
  extensions: []
65
65
  extra_rdoc_files: []
66
66
  files:
67
- - COPYING
67
+ - LICENSE.txt
68
68
  - README.md
69
69
  - bin/sskatex
70
70
  - data/sskatex/js/escape_nonascii_html.js
@@ -98,6 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  requirements:
100
100
  - Javascript engine supported by the ExecJS gem
101
+ - Some KaTeX release
101
102
  rubyforge_project:
102
103
  rubygems_version: 2.6.11
103
104
  signing_key: