parallel_tests 1.7.1 → 1.8.0
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/parallel_tests/cli.rb +6 -2
- data/lib/parallel_tests/version.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: b98743db0fe97926ab98d0806cee0e82c1accf85
         | 
| 4 | 
            +
              data.tar.gz: 74cd35a0d5771dde97914a0ef39b9ccefaf1c065
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: f30e2061fd6622d0013593855775c0e129e64a73bfec5d95ebb1270ac1bfcbd2d6d53305442ba201eb6dea6bd69d02cf8890b011069f7d2057cb12ef75bdfb30
         | 
| 7 | 
            +
              data.tar.gz: fbbcb2dc6d59f94b86d002cbd9dd7a2353c084bd1764665b337ec9c8de6fe4d2d056fa1b98a743c0834a73c7212cd5609cca97362cb62e94789ec064bb5f11f6
         | 
    
        data/lib/parallel_tests/cli.rb
    CHANGED
    
    | @@ -226,13 +226,17 @@ module ParallelTests | |
| 226 226 | 
             
                end
         | 
| 227 227 |  | 
| 228 228 | 
             
                def execute_shell_command_in_parallel(command, num_processes, options)
         | 
| 229 | 
            -
                  runs =  | 
| 229 | 
            +
                  runs = if options[:only_group]
         | 
| 230 | 
            +
                    options[:only_group].map{|g| g - 1}
         | 
| 231 | 
            +
                  else
         | 
| 232 | 
            +
                    (0...num_processes).to_a
         | 
| 233 | 
            +
                  end
         | 
| 230 234 | 
             
                  results = if options[:non_parallel]
         | 
| 231 235 | 
             
                    runs.map do |i|
         | 
| 232 236 | 
             
                      ParallelTests::Test::Runner.execute_command(command, i, num_processes, options)
         | 
| 233 237 | 
             
                    end
         | 
| 234 238 | 
             
                  else
         | 
| 235 | 
            -
                    execute_in_parallel(runs,  | 
| 239 | 
            +
                    execute_in_parallel(runs, runs.size, options) do |i|
         | 
| 236 240 | 
             
                      ParallelTests::Test::Runner.execute_command(command, i, num_processes, options)
         | 
| 237 241 | 
             
                    end
         | 
| 238 242 | 
             
                  end.flatten
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: parallel_tests
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1. | 
| 4 | 
            +
              version: 1.8.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Michael Grosser
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2015- | 
| 11 | 
            +
            date: 2015-10-01 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: parallel
         |