parallel_tests 4.8.0 → 4.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Readme.md +1 -0
- data/lib/parallel_tests/tasks.rb +8 -8
- data/lib/parallel_tests/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 023c4b3240d2e45fec61eeff4482d8498fc77b552f982462a15383c2ad2598b6
|
4
|
+
data.tar.gz: 1a500c45f548c89f8fdfbb2797fa9377f60a2772815df26fbb54b7c56b6ce92f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fe74eb01f30854917cff7bdeacf34903d360d202a27a9eb2aa6189981a0afad8646ce292d727817e8080fd23874313feea9af99b943cd52afa3611d981a6aa7
|
7
|
+
data.tar.gz: 20dd38f628d8142a6069f2e443b8bc3e091731e878e665035e73e68533f79be54ae2a62cf6d7ebeebfeb1187bd7e142ba16a44922ccd1a18829ed29715c6bc6f
|
data/Readme.md
CHANGED
@@ -345,6 +345,7 @@ TIPS
|
|
345
345
|
- [Capybara setup](https://github.com/grosser/parallel_tests/wiki)
|
346
346
|
- [Sphinx setup](https://github.com/grosser/parallel_tests/wiki)
|
347
347
|
- [Capistrano setup](https://github.com/grosser/parallel_tests/wiki/Remotely-with-capistrano) let your tests run on a big box instead of your laptop
|
348
|
+
- Rails vs `ArgumentError: secret_key_base`: use `config.secret_key_base = Random.hex(64)`, see [rails issue](https://github.com/rails/rails/issues/53661)
|
348
349
|
|
349
350
|
Contribute your own gotchas to the [Wiki](https://github.com/grosser/parallel_tests/wiki) or even better open a PR :)
|
350
351
|
|
data/lib/parallel_tests/tasks.rb
CHANGED
@@ -15,7 +15,7 @@ module ParallelTests
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def purge_before_load
|
18
|
-
if
|
18
|
+
if ActiveRecord.version > Gem::Version.new('4.2.0')
|
19
19
|
Rake::Task.task_defined?('db:purge') ? 'db:purge' : 'app:db:purge'
|
20
20
|
end
|
21
21
|
end
|
@@ -90,7 +90,7 @@ module ParallelTests
|
|
90
90
|
end
|
91
91
|
|
92
92
|
def schema_format_based_on_rails_version
|
93
|
-
if
|
93
|
+
if active_record_7_or_greater?
|
94
94
|
ActiveRecord.schema_format
|
95
95
|
else
|
96
96
|
ActiveRecord::Base.schema_format
|
@@ -98,7 +98,7 @@ module ParallelTests
|
|
98
98
|
end
|
99
99
|
|
100
100
|
def schema_type_based_on_rails_version
|
101
|
-
if
|
101
|
+
if active_record_61_or_greater? || schema_format_based_on_rails_version == :ruby
|
102
102
|
"schema"
|
103
103
|
else
|
104
104
|
"structure"
|
@@ -129,7 +129,7 @@ module ParallelTests
|
|
129
129
|
end
|
130
130
|
|
131
131
|
def configured_databases
|
132
|
-
return [] unless defined?(ActiveRecord) &&
|
132
|
+
return [] unless defined?(ActiveRecord) && active_record_61_or_greater?
|
133
133
|
|
134
134
|
@@configured_databases ||= ActiveRecord::Tasks::DatabaseTasks.setup_initial_database_yaml
|
135
135
|
end
|
@@ -148,12 +148,12 @@ module ParallelTests
|
|
148
148
|
|
149
149
|
private
|
150
150
|
|
151
|
-
def
|
152
|
-
|
151
|
+
def active_record_7_or_greater?
|
152
|
+
ActiveRecord.version >= Gem::Version.new('7.0')
|
153
153
|
end
|
154
154
|
|
155
|
-
def
|
156
|
-
|
155
|
+
def active_record_61_or_greater?
|
156
|
+
ActiveRecord.version >= Gem::Version.new('6.1.0')
|
157
157
|
end
|
158
158
|
end
|
159
159
|
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.
|
4
|
+
version: 4.9.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: 2025-01-
|
11
|
+
date: 2025-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|
@@ -69,9 +69,9 @@ licenses:
|
|
69
69
|
- MIT
|
70
70
|
metadata:
|
71
71
|
bug_tracker_uri: https://github.com/grosser/parallel_tests/issues
|
72
|
-
changelog_uri: https://github.com/grosser/parallel_tests/blob/v4.
|
73
|
-
documentation_uri: https://github.com/grosser/parallel_tests/blob/v4.
|
74
|
-
source_code_uri: https://github.com/grosser/parallel_tests/tree/v4.
|
72
|
+
changelog_uri: https://github.com/grosser/parallel_tests/blob/v4.9.0/CHANGELOG.md
|
73
|
+
documentation_uri: https://github.com/grosser/parallel_tests/blob/v4.9.0/Readme.md
|
74
|
+
source_code_uri: https://github.com/grosser/parallel_tests/tree/v4.9.0
|
75
75
|
wiki_uri: https://github.com/grosser/parallel_tests/wiki
|
76
76
|
rubygems_mfa_required: 'true'
|
77
77
|
post_install_message:
|