VictoriaFreSh 2020.8.30 → 2020.8.31
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 +4 -4
- data/lib/victoriafresh.rb +21 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99215cc9a7204a11d468653634860ed7222a8448550e4aa4daab5a39ddc6bde3
|
4
|
+
data.tar.gz: 1456293d1e0a810f7eaa71006b9ac5eedbfece62686b5aec36e5d18960c1e62b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5eb6776e38f7156f29fd1f494956e358079faddc20237b106a3391a30d81e5fa627b041500fc4c8cdcf516064974116ce005abf86250bcae8f853be70db3f5fc
|
7
|
+
data.tar.gz: 85de65cc4cab55bdf7abc1034efa844b04481d3add31bcb8b8979774e0fd7d3c641c749c55f348503748447dd022084190e42de34e6e27546a9de9bf907c6b8d
|
data/lib/victoriafresh.rb
CHANGED
@@ -33,6 +33,13 @@ class VictoriaFresh
|
|
33
33
|
|
34
34
|
FileUtils.touch pathToMake, :mtime => timeObject #设置修改时间
|
35
35
|
|
36
|
+
permissionNumber=packagedFile['permission'] #获取权限数字
|
37
|
+
|
38
|
+
if (permissionNumber.nil?) #不带权限字段
|
39
|
+
elsif #带权限字段
|
40
|
+
File.chmod(permissionNumber, pathToMake) #设置权限
|
41
|
+
end #if (permissionNumber.nil?) #不带权限字段
|
42
|
+
|
36
43
|
end #writeFile(pathPrefix, packagedFile, contentString) #写入文件
|
37
44
|
|
38
45
|
#创建符号链接
|
@@ -52,7 +59,13 @@ class VictoriaFresh
|
|
52
59
|
|
53
60
|
FileUtils.symlink(victoriaFreshData, pathToMake, force: true) #创建符号链接
|
54
61
|
|
55
|
-
|
62
|
+
permissionNumber=packagedFile['permission'] #获取权限数字
|
63
|
+
|
64
|
+
if (permissionNumber.nil?) #不带权限字段
|
65
|
+
elsif #带权限字段
|
66
|
+
# File.chmod(permissionNumber, pathToMake) #设置权限
|
67
|
+
File.lchmod(permissionNumber, pathToMake) #设置权限
|
68
|
+
end #if (permissionNumber.nil?) #不带权限字段
|
56
69
|
end #def makeSymlink(pathPrefix, packagedFile, contentString) #创建符号链接
|
57
70
|
|
58
71
|
def getTimeObject(packagedFile) #构造时间戳对象
|
@@ -84,7 +97,13 @@ class VictoriaFresh
|
|
84
97
|
|
85
98
|
|
86
99
|
FileUtils.touch pathToMake, :mtime => timeObject #设置修改时间
|
87
|
-
|
100
|
+
|
101
|
+
permissionNumber=packagedFile['permission'] #获取权限数字
|
102
|
+
|
103
|
+
if (permissionNumber.nil?) #不带权限字段
|
104
|
+
elsif #带权限字段
|
105
|
+
File.chmod(permissionNumber, pathToMake) #设置权限
|
106
|
+
end #if (permissionNumber.nil?) #不带权限字段
|
88
107
|
end #makeDirectory(pathPrefix, packagedFile) #创建目录
|
89
108
|
|
90
109
|
def releaseFile( pathPrefix, packagedFile, contentString) #释放一个文件
|
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: 2020.8.
|
4
|
+
version: 2020.8.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hxcan Cai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cbor
|