dev_tasks 0.0.154 → 0.0.155
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.
- data/lib/spec.json +1 -1
 - data/lib/verify.rb +14 -2
 - metadata +1 -1
 
    
        data/lib/spec.json
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"name":"dev_tasks","version":"0.0. 
     | 
| 
      
 1 
     | 
    
         
            +
            {"name":"dev_tasks","version":"0.0.155"}
         
     | 
    
        data/lib/verify.rb
    CHANGED
    
    | 
         @@ -10,6 +10,19 @@ class Verify < Array 
     | 
|
| 
       10 
10 
     | 
    
         
             
              def update
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
                if(defined?(DEV_TASKS))
         
     | 
| 
      
 13 
     | 
    
         
            +
            	  svn_publish_uri=""
         
     | 
| 
      
 14 
     | 
    
         
            +
            	  if(DEV_TASKS).has_key?(:publish_path)
         
     | 
| 
      
 15 
     | 
    
         
            +
            	    if(DEV_TASKS[:publish_path].include?('svn://') || DEV_TASKS[:publish_path].include?('file:///'))
         
     | 
| 
      
 16 
     | 
    
         
            +
            		  latestRev=Environment.svn_latest_revision 
         
     | 
| 
      
 17 
     | 
    
         
            +
            		  svn_publish_uri="#{DEV_TASKS[:publish_path]}/#{DEV_TASKS[:relative_directory]}-#{latestRev}"
         
     | 
| 
      
 18 
     | 
    
         
            +
            		  svn_info=`svn info #{svn_publish_uri} 2>&1`
         
     | 
| 
      
 19 
     | 
    
         
            +
            		  if(svn_info.include?('URL:'))
         
     | 
| 
      
 20 
     | 
    
         
            +
            		    Console.debug "#{svn_publish_uri} already exists."
         
     | 
| 
      
 21 
     | 
    
         
            +
            			return
         
     | 
| 
      
 22 
     | 
    
         
            +
            		  end
         
     | 
| 
      
 23 
     | 
    
         
            +
            		end
         
     | 
| 
      
 24 
     | 
    
         
            +
            	  end
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
       13 
26 
     | 
    
         
             
            	  if(Environment.scm=='svn')
         
     | 
| 
       14 
27 
     | 
    
         
             
            	    latestRev=Environment.svn_latest_revision
         
     | 
| 
       15 
28 
     | 
    
         
             
            		Console.debug "Verify.update, svn_latest_revision=#{latestRev}"
         
     | 
| 
         @@ -17,8 +30,7 @@ class Verify < Array 
     | 
|
| 
       17 
30 
     | 
    
         
             
            		dep_dir="#{Environment.dev_root}/dep/#{DEV_TASKS[:relative_directory]}@#{latestRev}"
         
     | 
| 
       18 
31 
     | 
    
         
             
            		if(!File.exists?(dep_dir))
         
     | 
| 
       19 
32 
     | 
    
         
             
            		  add "svn export #{uri} #{dep_dir}@"
         
     | 
| 
       20 
     | 
    
         
            -
            		  add "<%Environment.rake('#{dep_dir}','build',true)%>"
         
     | 
| 
       21 
     | 
    
         
            -
            		  #add "<%Environment.rake('#{dep_dir}','test',true)%>" 
         
     | 
| 
      
 33 
     | 
    
         
            +
            		  add "<%Environment.rake('#{dep_dir}','build',true)%>" 
         
     | 
| 
       22 
34 
     | 
    
         
             
            		  add "<%DEV_TASKS[:commands][:publish].update%>"
         
     | 
| 
       23 
35 
     | 
    
         
             
            		end
         
     | 
| 
       24 
36 
     | 
    
         
             
            	  end
         
     |