no-style-please2-plugins 0.7.2 → 0.7.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc515e26a7e6fffd53735f17e0b55ddb20613ca5cdae59954b24cdeb30289048
4
- data.tar.gz: f0e210e5345a415bd45beb978ad8eb01419bc8d63b261b4c585ce8c58d95387e
3
+ metadata.gz: 3f70756daa935247238f2e2b403c75554db41b447acbaa0339be4e882478bb20
4
+ data.tar.gz: ab75d02a6103b328403d6b65bebafcfc564345f1f2341476e3e89a83a0a49c15
5
5
  SHA512:
6
- metadata.gz: 5e3b2f44e495078570a425aea46e2ecaaeec1ec560c7708f61e013c3a27883d211850bb4a8e0f594e4dd8b11e2ce8d7e30a98183b668840bee35037b0cbcec3d
7
- data.tar.gz: c466e2fc225cbad83ef61408235a0dc3f5aa66f6fed80bdfb4198b4dbeb097899453172129124d4a31ba65bded3c349a4ab37baefa15ce4806da2de6f15a8202
6
+ metadata.gz: 6ec817b045439f0512850cc77c0a418d785d0f0ed2fbe9f9c5d28b4fbda203fabd997a287a70ceb5be3ff91893348984170d8a6dd760ee369d9f7c744605c575
7
+ data.tar.gz: a8acf8fd6d2176818d420e8f7f41c8e349215da10696ab5af751b3cbd126562bd1655174a5d2c128a35b394d6c9998034a5a9bf6dfd19d04c6cc6b3ade645d0f
data/Gemfile.lock CHANGED
@@ -1,87 +1,89 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- no-style-please2-plugins (0.4.0)
4
+ no-style-please2-plugins (0.7.4)
5
5
  digest
6
- jekyll (~> 4.2.0)
6
+ jekyll (~> 4.0)
7
7
  ltec (~> 0.1.2)
8
- salsa20 (~> 0.1.3)
9
8
 
10
9
  GEM
11
10
  remote: https://rubygems.org/
12
11
  specs:
13
- addressable (2.8.0)
14
- public_suffix (>= 2.0.2, < 5.0)
15
- base64 (0.1.1)
12
+ addressable (2.8.7)
13
+ public_suffix (>= 2.0.2, < 7.0)
14
+ base64 (0.1.2)
15
+ bigdecimal (3.1.8)
16
16
  colorator (1.1.0)
17
- concurrent-ruby (1.1.10)
18
- digest (3.1.0)
17
+ concurrent-ruby (1.3.4)
18
+ digest (3.1.1)
19
19
  em-websocket (0.5.3)
20
20
  eventmachine (>= 0.12.9)
21
21
  http_parser.rb (~> 0)
22
22
  eventmachine (1.2.7)
23
- ffi (1.15.5)
23
+ ffi (1.17.0-arm64-darwin)
24
24
  forwardable-extended (2.6.0)
25
+ google-protobuf (4.29.1-arm64-darwin)
26
+ bigdecimal
27
+ rake (>= 13)
25
28
  http_parser.rb (0.8.0)
26
- i18n (1.10.0)
29
+ i18n (1.14.6)
27
30
  concurrent-ruby (~> 1.0)
28
- ipaddr (1.2.4)
29
- jekyll (4.2.2)
31
+ jekyll (4.3.4)
30
32
  addressable (~> 2.4)
31
33
  colorator (~> 1.0)
32
34
  em-websocket (~> 0.5)
33
35
  i18n (~> 1.0)
34
- jekyll-sass-converter (~> 2.0)
36
+ jekyll-sass-converter (>= 2.0, < 4.0)
35
37
  jekyll-watch (~> 2.0)
36
- kramdown (~> 2.3)
38
+ kramdown (~> 2.3, >= 2.3.1)
37
39
  kramdown-parser-gfm (~> 1.0)
38
40
  liquid (~> 4.0)
39
- mercenary (~> 0.4.0)
41
+ mercenary (>= 0.3.6, < 0.5)
40
42
  pathutil (~> 0.9)
41
- rouge (~> 3.0)
43
+ rouge (>= 3.0, < 5.0)
42
44
  safe_yaml (~> 1.0)
43
- terminal-table (~> 2.0)
44
- jekyll-sass-converter (2.2.0)
45
- sassc (> 2.0.1, < 3.0)
45
+ terminal-table (>= 1.8, < 4.0)
46
+ webrick (~> 1.7)
47
+ jekyll-sass-converter (3.0.0)
48
+ sass-embedded (~> 1.54)
46
49
  jekyll-watch (2.2.1)
47
50
  listen (~> 3.0)
48
- kramdown (2.4.0)
49
- rexml
51
+ kramdown (2.5.1)
52
+ rexml (>= 3.3.9)
50
53
  kramdown-parser-gfm (1.1.0)
51
54
  kramdown (~> 2.0)
52
- liquid (4.0.3)
53
- listen (3.7.1)
55
+ liquid (4.0.4)
56
+ listen (3.9.0)
54
57
  rb-fsevent (~> 0.10, >= 0.10.3)
55
58
  rb-inotify (~> 0.9, >= 0.9.10)
56
- ltec (0.1.2.1)
59
+ ltec (0.1.3.1)
57
60
  base64 (~> 0.1.0)
