jekyll-tex-eqn 0.9.1 → 1.0.0

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 +5 -6
  3. metadata +24 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c7056f1a291c8fff31a40d1e4c4e0d3a4092537d4e88d23eadeb603657fd5b2
4
- data.tar.gz: dbe17f5aa5bf79d6350bbe7abc8fdb95c863eb6f9b15d48e5ea133b8b032a025
3
+ metadata.gz: 3fbf98c7e73031e3ab1cbec82fd152216a81c8fd6f533d0d0d256866df97e1cc
4
+ data.tar.gz: 15b85655ef755d8fc103f7b41919b3a51788daa754b7486c87280f442d507c5b
5
5
  SHA512:
6
- metadata.gz: db432307efdf1eef081d1e2b1f95bd5e7c0e5a072f2f528e56f99788a6b2459f99512ede02a682481ac3572f88435d708e74dd317c944103d49ae374f2bb76ad
7
- data.tar.gz: ef07140be131a3a4d4cc9ad1bf21971e050650d692e41dd1090d38e775b165e7e2fdac75c75a4fc82f28f32c05e51ce9d71c1f15656d84ede1d51c1e7ad237d9
6
+ metadata.gz: 6ef5e34d8024ab5071143fac362bce5dff54c4243ae8024a615db981b14f618a54d69e1e4e2ba879b9f7de4133f57418beda91a280819d7af9768a891bcf2802
7
+ data.tar.gz: b7d9b911473ed030da7badef3832f8770b2d6a2c98a0357976451fbd7292a3c390310413c2b09f49c2bdec4465d432cd617f0d5c04a372708daf6d90b0edb0dd
@@ -122,8 +122,8 @@ module Jekyll
122
122
  def self.run_cmd(base)
123
123
  text = ""
124
124
 
125
- # Cleanup if needed (in case of past error for instanec)
126
- if !File.exists?("#{@@basedir}/#{base}") then
125
+ # Cleanup if needed (in case of past error for instance)
126
+ if !File.exist?("#{@@basedir}/#{base}") then
127
127
  Dir.mkdir("#{@@basedir}/#{base}")
128
128
  end
129
129
 
@@ -154,8 +154,7 @@ module Jekyll
154
154
  # a hash function on the content to obtain (virtually) unique names.
155
155
  def self.filename(filepath, content)
156
156
  id = Digest::MD5.hexdigest content
157
- pagepath = filepath
158
- pagepath.gsub("/", "_").gsub(" ", "-")
157
+ pagepath = filepath.gsub("/", "_").gsub(" ", "-")
159
158
  "#{pagepath}-#{id}"
160
159
  end
161
160
 
@@ -201,12 +200,12 @@ module Jekyll
201
200
  # If the SVG file already exists, no need to re-render it (usually)
202
201
  # If the TeX file already exists, this usually mean something went wrong and it is
203
202
  # erroneous!
204
- if !File.exists?(texfile) && !File.exists?(svgfile) then
203
+ if !File.exist?(texfile) && !File.exist?(svgfile) then
205
204
  Jekyll.logger.info("Generating image file #{file}")
206
205
  Generate.generate_file(context, content, begineqn, endeqn, texfile)
207
206
  Generate.run_cmd(file)
208
207
  File.delete(texfile)
209
- if File.exists?("#{@@basedir}/#{file}") then
208
+ if File.exist?("#{@@basedir}/#{file}") then
210
209
  FileUtils.remove_dir("#{@@basedir}/#{file}")
211
210
  end
212
211
  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.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - krab5
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2022-04-19 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
@@ -34,45 +33,56 @@ dependencies:
34
33
  name: digest
35
34
  requirement: !ruby/object:Gem::Requirement
36
35
  requirements:
37
- - - "~>"
36
+ - - ">="
38
37
  - !ruby/object:Gem::Version
39
38
  version: '3.0'
39
+ - - "<"
40
+ - !ruby/object:Gem::Version
41
+ version: '4.0'
40
42
  type: :runtime
41
43
  prerelease: false
42
44
  version_requirements: !ruby/object:Gem::Requirement
43
45
  requirements:
44
- - - "~>"
46
+ - - ">="
45
47
  - !ruby/object:Gem::Version
46
48
  version: '3.0'
49
+ - - "<"
50
+ - !ruby/object:Gem::Version
51
+ version: '4.0'
47
52
  - !ruby/object:Gem::Dependency
48
53
  name: fileutils
49
54
  requirement: !ruby/object:Gem::Requirement
50
55
  requirements:
51
- - - "~>"
56
+ - - ">="
52
57
  - !ruby/object:Gem::Version
53
- version: '1.4'
58
+ version: '1.2'
59
+ - - "<"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.0'
54
62
  type: :runtime
55
63
  prerelease: false
56
64
  version_requirements: !ruby/object:Gem::Requirement
57
65
  requirements:
58
- - - "~>"
66
+ - - ">="
59
67
  - !ruby/object:Gem::Version
60
- version: '1.4'
68
+ version: '1.2'
69
+ - - "<"
70
+ - !ruby/object:Gem::Version
71
+ version: '2.0'
61
72
  - !ruby/object:Gem::Dependency
62
73
  name: bundler
63
74
  requirement: !ruby/object:Gem::Requirement
64
75
  requirements:
65
- - - "~>"
76
+ - - ">="
66
77
  - !ruby/object:Gem::Version
67
78
  version: '1.10'
68
79
  type: :development
69
80
  prerelease: false
70
81
  version_requirements: !ruby/object:Gem::Requirement
71
82
  requirements:
72
- - - "~>"
83
+ - - ">="
73
84
  - !ruby/object:Gem::Version
74
85
  version: '1.10'
75
- description:
76
86
  email: crab.delicieux@gmail.com
77
87
  executables: []
78
88
  extensions: []
@@ -83,7 +93,6 @@ homepage: https://github.com/krab5/jekyll-tex-eqn
83
93
  licenses:
84
94
  - MIT
85
95
  metadata: {}
86
- post_install_message:
87
96
  rdoc_options: []
88
97
  require_paths:
89
98
  - lib
@@ -91,15 +100,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
100
  requirements:
92
101
  - - ">="
93
102
  - !ruby/object:Gem::Version
94
- version: 2.4.0
103
+ version: 3.0.0
95
104
  required_rubygems_version: !ruby/object:Gem::Requirement
96
105
  requirements:
97
106
  - - ">="
98
107
  - !ruby/object:Gem::Version
99
108
  version: '0'
100
109
  requirements: []
101
- rubygems_version: 3.2.5
102
- signing_key:
110
+ rubygems_version: 3.6.7
103
111
  specification_version: 4
104
112
  summary: Standalone, static, no-JS, TeX-rendered mathematical equations for your Jekyll
105
113
  website