Hello community,

here is the log from the commit of package rubygem-yast-rake for 
openSUSE:Factory checked in at 2018-06-19 11:53:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-yast-rake (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-yast-rake.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-yast-rake"

Tue Jun 19 11:53:20 2018 rev:22 rq:617471 version:0.2.25

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-yast-rake/rubygem-yast-rake.changes      
2018-04-26 13:30:50.111900977 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-yast-rake.new/rubygem-yast-rake.changes 
2018-06-19 11:53:25.228850405 +0200
@@ -1,0 +2,21 @@
+Fri Jun 15 13:07:57 UTC 2018 - [email protected]
+
+- switch sle_latest to SLE15 SP1 and switch SLE15 GA to
+  maintenance mode (bsc#1044312)
+- 0.2.25
+
+-------------------------------------------------------------------
+Wed Jun 13 11:16:18 UTC 2018 - [email protected]
+
+- Fallback to the standard "rspec" when "parallel_rspec" is not
+  available for running the tests in parallel (bsc#1094875)
+- 0.2.24
+
+-------------------------------------------------------------------
+Mon May 28 11:20:34 UTC 2018 - [email protected]
+
+- Improved "test:unit" rake task - optionally allow running the
+  tests in parallel using the "parallel_tests" gem (bsc#1094875)
+- 0.2.23
+
+-------------------------------------------------------------------

Old:
----
  yast-rake-0.2.22.gem

New:
----
  yast-rake-0.2.25.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-yast-rake.spec ++++++
--- /var/tmp/diff_new_pack.l8g3PQ/_old  2018-06-19 11:53:25.892825753 +0200
+++ /var/tmp/diff_new_pack.l8g3PQ/_new  2018-06-19 11:53:25.892825753 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           rubygem-yast-rake
-Version:        0.2.22
+Version:        0.2.25
 Release:        0
 %define mod_name yast-rake
 %define mod_full_name %{mod_name}-%{version}

++++++ yast-rake-0.2.22.gem -> yast-rake-0.2.25.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/VERSION new/VERSION
--- old/VERSION 2018-04-11 12:13:28.000000000 +0200
+++ new/VERSION 2018-04-11 12:13:28.000000000 +0200
@@ -1 +1 @@
-0.2.22
+0.2.25
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/data/targets.yml new/data/targets.yml
--- old/data/targets.yml        2018-04-11 12:13:28.000000000 +0200
+++ new/data/targets.yml        2018-04-11 12:13:28.000000000 +0200
@@ -58,13 +58,13 @@
 :sle15:
   obs_api: "https://api.suse.de/";
   obs_project: "Devel:YaST:SLE-15"
-  obs_sr_project: "SUSE:SLE-15:GA"
+  obs_sr_project: "SUSE:SLE-15:Update"
   obs_target: "SUSE_SLE-15_GA"
 :sle_latest:
   obs_api: "https://api.suse.de/";
   obs_project: "Devel:YaST:Head"
-  obs_sr_project: nil
-  obs_target: "SUSE_SLE-15_GA"
+  obs_sr_project: "SUSE:SLE-15-SP1:GA"
+  obs_target: "SUSE_SLE-15-SP1_GA"
 :factory:
   obs_project: "YaST:Head"
   obs_sr_project: "openSUSE:Factory"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/tasks/test_unit.rake new/lib/tasks/test_unit.rake
--- old/lib/tasks/test_unit.rake        2018-04-11 12:13:28.000000000 +0200
+++ new/lib/tasks/test_unit.rake        2018-04-11 12:13:28.000000000 +0200
@@ -1,7 +1,65 @@
+#--
+# Yast rake
+#
+# Copyright (C) 2018 SUSE LLC
+#   This library is free software; you can redistribute it and/or modify
+# it only under the terms of version 2.1 of the GNU Lesser General Public
+# License as published by the Free Software Foundation.
+#
+#   This library is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#++
+
+# defines $CHILD_STATUS
+require "English"
+
+def parallel_rspec_installed?
+  system("which parallel_rspec &> /dev/null")
+end
+
+def parallel_tests_wanted?
+  (File.exist?(".rspec_parallel") && ENV["PARALLEL_TESTS"] != "0") ||
+    ENV["PARALLEL_TESTS"] == "1"
+end
+
+def run_parallel_tests(files)
+  # pass custom parameters to parallel_rspec if needed,
+  # e.g. the number of CPUs to use
+  sh("parallel_rspec --verbose #{ENV["PARALLEL_TESTS_OPTIONS"]} '#{files}'")
+
+  # use coveralls for on-line code coverage reporting at Travis CI, it needs
+  # to be called only once, after *all* parallel tests have been finished
+  if ENV["COVERAGE"] && ENV["TRAVIS"] && File.exist?(".coveralls.yml")
+    require "coveralls/rake/task"
+    Coveralls::RakeTask.new
+    Rake::Task["coveralls:push"].invoke
+  end
+end
+
+def run_sequential_tests(files)
+  sh("rspec --color --format doc '#{files}'")
+  # with standard RSpec the code coverage is usually configured in the
+  # test helper and is already sent at this point, no special handling
+  # is required
+end
+
 namespace :test do
   desc "Runs unit tests."
   task "unit" do
-    files = Dir["**/test/**/*_{spec,test}.rb"]
-    sh "rspec --color --format doc '#{files.join("' '")}'" unless files.empty?
+    files = Dir["**/test/**/*_{spec,test}.rb"].join("' '")
+    next if files.empty?
+
+    # use parallel_tests if wanted and available
+    if parallel_tests_wanted? && parallel_rspec_installed?
+      run_parallel_tests(files)
+    else
+      if parallel_tests_wanted?
+        $stderr.puts "WARNING: parallel tests enabled, but 'parallel_rspec' 
is" \
+        " not installed, falling back to the standard 'rspec' runner."
+      end
+      run_sequential_tests(files)
+    end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2018-04-23 15:10:27.000000000 +0200
+++ new/metadata        2018-06-18 11:45:28.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: yast-rake
 version: !ruby/object:Gem::Version
-  version: 0.2.22
+  version: 0.2.25
 platform: ruby
 authors:
 - Josef Reidinger
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2018-04-23 00:00:00.000000000 Z
+date: 2018-06-18 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rake


Reply via email to