ruby-builder 0.1.2 → 0.1.3
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/CHANGELOG.md +4 -0
 - data/lib/ruby/builder/ruby_builder.rb +5 -4
 - data/lib/ruby/builder/version.rb +1 -1
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: ed7557eb44867b81467d84b536ddb2085f1e3ae0b98fed82c831c32876312650
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 8399104374f46aa4eb6b64f56719ee28cfcdbdfa73982965816d844cb95b417c
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 30ed52a91c637c38aaab5b2e736e457196dda58250cd52490c23d8b9e11149ade815b3c79dae3b12b17f6c412e3f456d6add0da24635fa303cd16f00edd2d08b
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: fb1d7fa020120716d7d26ca4529847e14c4af23959ea580bb3fc79815240b80d60aae2fe27b394a20e7abb566232a47f9669cc96b25e6166209e3c6c8f87fed6
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    
| 
         @@ -35,18 +35,19 @@ module Ruby 
     | 
|
| 
       35 
35 
     | 
    
         
             
                  def execute(*command, dir: nil)
         
     | 
| 
       36 
36 
     | 
    
         
             
                    if dir
         
     | 
| 
       37 
37 
     | 
    
         
             
                      Dir.chdir(dir) do
         
     | 
| 
       38 
     | 
    
         
            -
                        assert_execute(*command)
         
     | 
| 
      
 38 
     | 
    
         
            +
                        assert_execute(*command, dir: dir)
         
     | 
| 
       39 
39 
     | 
    
         
             
                      end
         
     | 
| 
       40 
40 
     | 
    
         
             
                    else
         
     | 
| 
       41 
     | 
    
         
            -
                      assert_execute(*command)
         
     | 
| 
      
 41 
     | 
    
         
            +
                      assert_execute(*command, dir: dir)
         
     | 
| 
       42 
42 
     | 
    
         
             
                    end
         
     | 
| 
       43 
43 
     | 
    
         
             
                  end
         
     | 
| 
       44 
44 
     | 
    
         | 
| 
       45 
45 
     | 
    
         
             
                  # @param [Array<String>] command
         
     | 
| 
       46 
     | 
    
         
            -
                  def assert_execute(*command)
         
     | 
| 
      
 46 
     | 
    
         
            +
                  def assert_execute(*command, dir:)
         
     | 
| 
       47 
47 
     | 
    
         
             
                    logger.info("+ #{command.shelljoin}")
         
     | 
| 
       48 
48 
     | 
    
         
             
                    unless system(command.shelljoin)
         
     | 
| 
       49 
     | 
    
         
            -
                       
     | 
| 
      
 49 
     | 
    
         
            +
                      dir_info = "at '#{dir}' " if dir
         
     | 
| 
      
 50 
     | 
    
         
            +
                      raise BuildFailure.new("Failed to execute '#{command.shelljoin}' #{dir_info}(exit status: #{$?.exitstatus})")
         
     | 
| 
       50 
51 
     | 
    
         
             
                    end
         
     | 
| 
       51 
52 
     | 
    
         
             
                  end
         
     | 
| 
       52 
53 
     | 
    
         | 
    
        data/lib/ruby/builder/version.rb
    CHANGED