Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-parallel_tests for
openSUSE:Factory checked in at 2022-05-02 16:24:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-parallel_tests (Old)
and /work/SRC/openSUSE:Factory/.rubygem-parallel_tests.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-parallel_tests"
Mon May 2 16:24:44 2022 rev:13 rq:974062 version:3.8.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-parallel_tests/rubygem-parallel_tests.changes
2022-01-27 23:16:39.099108845 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-parallel_tests.new.1538/rubygem-parallel_tests.changes
2022-05-02 16:24:49.692788746 +0200
@@ -1,0 +2,6 @@
+Thu Apr 28 05:40:08 UTC 2022 - Stephan Kulow <[email protected]>
+
+updated to version 3.8.1
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
parallel_tests-3.7.3.gem
New:
----
parallel_tests-3.8.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-parallel_tests.spec ++++++
--- /var/tmp/diff_new_pack.UKCR5f/_old 2022-05-02 16:24:50.640789800 +0200
+++ /var/tmp/diff_new_pack.UKCR5f/_new 2022-05-02 16:24:50.644789805 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-parallel_tests
-Version: 3.7.3
+Version: 3.8.1
Release: 0
%define mod_name parallel_tests
%define mod_full_name %{mod_name}-%{version}
++++++ parallel_tests-3.7.3.gem -> parallel_tests-3.8.1.gem ++++++
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/parallel_tests/pids.rb
new/lib/parallel_tests/pids.rb
--- old/lib/parallel_tests/pids.rb 2021-09-18 00:58:08.000000000 +0200
+++ new/lib/parallel_tests/pids.rb 2022-03-28 18:29:01.000000000 +0200
@@ -43,14 +43,14 @@
def read
sync do
- contents = IO.read(file_path)
+ contents = File.read(file_path)
return if contents.empty?
@pids = JSON.parse(contents)
end
end
def save
- sync { IO.write(file_path, pids.to_json) }
+ sync { File.write(file_path, pids.to_json) }
end
def sync(&block)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/parallel_tests/tasks.rb
new/lib/parallel_tests/tasks.rb
--- old/lib/parallel_tests/tasks.rb 2021-09-18 00:58:08.000000000 +0200
+++ new/lib/parallel_tests/tasks.rb 2022-03-28 18:29:01.000000000 +0200
@@ -92,6 +92,32 @@
[num_processes, pattern.to_s, options.to_s, pass_through.to_s]
end
+
+ def schema_format_based_on_rails_version
+ if rails_7_or_greater?
+ ActiveRecord.schema_format
+ else
+ ActiveRecord::Base.schema_format
+ end
+ end
+
+ def schema_type_based_on_rails_version
+ if rails_61_or_greater? || schema_format_based_on_rails_version ==
:ruby
+ "schema"
+ else
+ "structure"
+ end
+ end
+
+ private
+
+ def rails_7_or_greater?
+ Gem::Version.new(Rails.version) >= Gem::Version.new('7.0')
+ end
+
+ def rails_61_or_greater?
+ Gem::Version.new(Rails.version) >= Gem::Version.new('6.1.0')
+ end
end
end
end
@@ -121,14 +147,10 @@
desc "Update test databases by dumping and loading -->
parallel:prepare[num_cpus]"
task(:prepare, [:count]) do |_, args|
ParallelTests::Tasks.check_for_pending_migrations
- if defined?(ActiveRecord::Base) && [:ruby,
:sql].include?(ActiveRecord::Base.schema_format)
+
+ if defined?(ActiveRecord) && [:ruby,
:sql].include?(ParallelTests::Tasks.schema_format_based_on_rails_version)
# fast: dump once, load in parallel
- type =
- if Gem::Version.new(Rails.version) >= Gem::Version.new('6.1.0')
- "schema"
- else
- ActiveRecord::Base.schema_format == :ruby ? "schema" : "structure"
- end
+ type = ParallelTests::Tasks.schema_type_based_on_rails_version
Rake::Task["db:#{type}:dump"].invoke
@@ -163,7 +185,8 @@
# just load the schema (good for integration server <-> no development db)
desc "Load dumped schema for test databases via db:schema:load -->
parallel:load_schema[num_cpus]"
task :load_schema, :count do |_, args|
- command = "#{ParallelTests::Tasks.rake_bin}
#{ParallelTests::Tasks.purge_before_load} " \
+ command =
+ "#{ParallelTests::Tasks.rake_bin}
#{ParallelTests::Tasks.purge_before_load} " \
"db:schema:load RAILS_ENV=#{ParallelTests::Tasks.rails_env}
DISABLE_DATABASE_ENVIRONMENT_CHECK=1"
ParallelTests::Tasks.run_in_parallel(ParallelTests::Tasks.suppress_schema_load_output(command),
args)
end
@@ -211,7 +234,8 @@
# Using the relative path to find the binary allow to run a specific
version of it
executable = File.join(File.dirname(__FILE__), '..', '..', 'bin',
'parallel_test')
- command =
"#{ParallelTests.with_ruby_binary(Shellwords.escape(executable))} #{type} " \
+ command =
+ "#{ParallelTests.with_ruby_binary(Shellwords.escape(executable))}
#{type} " \
"--type #{test_framework} " \
"-n #{count} " \
"--pattern '#{pattern}' " \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/parallel_tests/version.rb
new/lib/parallel_tests/version.rb
--- old/lib/parallel_tests/version.rb 2021-09-18 00:58:08.000000000 +0200
+++ new/lib/parallel_tests/version.rb 2022-03-28 18:29:01.000000000 +0200
@@ -1,4 +1,4 @@
# frozen_string_literal: true
module ParallelTests
- VERSION = '3.7.3'
+ VERSION = '3.8.1'
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2021-09-18 00:58:08.000000000 +0200
+++ new/metadata 2022-03-28 18:29:01.000000000 +0200
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: parallel_tests
version: !ruby/object:Gem::Version
- version: 3.7.3
+ version: 3.8.1
platform: ruby
authors:
- Michael Grosser
autorequire:
bindir: bin
cert_chain: []
-date: 2021-09-17 00:00:00.000000000 Z
+date: 2022-03-28 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: parallel
@@ -68,8 +68,8 @@
- MIT
metadata:
bug_tracker_uri: https://github.com/grosser/parallel_tests/issues
- documentation_uri:
https://github.com/grosser/parallel_tests/blob/v3.7.3/Readme.md
- source_code_uri: https://github.com/grosser/parallel_tests/tree/v3.7.3
+ documentation_uri:
https://github.com/grosser/parallel_tests/blob/v3.8.1/Readme.md
+ source_code_uri: https://github.com/grosser/parallel_tests/tree/v3.8.1
wiki_uri: https://github.com/grosser/parallel_tests/wiki
post_install_message:
rdoc_options: []
@@ -86,7 +86,7 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.2.16
+rubygems_version: 3.3.10
signing_key:
specification_version: 4
summary: Run Test::Unit / RSpec / Cucumber / Spinach in parallel