rubisc 0.2.3 → 0.2.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/bin/xcodeproj-scan +4 -3
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 1baf90a5099cbfe4c0a259bc6923a406a89ff276
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 5cd8ea335e6ab4673a52e17f683d52203770dcb1
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 4f4c0c1b73eb81b48f78d6036f530415b8e9f7e9ba059588ed133e0422aec7356a3a8a61382e16059f73a41e80bce976d4ce30df56fe75614f34d25cd0077a41
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 9dd5d4fd8388214ae3797447fe7571a300839ed2a7934dce76efeb4c435d13ca1db9a5317c036238f93ce8f9dc4eac420aa6f8c7cf83dd2756a75d299ee91a0e
         
     | 
    
        data/bin/xcodeproj-scan
    CHANGED
    
    | 
         @@ -33,11 +33,12 @@ def scan pbx,dir,suffix 
     | 
|
| 
       33 
33 
     | 
    
         
             
            			match =dir.match /\/([^\/]*$)/
         
     | 
| 
       34 
34 
     | 
    
         
             
                        filename=match[1]
         
     | 
| 
       35 
35 
     | 
    
         
             
            			if suffix
         
     | 
| 
       36 
     | 
    
         
            -
            				return unless filename.match suffix
         
     | 
| 
      
 36 
     | 
    
         
            +
            				return unless filename.match /\.#{suffix}$/
         
     | 
| 
       37 
37 
     | 
    
         
             
            			else
         
     | 
| 
       38 
     | 
    
         
            -
            				return if ['.DS_Store','Contents.json','project.pbxproj'].include? filename or filename.match /.*\.(xcworkspacedata|xcuserstate|xcscheme|xcbkptlist|md) 
     | 
| 
      
 38 
     | 
    
         
            +
            				return if ['.DS_Store','Contents.json','project.pbxproj'].include? filename or filename.match /.*\.(xcworkspacedata|xcuserstate|xcscheme|xcbkptlist|md|h|hpp|png|jpg|plist|strings|cer|mp3)$/
         
     | 
| 
       39 
39 
     | 
    
         
             
            			end
         
     | 
| 
       40 
     | 
    
         
            -
            			puts "#{filename} not  
     | 
| 
      
 40 
     | 
    
         
            +
            			puts "#{filename} not referenced by the project" unless pbx.match filename
         
     | 
| 
      
 41 
     | 
    
         
            +
            			puts "#{filename} not included in any target" unless pbx.match /isa.*=.*PBXBuildFile[^\}]*#{filename}/
         
     | 
| 
       41 
42 
     | 
    
         
             
                    end
         
     | 
| 
       42 
43 
     | 
    
         
             
                end
         
     | 
| 
       43 
44 
     | 
    
         
             
            end
         
     |