parallel_tests 3.9.1 → 3.10.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: f47ccd447d00db0be7c9f7ae419b3d2083f0529624859546a6a1dee52337604f
4
- data.tar.gz: 624a59d50ba0d167ab2bbbf5ee946fa3917ba57fb3cc256f3c2e5b4855349343
3
+ metadata.gz: 02e1b418b273cae6dc5c01e23a772e096ab58ff438b48cc6931a9f786f760edc
4
+ data.tar.gz: adbe80da32bcf51282bfb8dc7027083aaa764824ba17276e93b399b4c5444a13
5
5
  SHA512:
6
- metadata.gz: ac848edaee8de2a79d5cae89ddfe59df61b37d1464048f5d591d488a26db044f0fd97e2669fe6b69772ad3e449bc1cb28faa0c627d0114d57cd657a222ec39e0
7
- data.tar.gz: 77f69505ddcbec907cdd45d955d7512b96509e003757bbc42f0ad188ee4083945f33316cf8d5a423b3dfe0e4181038e70e3cb68b8be152649cb3631d564dcb11
6
+ metadata.gz: 188deeb8e49d97dce2fb367948d02531a54377528338ae3cee13e3ab5dd414b2956b1103a3dd617797761c14a933597b905942823a0ab011d49a9ea5e5b0d51a
7
+ data.tar.gz: f397c05454ab591adff4012214a2e50c37f5b562bc6824833be5ca2c6bb8280f48bab781f27304c25f952f19f5322e5afa2f7f25a2083880eba09035d81b4da3
@@ -9,14 +9,6 @@ module ParallelTests
9
9
  'test'
10
10
  end
11
11
 
12
- def rake_bin
13
- # Prevent 'Exec format error' Errno::ENOEXEC on Windows
14
- return "rake" if RUBY_PLATFORM =~ /mswin|mingw|cygwin/
15
- binstub_path = File.join('bin', 'rake')
16
- return binstub_path if File.exist?(binstub_path)
17
- "rake"
18
- end
19
-
20
12
  def load_lib
21
13
  $LOAD_PATH << File.expand_path('..', __dir__)
22
14
  require "parallel_tests"
@@ -126,14 +118,14 @@ end
126
118
  namespace :parallel do
127
119
  desc "Setup test databases via db:setup --> parallel:setup[num_cpus]"
128
120
  task :setup, :count do |_, args|
129
- command = [ParallelTests::Tasks.rake_bin, "db:setup", "RAILS_ENV=#{ParallelTests::Tasks.rails_env}"]
121
+ command = [$0, "db:setup", "RAILS_ENV=#{ParallelTests::Tasks.rails_env}"]
130
122
  ParallelTests::Tasks.run_in_parallel(ParallelTests::Tasks.suppress_schema_load_output(command), args)
131
123
  end
132
124
 
133
125
  desc "Create test databases via db:create --> parallel:create[num_cpus]"
134
126
  task :create, :count do |_, args|
135
127
  ParallelTests::Tasks.run_in_parallel(
136
- [ParallelTests::Tasks.rake_bin, "db:create", "RAILS_ENV=#{ParallelTests::Tasks.rails_env}"],
128
+ [$0, "db:create", "RAILS_ENV=#{ParallelTests::Tasks.rails_env}"],
137
129
  args
138
130
  )
139
131
  end
@@ -142,7 +134,7 @@ namespace :parallel do
142
134
  task :drop, :count do |_, args|
