test_launcher 2.24.0 → 2.25.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
  SHA256:
3
- metadata.gz: 3b235d1355bd618fe24a99d7d5e02cfe0980e8b01b9b6332deb4fe6d0919d993
4
- data.tar.gz: b10f49d251e4e519cbe3430c60de6bad16a656e5a7ba8ef2416083aa4ef31836
3
+ metadata.gz: 8d48dd23ffd366923066ff7af6bac9db3498da3452cae8947baaf4b115b740fb
4
+ data.tar.gz: 8a3f716b8565ba819d1ba07b63c23fffaf9610238806f6aa53bb3f43f6a168fe
5
5
  SHA512:
6
- metadata.gz: 661ee5a30a6357a99f4ca79c3ddb0902d8eb2e084f6737cb7fc85b4ab023be844ea3ae3be901b2d014fe6e197af9ede15d3448b27b71bebdb9343a7254f680c6
7
- data.tar.gz: f77aeae0f9de49cf07fe7d2a5b210c65699e411c8ca375dca1e5f600dbcbbef8571494687d3b9ce2788f25d8515dbc867979a68e19b67a0b68977d449ee8d685
6
+ metadata.gz: 2f43dddddba62e2c0eafb256ad3774301e04fc7deb3459391bd89f80f39125ffa0d2dcbd45f751aba7fc154cc74ab3e352a02fb23812a7be81dee5aaa8ef353d
7
+ data.tar.gz: c0d58207139463c19f4bb610a0a9bf8d86e762088e22fc84e3fca6ba5ea437c17cc21e4d3e60142867c304a57c5661ace04649157cb0b0287cc5c408c24a74d5
@@ -147,7 +147,7 @@ Open an issue on https://github.com/petekinnecom/test_launcher if this is someth
147
147
  class TestCase < Base::TestCase
148
148
  def example_runner
149
149
  if spring_enabled?
150
- "bundle exec spring rails test"
150
+ "#{spring_runner} rails test"
151
151
  else
152
152
  "bundle exec ruby -I test"
153
153
  end
@@ -155,7 +155,7 @@ Open an issue on https://github.com/petekinnecom/test_launcher if this is someth
155
155
 
156
156
  def file_runner
157
157
  if spring_enabled?
158
- "bundle exec spring rails test"
158
+ "#{spring_runner} rails test"
159
159
  else
160
160
  "bundle exec ruby -I test -e 'ARGV.each {|f| require(f)}'"
161
161
  end
@@ -169,12 +169,15 @@ Open an issue on https://github.com/petekinnecom/test_launcher if this is someth
169
169
  return false if request.disable_spring?
170
170
  return true if request.force_spring?
171
171
 
172
- [
173
- "bin/spring",
174
- "bin/testunit"
175
- ].any? {|f|
176
- File.exist?(File.join(app_root, f))
177
- }
172
+ File.exist?(File.join(app_root, "bin/spring"))
173
+ end
174
+
175
+ def spring_runner
176
+ if File.exist?(File.join(app_root, "bin/spring"))
177
+ "bin/spring"
178
+ else
179
+ "bundle exec spring"
180
+ end
178
181
  end
179
182
 
180
183
  def example
@@ -1,3 +1,3 @@
1
1
  module TestLauncher
2
- VERSION = "2.24.0"
2
+ VERSION = "2.25.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_launcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.24.0
4
+ version: 2.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Kinnecom
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-14 00:00:00.000000000 Z
11
+ date: 2020-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler