parallel_tests 4.5.0 → 4.5.2

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: 9b46d1404706ddf69fdaae9b58cb24f86f894a87dcc629865ae18b664c8a1835
4
- data.tar.gz: 00f2931c2ba28191e7ff3256edea0e43c516212b035fca3ae8a57ba154cf1014
3
+ metadata.gz: 45b8232e3e41cd559e94530f55ca9cf0b8336eebc563a370b0c2b20688aabcb2
4
+ data.tar.gz: 40208b56455ad6bd4498c3b8e75c20b27fb813f1ac192130ddf12570c240a7b4
5
5
  SHA512:
6
- metadata.gz: 74c9ffe885e299f8f2a603b07a0a9e6597eb4ec52529acac790e3b36e4ce8ee9c73c537fdff67131fce664819e1adefc7c376474ff139140f62393e0d32f6aa4
7
- data.tar.gz: 72120ba7eb205d54c484a71fd58a86bfd95787e4967bf754c19857d5cf2970803a963a70f2e60dc448e61b61eea13c32b8ad7b16762106da9efc743a891d4da8
6
+ metadata.gz: 9019208e52a23c231d85b24e05b06eca84a0337303fdd2922d5d465217210df25768f72300ba54c30ab2768af741617af6ec734fa51c78858837f93a8277f46d
7
+ data.tar.gz: 75003af6f40dad1c00eb208e9f0c9a24bc6cec3b06e95dc54b18e0b9dc59cbfe6ee817214b23a67b4bc23a0a0a7f8966d1f0950877a0f13306939a0cca155e3c
data/Readme.md CHANGED
@@ -437,6 +437,7 @@ inspired by [pivotal labs](https://blog.pivotal.io/labs/labs/parallelize-your-rs
437
437
  - [Jon Dufresne](https://github.com/jdufresne)
438
438
  - [Eric Kessler](https://github.com/enkessler)
439
439
  - [Adis Osmonov](https://github.com/adis-io)
440
+ - [Josh Westbrook](https://github.com/joshwestbrook)
440
441
 
441
442
  [Michael Grosser](http://grosser.it)<br/>
442
443
  michael@grosser.it<br/>
@@ -15,7 +15,7 @@ module ParallelTests
15
15
 
16
16
  def runtime_logging
17
17
  # Not Yet Supported
18
- ""
18
+ []
19
19
  end
20
20
  end
21
21
  end
@@ -138,7 +138,8 @@ module ParallelTests
138
138
  # Use nil to represent all databases
139
139
  block&.call(nil)
140
140
 
141
- return unless defined?(ActiveRecord)
141
+ # skip if not rails or old rails version
142
+ return if !defined?(ActiveRecord::Tasks::DatabaseTasks) || !ActiveRecord::Tasks::DatabaseTasks.respond_to?(:for_each)
142
143
 
143
144
  ActiveRecord::Tasks::DatabaseTasks.for_each(configured_databases) do |name|
144
145
  block&.call(name)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ParallelTests
3
- VERSION = '4.5.0'
3
+ VERSION = '4.5.2'
4
4
  end
@@ -44,6 +44,8 @@ module ParallelTests
44
44
 
45
45
  def stop_all_processes
46
46
  pids.all.each { |pid| Process.kill(:INT, pid) }
47
+ rescue Errno::ESRCH
48
+ # Process already terminated, do nothing
47
49
  end
48
50
 
49
51
  # copied from http://github.com/carlhuda/bundler Bundler::SharedHelpers#find_gemfile
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: 4.5.0
4
+ version: 4.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-06 00:00:00.000000000 Z
11
+ date: 2024-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel
@@ -69,8 +69,8 @@ licenses:
69
69
  - MIT
70
70
  metadata:
71
71
  bug_tracker_uri: https://github.com/grosser/parallel_tests/issues
72
- documentation_uri: https://github.com/grosser/parallel_tests/blob/v4.5.0/Readme.md
73
- source_code_uri: https://github.com/grosser/parallel_tests/tree/v4.5.0
72
+ documentation_uri: https://github.com/grosser/parallel_tests/blob/v4.5.2/Readme.md
73
+ source_code_uri: https://github.com/grosser/parallel_tests/tree/v4.5.2
74
74
  wiki_uri: https://github.com/grosser/parallel_tests/wiki
75
75
  post_install_message:
76
76
  rdoc_options: []