143
135
  ParallelTests::Tasks.run_in_parallel(
144
136
  [
145
- ParallelTests::Tasks.rake_bin,
137
+ $0,
146
138
  "db:drop",
147
139
  "RAILS_ENV=#{ParallelTests::Tasks.rails_env}",
148
140
  "DISABLE_DATABASE_ENVIRONMENT_CHECK=1"
@@ -169,7 +161,7 @@ namespace :parallel do
169
161
  # slow: dump and load in in serial
170
162
  args = args.to_hash.merge(non_parallel: true) # normal merge returns nil
171
163
  task_name = Rake::Task.task_defined?('db:test:prepare') ? 'db:test:prepare' : 'app:db:test:prepare'
172
- ParallelTests::Tasks.run_in_parallel([ParallelTests::Tasks.rake_bin, task_name], args)
164
+ ParallelTests::Tasks.run_in_parallel([$0, task_name], args)
173
165
  next
174
166
  end
175
167
  end
@@ -178,7 +170,7 @@ namespace :parallel do
178
170
  desc "Update test databases via db:migrate --> parallel:migrate[num_cpus]"
179
171
  task :migrate, :count do |_, args|
180
172
  ParallelTests::Tasks.run_in_parallel(
181
- [ParallelTests::Tasks.rake_bin, "db:migrate", "RAILS_ENV=#{ParallelTests::Tasks.rails_env}"],
173
+ [$0, "db:migrate", "RAILS_ENV=#{ParallelTests::Tasks.rails_env}"],
182
174
  args
183
175
  )
184
176
  end
@@ -186,7 +178,7 @@ namespace :parallel do
186
178
  desc "Rollback test databases via db:rollback --> parallel:rollback[num_cpus]"
187
179
  task :rollback, :count do |_, args|
188
180
  ParallelTests::Tasks.run_in_parallel(
189
- [ParallelTests::Tasks.rake_bin, "db:rollback", "RAILS_ENV=#{ParallelTests::Tasks.rails_env}"],
181
+ [$0, "db:rollback", "RAILS_ENV=#{ParallelTests::Tasks.rails_env}"],
190
182
  args
191
183
  )
192
184
  end
@@ -195,7 +187,7 @@ namespace :parallel do
195
187
  desc "Load dumped schema for test databases via db:schema:load --> parallel:load_schema[num_cpus]"
196
188
  task :load_schema, :count do |_, args|
197
189
  command = [
198
- ParallelTests::Tasks.rake_bin,
190
+ $0,
199
191
  ParallelTests::Tasks.purge_before_load,
200
192
  "db:schema:load",
201
193
  "RAILS_ENV=#{ParallelTests::Tasks.rails_env}",
@@ -210,7 +202,7 @@ namespace :parallel do
210
202
  task :load_structure, :count do |_, args|
211
203
  ParallelTests::Tasks.run_in_parallel(
212
204
  [
213
- ParallelTests::Tasks.rake_bin,
205
+ $0,
214
206
  ParallelTests::Tasks.purge_before_load,
215
207
  "db:structure:load",
216
208
  "RAILS_ENV=#{ParallelTests::Tasks.rails_env}",
@@ -224,7 +216,7 @@ namespace :parallel do
224
216
  task :seed, :count do |_, args|
225
217
  ParallelTests::Tasks.run_in_parallel(
226
218
  [
227
- ParallelTests::Tasks.rake_bin,
219
+ $0,
228
220
  "db:seed",
229
221
  "RAILS_ENV=#{ParallelTests::Tasks.rails_env}"
230
222
  ],
@@ -235,7 +227,7 @@ namespace :parallel do
235
227
  desc "Launch given rake command in parallel"
236
228
  task :rake, :command, :count do |_, args|
237
229
  ParallelTests::Tasks.run_in_parallel(
238
- [ParallelTests::Tasks.rake_bin, args.command, "RAILS_ENV=#{ParallelTests::Tasks.rails_env}"],
230
+ [$0, args.command, "RAILS_ENV=#{ParallelTests::Tasks.rails_env}"],
239
231
  args
240
232
  )
241
233
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ParallelTests
3
- VERSION = '3.9.1'
3
+ VERSION = '3.10.0'
4
4
  end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.9.1
4
+ version: 3.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2022-05-23 00:00:00.000000000 Z
@@ -24,7 +24,7 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- description:
27
+ description:
28
28
  email: michael@grosser.it
29
29
  executables:
30
30
  - parallel_spinach
@@ -68,10 +68,10 @@ licenses:
68
68
  - MIT
69
69
  metadata:
70
70
  bug_tracker_uri: https://github.com/grosser/parallel_tests/issues
71
- documentation_uri: https://github.com/grosser/parallel_tests/blob/v3.9.1/Readme.md
72
- source_code_uri: https://github.com/grosser/parallel_tests/tree/v3.9.1
71
+ documentation_uri: https://github.com/grosser/parallel_tests/blob/v3.10.0/Readme.md
72
+ source_code_uri: https://github.com/grosser/parallel_tests/tree/v3.10.0
73
73
  wiki_uri: https://github.com/grosser/parallel_tests/wiki
74
- post_install_message:
74
+ post_install_message:
75
75
  rdoc_options: []
76
76
  require_paths:
77
77
  - lib
@@ -86,8 +86,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  requirements: []
89
- rubygems_version: 3.3.3
90
- signing_key:
89
+ rubygems_version: 3.0.3.1
90
+ signing_key:
91
91
  specification_version: 4
92
92
  summary: Run Test::Unit / RSpec / Cucumber / Spinach in parallel
93
93
  test_files: []