dev_tasks 0.0.37 → 0.0.38
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/commands.rb +6 -1
 - data/lib/spec.json +1 -1
 - 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: 22a44ba972fbb2e07bb1ec5370442fc6b13321ad
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 196aa624a1e2bd018d9b0ad5e9b09f061ab27ab4
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: b8615e130d5ae15e97eee697932d2c85f943eb9ef2aae3aaa950ec781191dcb3b24eb37ad2b3994f7bbd47e03273bcf1ae79998082f9a693e7c037557286819d
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: dc51773689734c6be16f3595022912af96d6af0ede4eb8cb65ed309e8181366270a29f4807559212205bb17b856edb812419f8cc0a85eb59e2749fd79f679f7f
         
     | 
    
        data/lib/commands.rb
    CHANGED
    
    | 
         @@ -4,6 +4,7 @@ require_relative './add.rb' 
     | 
|
| 
       4 
4 
     | 
    
         
             
            require_relative './commit.rb'
         
     | 
| 
       5 
5 
     | 
    
         
             
            require_relative './publish.rb'
         
     | 
| 
       6 
6 
     | 
    
         
             
            require_relative './upgrade.rb'
         
     | 
| 
      
 7 
     | 
    
         
            +
            require_relative './timer.rb'
         
     | 
| 
       7 
8 
     | 
    
         | 
| 
       8 
9 
     | 
    
         
             
            class Commands < Hash
         
     | 
| 
       9 
10 
     | 
    
         
             
              attr_accessor :build
         
     | 
| 
         @@ -18,17 +19,21 @@ class Commands < Hash 
     | 
|
| 
       18 
19 
     | 
    
         
             
              end
         
     | 
| 
       19 
20 
     | 
    
         | 
| 
       20 
21 
     | 
    
         
             
              def execute_command command
         
     | 
| 
       21 
     | 
    
         
            -
                 
     | 
| 
      
 22 
     | 
    
         
            +
                print " " + Color.green + command + Color.clear
         
     | 
| 
       22 
23 
     | 
    
         | 
| 
      
 24 
     | 
    
         
            +
            	timer=Timer.new
         
     | 
| 
       23 
25 
     | 
    
         
             
            	if command.include?('<%') && command.include?('%>')
         
     | 
| 
       24 
26 
     | 
    
         
             
            	  ruby = command.gsub("<%","").gsub("%>","")
         
     | 
| 
       25 
27 
     | 
    
         
             
                  eval(ruby)
         
     | 
| 
      
 28 
     | 
    
         
            +
            	  puts " " + timer.elapsed_str
         
     | 
| 
       26 
29 
     | 
    
         
             
                else
         
     | 
| 
       27 
30 
     | 
    
         
             
            		out = `#{command}`
         
     | 
| 
       28 
31 
     | 
    
         
             
            		if $? != 0
         
     | 
| 
       29 
32 
     | 
    
         
             
            		  puts out
         
     | 
| 
       30 
33 
     | 
    
         
             
            		  raise Color.bright_yellow + "`" + Color.green + command + Color.bright_yellow + "`" + Color.clear + 
         
     | 
| 
       31 
34 
     | 
    
         
             
            			  " has exit code " + $?.to_s
         
     | 
| 
      
 35 
     | 
    
         
            +
            		else
         
     | 
| 
      
 36 
     | 
    
         
            +
            		  puts " " + timer.elapsed_str
         
     | 
| 
       32 
37 
     | 
    
         
             
            		end
         
     | 
| 
       33 
38 
     | 
    
         
             
            	end
         
     | 
| 
       34 
39 
     | 
    
         
             
              end
         
     | 
    
        data/lib/spec.json
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"name":"dev_tasks","version":"0.0. 
     | 
| 
      
 1 
     | 
    
         
            +
            {"name":"dev_tasks","version":"0.0.38"}
         
     |