VictoriaFreSh 2020.10.24 → 2020.10.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 +0 -10
 - 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: 3e3f7b0d2274b3e4d1053b1ea06d25d0136a9d4cf877a76dd802c4ea89d0b1b7
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: c3723184467e8e953fcd01cacb7c02a7cc1c77a43f1cf7bfe47b81ad41d8ca3e
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 27ffe0e19351ed1e013465dde4cf4c1adbe16ccef807319feea079880c7f0827bc460ec6e5f6d8d90c261189796e9aae48ab9cd4c9bfc033c79c0b774640480c
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: b03f697db6128b7d582d3c491c67d0c3950d7a8937b8562e5e1510170ba41d5115017aedee13eeaa574ef50d3e49558864cb87f6d4cae87138f824da472dc71b
         
     | 
    
        data/lib/victoriafresh.rb
    CHANGED
    
    | 
         @@ -111,25 +111,15 @@ class VictoriaFresh 
     | 
|
| 
       111 
111 
     | 
    
         
             
                end #makeDirectory(pathPrefix, packagedFile) #创建目录
         
     | 
| 
       112 
112 
     | 
    
         | 
| 
       113 
113 
     | 
    
         
             
                def releaseFile( pathPrefix, packagedFile, contentString) #释放一个文件 
         
     | 
| 
       114 
     | 
    
         
            -
            #         puts packagedFile.name #Debug
         
     | 
| 
       115 
     | 
    
         
            -
            #         puts packagedFile['name'] #Debug
         
     | 
| 
       116 
     | 
    
         
            -
            #         puts("content stirng length: #{contentString.bytesize}") #Debug
         
     | 
| 
       117 
     | 
    
         
            -
            #         puts packagedFile.timestamp #Debug
         
     | 
| 
       118 
     | 
    
         
            -
                    puts packagedFile['timestamp'] #Debug
         
     | 
| 
       119 
     | 
    
         
            -
                    
         
     | 
| 
       120 
     | 
    
         
            -
            #         if packagedFile.is_file #是文件,则直接写入文件
         
     | 
| 
       121 
114 
     | 
    
         
             
                    if packagedFile['is_file'] #是文件,则直接写入文件
         
     | 
| 
       122 
115 
     | 
    
         
             
                        writeFile(pathPrefix, packagedFile, contentString) #写入文件
         
     | 
| 
       123 
116 
     | 
    
         
             
                    elsif packagedFile['is_symlink'] #是符号链接,则创建符号链接
         
     | 
| 
       124 
117 
     | 
    
         
             
                        makeSymlink(pathPrefix, packagedFile, contentString) #创建符号链接
         
     | 
| 
       125 
     | 
    
         
            -
            #             writeFile(pathPrefix, packagedFile, contentString) #写入文件
         
     | 
| 
       126 
118 
     | 
    
         
             
                    else #是目录,则创建目录,并递归处理
         
     | 
| 
       127 
119 
     | 
    
         
             
                        makeDirectory(pathPrefix, packagedFile) #创建目录
         
     | 
| 
       128 
120 
     | 
    
         | 
| 
       129 
     | 
    
         
            -
            #             direcotryPathPrefix=pathPrefix  + '/' + packagedFile.name #构造针对该目录的路径前缀
         
     | 
| 
       130 
121 
     | 
    
         
             
                        direcotryPathPrefix=pathPrefix  + '/' + packagedFile['name'] #构造针对该目录的路径前缀
         
     | 
| 
       131 
122 
     | 
    
         | 
| 
       132 
     | 
    
         
            -
            #             subFiles=packagedFile.sub_files #获取子文件列表。
         
     | 
| 
       133 
123 
     | 
    
         
             
                        subFiles=packagedFile['sub_files'] #获取子文件列表。
         
     | 
| 
       134 
124 
     | 
    
         | 
| 
       135 
125 
     | 
    
         
             
                        subFiles.each do |currentSubFile| #一个个子文件地释放
         
     | 
    
        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.10. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 2020.10.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-10- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2020-10-31 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: cbor
         
     |