parallel_tests 3.5.0 → 3.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: 296e1e8f85f982a03a1b03882cdb265518add4b7a426defa0e393248dab74c0c
4
- data.tar.gz: '09ca0aaa70fbf4ad7d73ce91c83d1c16b69fdc1612931ee1e6f71dd87cb1bbb9'
3
+ metadata.gz: b8539140ebc96ac00552e9f1e51f63789f1007a997829d86e79a786a71400b7b
4
+ data.tar.gz: be0f3f0785cd3b05882f9928a9fe83a6e10203a95e931b40f89566f1398e0691
5
5
  SHA512:
6
- metadata.gz: 5f627a0bf28e53045281f616cecdc57c70da160c525e62e2425ccd431f7ac1f0c70f54ca72661e84a2ace1a9bdbb59cd54f602ad71c0df178f00e01c275ef4fa
7
- data.tar.gz: 28119c3ec31c49c22e01c6c737fd9cfb7fa922e5bbfbfc3e90260c5714a6a1cabfbcaff2e1e91377d33811362ee038d4bbee21027fb98208e44485aaa863e89d
6
+ metadata.gz: 3bd0cfd72dd3a48b491198a5d2be73bb353dbdd5d1cd23cfac58f2429d44fe6b1ce6121c2ba6caed76c4b3c4aa4646fde9ef030dfd1d0a38fe30499e1a2ea38d
7
+ data.tar.gz: 10493da0d865c2e3987c8c11edb8a8605349d23a754bcb70ba05e1579a5f9a8693e9e80730b5c8d601b66efe4406bdf14b50a3ec3ce305a339d07075f5c77d51
@@ -123,8 +123,12 @@ namespace :parallel do
123
123
  ParallelTests::Tasks.check_for_pending_migrations
124
124
  if defined?(ActiveRecord::Base) && [:ruby, :sql].include?(ActiveRecord::Base.schema_format)
125
125
  # fast: dump once, load in parallel
126
- type = (ActiveRecord::Base.schema_format == :ruby ? "schema" : "structure")
127
- Rake::Task["db:#{type}:dump"].invoke
126
+ if Gem::Version.new(Rails.version) >= Gem::Version.new('6.1.0')
127
+ Rake::Task["db:schema:dump"].invoke
128
+ else
129
+ type = (ActiveRecord::Base.schema_format == :ruby ? "schema" : "structure")
130
+ Rake::Task["db:#{type}:dump"].invoke
131
+ end
128
132
 
129
133
  # remove database connection to prevent "database is being accessed by other users"
130
134
  ActiveRecord::Base.remove_connection if ActiveRecord::Base.configurations.any?
@@ -163,7 +167,8 @@ namespace :parallel do
163
167
  end
164
168
 
165
169
  # load the structure from the structure.sql file
166
- desc "Load structure for test databases via db:structure:load --> parallel:load_structure[num_cpus]"
170
+ # (faster for rails < 6.1, deprecated after and only configured by `ActiveRecord::Base.schema_format`)
171
+ desc "Load structure for test databases via db:schema:load --> parallel:load_structure[num_cpus]"
167
172
  task :load_structure, :count do |_, args|
168
173
  ParallelTests::Tasks.run_in_parallel(
169
174
  "#{ParallelTests::Tasks.rake_bin} #{ParallelTests::Tasks.purge_before_load} " \
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ParallelTests
3
- VERSION = '3.5.0'
3
+ VERSION = '3.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: 3.5.0
4
+ version: 3.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: 2021-02-24 00:00:00.000000000 Z
11
+ date: 2021-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel
@@ -68,8 +68,8 @@ 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.5.0/Readme.md
72
- source_code_uri: https://github.com/grosser/parallel_tests/tree/v3.5.0
71
+ documentation_uri: https://github.com/grosser/parallel_tests/blob/v3.5.1/Readme.md
72
+ source_code_uri: https://github.com/grosser/parallel_tests/tree/v3.5.1
73
73
  wiki_uri: https://github.com/grosser/parallel_tests/wiki
74
74
  post_install_message:
75
75
  rdoc_options: []