jekyll-tex-eqn 0.9.0 → 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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll-tex-eqn.rb +7 -4
  3. metadata +5 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 023fc19029bcf5f081be6279007e70ded05d0f2fb0c8d74f54b02fc326aa8cbb
4
- data.tar.gz: bd333677c9ece485e5dc4b2eb99cca678a43b3a66af6d61eddc41e767e88e842
3
+ metadata.gz: 8e7da3c797d328f1dc308a8eba1c235ef925f4e66c6364f218023d4d6e99131d
4
+ data.tar.gz: 78439154af7d5e02d9fcc3a39053ba3c9bd737fd5087c43b4c3b559c69feec27
5
5
  SHA512:
6
- metadata.gz: fdc10bae69788c276bd9e96d0fdc0d84f10385cbebf87f3331c5e703c7b637920bb7e2444f7681dbeecd02fe71d70c53b0fff52aa2c4a0619d298c76762515ac
7
- data.tar.gz: f68f67316fa9040ff3cfb312716266a40fe011bc91a5ecd821fc2ff8cbebd360b535d7c5c7d5c3ccdd8ecdfa382d5d82dcaa693932a93d5dce97afed765ffc48
6
+ metadata.gz: e0e18ffc63f1b4635b28ae93105e7b4d27066b90af9d29b18b904cba6506d4a77242296d24bf8e4fa6c0c816da677f6330526ce1096913d8f8aa416aa47f17f8
7
+ data.tar.gz: f2c9d78a7cdbc3c82892d5445aaecf84061f74112306ce1bc090c32c017c900ed74621e7eb4469e39bbbc41c607736c760e269f8454880e9708e92a80f22f6bd
@@ -68,7 +68,10 @@ module Jekyll
68
68
  # Get the value of an option, or the provided default value if that option
69
69
  # has not been set
70
70
  def self.get_option(key, default)
71
- v = @@config[key]
71
+ v = nil
72
+ if !@@config.nil? then
73
+ v = @@config[key]
74
+ end
72
75
  if v.nil? && !default.nil? then
73
76
  v = default
74
77
  end
@@ -120,7 +123,7 @@ module Jekyll
120
123
  text = ""
121
124
 
122
125
  # Cleanup if needed (in case of past error for instanec)
123
- if !File.exists?("#{@@basedir}/#{base}") then
126
+ if !File.exist?("#{@@basedir}/#{base}") then
124
127
  Dir.mkdir("#{@@basedir}/#{base}")
125
128
  end
126
129
 
@@ -198,12 +201,12 @@ module Jekyll
198
201
  # If the SVG file already exists, no need to re-render it (usually)
199
202
  # If the TeX file already exists, this usually mean something went wrong and it is
200
203
  # erroneous!
201
- if !File.exists?(texfile) && !File.exists?(svgfile) then
204
+ if !File.exist?(texfile) && !File.exist?(svgfile) then
202
205
  Jekyll.logger.info("Generating image file #{file}")
203
206
  Generate.generate_file(context, content, begineqn, endeqn, texfile)
204
207
  Generate.run_cmd(file)
205
208
  File.delete(texfile)
206
- if File.exists?("#{@@basedir}/#{file}") then
209
+ if File.exist?("#{@@basedir}/#{file}") then
207
210
  FileUtils.remove_dir("#{@@basedir}/#{file}")
208
211
  end
209
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.0
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: 2022-04-18 00:00:00.000000000 Z
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,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
95
  - !ruby/object:Gem::Version
99
96
  version: '0'
100
97
  requirements: []
101
- rubygems_version: 3.2.5
102
- signing_key:
98
+ rubygems_version: 3.6.7
103
99
  specification_version: 4
104
- summary: Standalone, static, no-JS, TeX-rendered mathematical equations for Jekyll
100
+ summary: Standalone, static, no-JS, TeX-rendered mathematical equations for your Jekyll
101
+ website
105
102
  test_files: []