parallel_tests 4.5.0 → 4.5.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
  SHA256:
3
- metadata.gz: 9b46d1404706ddf69fdaae9b58cb24f86f894a87dcc629865ae18b664c8a1835
4
- data.tar.gz: 00f2931c2ba28191e7ff3256edea0e43c516212b035fca3ae8a57ba154cf1014
3
+ metadata.gz: 7bc74b63cad256605166ebf5a38eec903a6228840ebffdb8d429328826da2fa9
4
+ data.tar.gz: 8152bc8756961eb1ab5fb2a09401a6e2b89718d42775877786596cc0c68148e5
5
5
  SHA512:
6
- metadata.gz: 74c9ffe885e299f8f2a603b07a0a9e6597eb4ec52529acac790e3b36e4ce8ee9c73c537fdff67131fce664819e1adefc7c376474ff139140f62393e0d32f6aa4
7
- data.tar.gz: 72120ba7eb205d54c484a71fd58a86bfd95787e4967bf754c19857d5cf2970803a963a70f2e60dc448e61b61eea13c32b8ad7b16762106da9efc743a891d4da8
6
+ metadata.gz: e2ad6b9c0fb373cf08d62092c9ea53e2df34c25fd69e1f985eff09ee8ca922bf80dd636152fa41034b4fd7335dd18f767e49f9529caa7c1beddb540bc6355069
7
+ data.tar.gz: d6722c168aa8355b54c6e5c577870e7b99f1c11c6c60412b08ecf6b871cd70e70a6518e13d63487ce4cad36ea2cb0bf598914f42bc4ae21625213ae564c13ee9
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.1'
4
4
  end
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.1
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-02-17 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.1/Readme.md
73
+ source_code_uri: https://github.com/grosser/parallel_tests/tree/v4.5.1
74
74
  wiki_uri: https://github.com/grosser/parallel_tests/wiki
75
75
  post_install_message:
76
76
  rdoc_options: []