forking_test_runner 0.2.1 → 0.3.0

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: 23fa3a9a4b20f865028013a80f1cbe81745d74b5
4
- data.tar.gz: 6d29998593e3c18a29bd0c836bf6807252c4e3fc
3
+ metadata.gz: 6dca3c5a7178d17e22459640f93e53fe249c32cd
4
+ data.tar.gz: 9e1eb04ccc4bc8975c0e1b54f34156791fe73482
5
5
  SHA512:
6
- metadata.gz: ee7953698a589e8104fd7fdc8d587860465e6e71de200baa7726a1c94744ef4931d89ea4cacc9b03a1ae135d990a02f6eb2abcbc3e983cd48eb76c219b23ab38
7
- data.tar.gz: 71eabd54e0ddb54a916295e14d3affdf127ec9582927e237c07516ced6cd3c1c606ec92430e0b07077c5aef41eb07d1e62cc6c68c5ed651490921b05187df08d
6
+ metadata.gz: 68dee24ec2121f17c59c35cc5974fa4f4ef7febff66efd92f14e9ab373de5e515f37eb62b232d756ee77dc02c62d7682170568607c72e8fdb6ee4819dbd58293
7
+ data.tar.gz: ce852d8d6f354e0e67b2dd86fcef4edc46ebfea3aeb32fa9a234a1999948ff078cf12896c4b8599c97f9940d03bc627f1fb9eaa558226a2a7c142e97bca1c1ac
@@ -1,3 +1,3 @@
1
1
  module ForkingTestRunner
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -172,11 +172,12 @@ module ForkingTestRunner
172
172
  end
173
173
 
174
174
  def toggle_minitest_autorun(value)
175
- klass = begin
176
- require 'minitest/unit' # only exists on 4
175
+ gem 'minitest'
176
+ klass = if Gem.loaded_specs["minitest"].version.segments.first == 4 # 4.x
177
+ require 'minitest/unit'
177
178
  MiniTest::Unit
178
- rescue LoadError
179
- require 'minitest/test' # exists on 5 and 4 with minitest-rails
179
+ else
180
+ require 'minitest'
180
181
  Minitest
181
182
  end
182
183
  klass.class_variable_set("@@installed_at_exit", !value)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forking_test_runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.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-03-26 00:00:00.000000000 Z
11
+ date: 2015-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel_tests