jekyll-tex-eqn 0.9.1 → 0.9.2
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/jekyll-tex-eqn.rb +3 -3
- metadata +3 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8e7da3c797d328f1dc308a8eba1c235ef925f4e66c6364f218023d4d6e99131d
|
|
4
|
+
data.tar.gz: 78439154af7d5e02d9fcc3a39053ba3c9bd737fd5087c43b4c3b559c69feec27
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e0e18ffc63f1b4635b28ae93105e7b4d27066b90af9d29b18b904cba6506d4a77242296d24bf8e4fa6c0c816da677f6330526ce1096913d8f8aa416aa47f17f8
|
|
7
|
+
data.tar.gz: f2c9d78a7cdbc3c82892d5445aaecf84061f74112306ce1bc090c32c017c900ed74621e7eb4469e39bbbc41c607736c760e269f8454880e9708e92a80f22f6bd
|
data/lib/jekyll-tex-eqn.rb
CHANGED
|
@@ -123,7 +123,7 @@ module Jekyll
|
|
|
123
123
|
text = ""
|
|
124
124
|
|
|
125
125
|
# Cleanup if needed (in case of past error for instanec)
|
|
126
|
-
if !File.
|
|
126
|
+
if !File.exist?("#{@@basedir}/#{base}") then
|
|
127
127
|
Dir.mkdir("#{@@basedir}/#{base}")
|
|
128
128
|
end
|
|
129
129
|
|
|
@@ -201,12 +201,12 @@ module Jekyll
|
|
|
201
201
|
# If the SVG file already exists, no need to re-render it (usually)
|
|
202
202
|
# If the TeX file already exists, this usually mean something went wrong and it is
|
|
203
203
|
# erroneous!
|
|
204
|
-
if !File.
|
|
204
|
+
if !File.exist?(texfile) && !File.exist?(svgfile) then
|
|
205
205
|
Jekyll.logger.info("Generating image file #{file}")
|
|
206
206
|
Generate.generate_file(context, content, begineqn, endeqn, texfile)
|
|
207
207
|
Generate.run_cmd(file)
|
|
208
208
|
File.delete(texfile)
|
|
209
|
-
if File.
|
|
209
|
+
if File.exist?("#{@@basedir}/#{file}") then
|
|
210
210
|
FileUtils.remove_dir("#{@@basedir}/#{file}")
|
|
211
211
|
end
|
|
212
212
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-tex-eqn
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- krab5
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: jekyll
|
|
@@ -72,7 +71,6 @@ dependencies:
|
|
|
72
71
|
- - "~>"
|
|
73
72
|
- !ruby/object:Gem::Version
|
|
74
73
|
version: '1.10'
|
|
75
|
-
description:
|
|
76
74
|
email: crab.delicieux@gmail.com
|
|
77
75
|
executables: []
|
|
78
76
|
extensions: []
|
|
@@ -83,7 +81,6 @@ homepage: https://github.com/krab5/jekyll-tex-eqn
|
|
|
83
81
|
licenses:
|
|
84
82
|
- MIT
|
|
85
83
|
metadata: {}
|
|
86
|
-
post_install_message:
|
|
87
84
|
rdoc_options: []
|
|
88
85
|
require_paths:
|
|
89
86
|
- lib
|
|
@@ -98,8 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
98
95
|
- !ruby/object:Gem::Version
|
|
99
96
|
version: '0'
|
|
100
97
|
requirements: []
|
|
101
|
-
rubygems_version: 3.
|
|
102
|
-
signing_key:
|
|
98
|
+
rubygems_version: 3.6.7
|
|
103
99
|
specification_version: 4
|
|
104
100
|
summary: Standalone, static, no-JS, TeX-rendered mathematical equations for your Jekyll
|
|
105
101
|
website
|