rubisc 0.3.3 → 0.3.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 +4 -4
 - data/lib/fileutil.rb +0 -4
 - metadata +3 -3
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 6fba2be6085114e8f85baf04041d75b3e262405d
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: fa95d3af746c3550812d23e71f8b9bbdb001157e
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 3e6490968d4d78e444486ce5cf1c5cf23ebc227d6d66493e9a2a4ed988b3d1b527d45e72eb61ce8438963b4a7fc3a1f7f43be358be4509373d1a3bea9c262b58
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 5bb43c3f9775e1a1c9f26c2a22c22079a3ec04434ce007a777382d0a22c46b6d4d9a578dacea8dffe1db5c3e6ae04e7cdd53247935d97d98f153ddae47931ca3
         
     | 
    
        data/lib/fileutil.rb
    CHANGED
    
    | 
         @@ -45,10 +45,6 @@ module Rubisc 
     | 
|
| 
       45 
45 
     | 
    
         | 
| 
       46 
46 
     | 
    
         
             
            		def self.file_substitute file_path,pattern,new_content
         
     | 
| 
       47 
47 
     | 
    
         
             
            			process_file file_path,true do |content|
         
     | 
| 
       48 
     | 
    
         
            -
            				matches=content.match /#{pattern}/
         
     | 
| 
       49 
     | 
    
         
            -
            				if !matches
         
     | 
| 
       50 
     | 
    
         
            -
            					puts "No matching found."
         
     | 
| 
       51 
     | 
    
         
            -
            				end
         
     | 
| 
       52 
48 
     | 
    
         
             
            				content=content.gsub /#{pattern}/,new_content
         
     | 
| 
       53 
49 
     | 
    
         
             
            			end
         
     | 
| 
       54 
50 
     | 
    
         
             
            		end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: rubisc
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.3. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.3.4
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - luqyluqe
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2018-05-27 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       13 
13 
     | 
    
         
             
            description: Wicked cool ruby scripts
         
     | 
| 
       14 
14 
     | 
    
         
             
            email: luqy.luqe@gmail.com
         
     | 
| 
         @@ -48,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       48 
48 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       49 
49 
     | 
    
         
             
            requirements: []
         
     | 
| 
       50 
50 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       51 
     | 
    
         
            -
            rubygems_version: 2.6. 
     | 
| 
      
 51 
     | 
    
         
            +
            rubygems_version: 2.6.14
         
     | 
| 
       52 
52 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       53 
53 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       54 
54 
     | 
    
         
             
            summary: Wicked cool ruby scripts
         
     |