no-style-please2-plugins 0.7.2 → 0.7.3

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
  SHA256:
3
- metadata.gz: dc515e26a7e6fffd53735f17e0b55ddb20613ca5cdae59954b24cdeb30289048
4
- data.tar.gz: f0e210e5345a415bd45beb978ad8eb01419bc8d63b261b4c585ce8c58d95387e
3
+ metadata.gz: ab334d2c482d4209e3ba73781eacd5f3b0f5e1735500d879de12555f9e156df3
4
+ data.tar.gz: 23eb54db2441640193bde976518f504630651305581d21d2e66eaa9008220e67
5
5
  SHA512:
6
- metadata.gz: 5e3b2f44e495078570a425aea46e2ecaaeec1ec560c7708f61e013c3a27883d211850bb4a8e0f594e4dd8b11e2ce8d7e30a98183b668840bee35037b0cbcec3d
7
- data.tar.gz: c466e2fc225cbad83ef61408235a0dc3f5aa66f6fed80bdfb4198b4dbeb097899453172129124d4a31ba65bded3c349a4ab37baefa15ce4806da2de6f15a8202
6
+ metadata.gz: d0fc8b380faf95c98d75ca79360e9a9ddd472900a30ff9eb8e92408ed33e89a51a56dbfd542daac121d326f97bc75c5f5f68f8f21e97ff1fa436f5e058998d3b
7
+ data.tar.gz: ec8a98db075fb514a7a515e56c3c5f02193b49a9ebf8cad63af566d0e80ef604c98633aded8063bba993ffe23e3e1f448000df5f732ad8f749ea15618cf368a0
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
@@ -249,12 +249,7 @@ end
249
249
 
250
250
  Jekyll::Hooks.register :site, :after_init do |st|
251
251
  # 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
252
+
258
253
 
259
254
  assets = 'assets'
260
255
 
@@ -270,6 +265,23 @@ end
270
265
  FileUtils.mkdir(dynpath)
271
266
 
272
267
 
268
+ filename = 'index.html'
269
+ if !File.file?(filename)
270
+ tagTmp = "---\nlayout: paginate\n---"
271
+ File.open(filename , 'w+') { |f| f.write(tagTmp) }
272
+ print 'generate ' + filename
273
+ end
274
+
275
+ filename = 'HeatMap.md'
276
+ if !File.file?(filename)
277
+ tagTmp = "---\nlayout: heatmap\n---"
278
+ File.open(filename , 'w+') { |f| f.write(tagTmp) }
279
+ print 'heatmpa ' + filename
280
+ end
281
+
282
+
283
+
284
+
273
285
  end
274
286
 
275
287
  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.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - vitock