VictoriaFreSh 2022.1.15 → 2022.1.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/victoriafresh.rb +2 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a021bf4ba7e3c19fe3d303849da3fdbd5410f8188af87059e1ca404d77450bf8
4
- data.tar.gz: 986f3fea84eb15ce0574edbfd6bb9247d00b9002e98080228d5b2c6a79283e53
3
+ metadata.gz: bfb840c0cb2badb82e8518e77c2911bf0604533ee751a0292fe64a928fe68a42
4
+ data.tar.gz: 9a5c8667b3a714b922d22b638745526044cc0de79a265ce3f7d50dc08bcc47e0
5
5
  SHA512:
6
- metadata.gz: d27b6fead18004368e8948f4e440b213874fe8edcf67b49a86f0ae7046c939125a035db420c865af3c5014f11fa3fb0df262ebc774199edbc043535f41fdfa0e
7
- data.tar.gz: 7af520afdca24160b014aaeb3995f05418f09319df854d969f48b8e5c4319756336e1b4a886681d844a51d596dc1f2e49afdd419510a1af92eb3ae8aa10eba7a
6
+ metadata.gz: 314494a3924b7122ace2a3dbf3ce5facf217493e255c8b4628fb15125556b33fb8adce788c28d688ddfc604e0ba6e5c479e89c8901f560cab55709156a33febb
7
+ data.tar.gz: d494de1a1131a9514fa1c3bf90875ec6cdd2746a217d68c90c0d83b498d0593ecbe4388138a54a2a80e59e1cc3d7c99ced463743df3aaf542edecaf5bf16d5a6
data/lib/victoriafresh.rb CHANGED
@@ -426,6 +426,7 @@ class VictoriaFresh
426
426
  #读取文件内容:
427
427
  fileToReadContent=File.new(directoryPath,"rb") #创建文件。
428
428
  currentFileContent=fileToReadContent.read #全部读取
429
+ fileToReadContent.close # 关闭文件
429
430
 
430
431
  currentContentMd5=calculateMd5(currentFileContent) # 计算文件内容的MD5。
431
432
 
@@ -486,7 +487,7 @@ class VictoriaFresh
486
487
 
487
488
  end
488
489
 
489
- rescue Errno::EMFILE # File not exist
490
+ rescue Errno::EMFILE # too many open Files in process
490
491
  puts "Rescued by Errno::EMFILE statement. #{subFile}" #报告错误
491
492
  end
492
493
  end #directoryPathName.each_child do |subFile| #一个个文件地处理。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: VictoriaFreSh
3
3
  version: !ruby/object:Gem::Version
4
- version: 2022.1.15
4
+ version: 2022.1.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hxcan Cai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-15 00:00:00.000000000 Z
11
+ date: 2022-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hx_cbor