zeus-parallel_tests 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a1ed74925120942d4780e3f7743b2c0f0fe7180d
4
- data.tar.gz: cbf15519f8c68a45ba260885c8f4370c2eee0b95
3
+ metadata.gz: 563e333c1e8ec05f14dbd22e6ebac0cca8b7b8e3
4
+ data.tar.gz: 899064490d67a68f69c36a9d6565ddbf1cdf6513
5
5
  SHA512:
6
- metadata.gz: 99d16d2f0583ff8b5e4bd472bb80e1cb84beb8db0342d14038b46ffc370a343cf034eb2201127e08a1ae86ae7b3a6a92bc70f7a8f836f396be9035b431a31ad7
7
- data.tar.gz: 90e2c837d5f0fd9fa7c4c8ae8f779e63356ae6ce9163cfbc639b8873a452e56aa24edcae81d3fc04b1f28df99fca363baecd27e29760c5636fcaeb29014f70f4
6
+ metadata.gz: ccba614f245fda8054c6c58a343a987c0ffaca47ea7a4dea31ee68de8fd9667e60fb93af3e6f3d11351c633908410819f2f7aca0424d8abb01b5b845f480c7df
7
+ data.tar.gz: 8c657db277dd61f3c9f56ffecc5c792ee68e8853a11e5e2f80c3304a0d6c84b0f9b84272629576dc6fd9e13f26d808b1f4bc267078ba5ffa4ee6036a2b06ed1c
@@ -1,6 +1,22 @@
1
1
  require_relative '../parallel_tests'
2
2
  require_relative 'worker'
3
3
 
4
+ # Patches required for parallel_tests
5
+
6
+ module ParallelTests
7
+ module Tasks
8
+ class << self
9
+ def rails_env
10
+ # parallel_tests sets this to 'test' by default - this must be
11
+ # overridden because Zeus does not support $RAILS_ENV being set
12
+ nil
13
+ end
14
+ end
15
+ end
16
+ end
17
+
18
+ # End of patches for parallel_test
19
+
4
20
  module Zeus
5
21
  module ParallelTests
6
22
  class Rails < ::Zeus::Rails
@@ -13,6 +29,10 @@ module Zeus
13
29
  end
14
30
 
15
31
  def parallel_rspec
32
+ if ENV.key?('RAILS_ENV')
33
+ puts "Warning: Deleting RAILS_ENV (which is `#{ENV['RAILS_ENV']}` as Zeus will complain about it."
34
+ ENV.delete('RAILS_ENV')
35
+ end
16
36
  argv = ARGV.dup
17
37
  argv.delete('--color') # remove this argument from list
18
38
  argv.delete('--colour') # because it was causing bug #14
@@ -1,5 +1,5 @@
1
1
  module Zeus
2
2
  module ParallelTests
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zeus-parallel_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artur Roszczyk