58
- openssl (~> 2.2.0)
61
+ openssl
59
62
  mercenary (0.4.0)
60
- openssl (2.2.1)
61
- ipaddr
63
+ openssl (3.3.0)
62
64
  pathutil (0.16.2)
63
65
  forwardable-extended (~> 2.6)
64
- public_suffix (4.0.7)
65
- rake (13.0.6)
66
- rb-fsevent (0.11.1)
67
- rb-inotify (0.10.1)
66
+ public_suffix (6.0.1)
67
+ rake (13.2.1)
68
+ rb-fsevent (0.11.2)
69
+ rb-inotify (0.11.1)
68
70
  ffi (~> 1.0)
69
- rexml (3.2.5)
70
- rouge (3.28.0)
71
+ rexml (3.4.0)
72
+ rouge (4.5.1)
71
73
  safe_yaml (1.0.5)
72
- salsa20 (0.1.3)
73
- sassc (2.4.0)
74
- ffi (~> 1.9)
75
- terminal-table (2.0.0)
76
- unicode-display_width (~> 1.1, >= 1.1.1)
77
- unicode-display_width (1.8.0)
74
+ sass-embedded (1.82.0-arm64-darwin)
75
+ google-protobuf (~> 4.28)
76
+ terminal-table (3.0.2)
77
+ unicode-display_width (>= 1.1.1, < 3)
78
+ unicode-display_width (2.6.0)
79
+ webrick (1.9.1)
78
80
 
79
81
  PLATFORMS
80
- x86_64-darwin-20
82
+ arm64-darwin
81
83
 
82
84
  DEPENDENCIES
83
85
  no-style-please2-plugins!
84
86
  rake (~> 13.0)
85
87
 
86
88
  BUNDLED WITH
87
- 2.3.13
89
+ 2.5.23
data/lib/enc.rb CHANGED
@@ -111,14 +111,14 @@ module Jekyll
111
111
  # 如果内容不同,则写入新内容
112
112
  unless current_content == new_content
113
113
  File.write(file_path, new_content)
114
- puts "文件内容已更新。"
114
+ puts "write file" + file_path
115
115
  else
116
- puts "文件内容相同,无需更新。"
116
+ puts "write file: same, skip " + file_path
117
117
  end
118
118
  else
119
119
  # 文件不存在,直接写入
120
120
  File.write(file_path, new_content)
121
- puts "文件不存在,已创建新文件并写入内容。"
121
+ puts "write file" + file_path
122
122
  end
123
123
  return ''
124
124
  end
data/lib/ext.rb CHANGED
@@ -123,6 +123,28 @@ module Jekyll
123
123
  end
124
124
  end
125
125
 
126
+ class IncludeFile < Liquid::Tag
127
+
128
+ def initialize(tag_name, text, tokens)
129
+ rootPath0 = $g_config['include_file_path'] || 'assets'
130
+ filePath0 = "#{rootPath0}/#{text}".strip!()
131
+ begin
132
+ file = File.open(filePath0)
133
+ @filecontent = file.read()
134
+ rescue => exception
135
+ puts exception
136
+ @filecontent = "load file:#{text} failed"
137
+
138
+ end
139
+
140
+ end
141
+
142
+ def render(context)
143
+ return @filecontent
144
+ end
145
+ end
146
+
147
+
126
148
 
127
149
  class IncludeCode < Liquid::Tag
128
150
  @filecontent = ""
@@ -161,6 +183,7 @@ EOF
161
183
  Liquid::Template.register_tag('include_code', Jekyll::IncludeCode)
162
184
  Liquid::Template.register_tag('post_link', Jekyll::PostLink)
163
185
  Liquid::Template.register_tag('img_link', Jekyll::ImgLink)
186
+ Liquid::Template.register_tag('include_file', Jekyll::IncludeFile)
164
187
 
165
188
 
166
189
 
@@ -249,12 +272,7 @@ end
249
272
 
250
273
  Jekyll::Hooks.register :site, :after_init do |st|
251
274
  # code to call after Jekyll renders a page
252
- filename = 'index.html'
253
- if !File.file?(filename)
254
- tagTmp = "---\nlayout: paginate\n---"
255
- File.open(filename , 'w+') { |f| f.write(tagTmp) }
256
- print 'generate ' + filename
257
- end
275
+
258
276
 
259
277
  assets = 'assets'
260
278
 
@@ -270,6 +288,23 @@ end
270
288
  FileUtils.mkdir(dynpath)
271
289
 
272
290
 
291
+ filename = 'index.html'
292
+ if !File.file?(filename)
293
+ tagTmp = "---\nlayout: paginate\n---"
294
+ File.open(filename , 'w+') { |f| f.write(tagTmp) }
295
+ print 'generate ' + filename
296
+ end
297
+
298
+ filename = 'HeatMap.md'
299
+ if !File.file?(filename)
300
+ tagTmp = "---\nlayout: heatmap\n---"
301
+ File.open(filename , 'w+') { |f| f.write(tagTmp) }
302
+ print 'heatmpa ' + filename
303
+ end
304
+
305
+
306
+
307
+
273
308
  end
274
309
 
275
310
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NoStylePlease2
4
- VERSION = "0.7.2"
4
+ VERSION = "0.7.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: no-style-please2-plugins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - vitock
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-23 00:00:00.000000000 Z
11
+ date: 2024-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll