Hello community, here is the log from the commit of package rubygem-yast-rake for openSUSE:Factory checked in at 2019-07-31 14:21:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-yast-rake (Old) and /work/SRC/openSUSE:Factory/.rubygem-yast-rake.new.4126 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-yast-rake" Wed Jul 31 14:21:47 2019 rev:29 rq:712267 version:0.2.34 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-yast-rake/rubygem-yast-rake.changes 2019-04-12 09:12:06.585606669 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-yast-rake.new.4126/rubygem-yast-rake.changes 2019-07-31 14:21:50.658512263 +0200 @@ -1,0 +2,13 @@ +Thu Jun 27 12:10:33 UTC 2019 - Josef Reidinger <jreidin...@suse.com> + +- support proper rubocop version in rake check:rubocop + (bsc#1139270) +- 0.2.34 + +------------------------------------------------------------------- +Thu Jun 20 11:39:40 UTC 2019 - Ladislav Slezák <lsle...@suse.cz> + +- :sle_latest is SLE15-SP2 now (bsc#1138835) +- 0.2.33 + +------------------------------------------------------------------- Old: ---- yast-rake-0.2.32.gem New: ---- yast-rake-0.2.34.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-yast-rake.spec ++++++ --- /var/tmp/diff_new_pack.GUnuFD/_old 2019-07-31 14:21:51.226511453 +0200 +++ /var/tmp/diff_new_pack.GUnuFD/_new 2019-07-31 14:21:51.230511447 +0200 @@ -12,12 +12,12 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: rubygem-yast-rake -Version: 0.2.32 +Version: 0.2.34 Release: 0 %define mod_name yast-rake %define mod_full_name %{mod_name}-%{version} ++++++ yast-rake-0.2.32.gem -> yast-rake-0.2.34.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 2019-06-27 16:55:34.000000000 +0200 @@ -1 +1 @@ -0.2.32 +0.2.34 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 2019-06-27 16:55:34.000000000 +0200 @@ -78,8 +78,8 @@ :sle_latest: obs_api: "https://api.suse.de/" obs_project: "Devel:YaST:Head" - obs_sr_project: "SUSE:SLE-15-SP1:GA" - obs_target: "SUSE_SLE-15-SP1_GA" + obs_sr_project: "SUSE:SLE-15-SP2:GA" + obs_target: "SUSE_SLE-15-SP2_GA" :factory: obs_project: "YaST:Head" obs_sr_project: "openSUSE:Factory" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/tasks/install.rake new/lib/tasks/install.rake --- old/lib/tasks/install.rake 2018-04-11 12:13:28.000000000 +0200 +++ new/lib/tasks/install.rake 2019-06-27 16:55:34.000000000 +0200 @@ -1,3 +1,5 @@ +# frozen_string_literal: true + #-- # Yast rake # @@ -76,13 +78,13 @@ config.install_locations.each_pair do |glob, install_to| FileUtils.mkdir_p(install_to, verbose: true) unless File.directory?(install_to) Dir[glob].each do |source| - begin - # do not use FileUtils.cp_r as it have different behavior if target - # exists and we copy a symlink - sh "cp -r '#{source}' '#{install_to}'" - rescue => e - raise "Cannot install file #{source} to #{install_to}: #{e.message}" - end + + # do not use FileUtils.cp_r as it have different behavior if target + # exists and we copy a symlink + sh "cp -r '#{source}' '#{install_to}'" + rescue StandardError => e + raise "Cannot install file #{source} to #{install_to}: #{e.message}" + end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/tasks/pot.rake new/lib/tasks/pot.rake --- old/lib/tasks/pot.rake 2018-04-11 12:13:28.000000000 +0200 +++ new/lib/tasks/pot.rake 2019-06-27 16:55:34.000000000 +0200 @@ -1,3 +1,5 @@ +# frozen_string_literal: true + #-- # Yast rake # @@ -27,16 +29,16 @@ namespace :check do # print failed lines and a hint to STDERR def report_pot_errors(lines) - $stderr.puts "Failed lines:" - $stderr.puts "-" * 30 - $stderr.puts lines - $stderr.puts "-" * 30 + warn "Failed lines:" + warn "-" * 30 + warn lines + warn "-" * 30 $stderr.puts - $stderr.puts "Note: \#{foo} substitution in translatable strings does" \ + warn "Note: \#{foo} substitution in translatable strings does" \ " not work properly, use" - $stderr.puts " _(\"foo %{bar} baz\") % { :bar => bar }" - $stderr.puts "or" - $stderr.puts " _(\"foo %s baz\") % bar" + warn " _(\"foo %{bar} baz\") % { :bar => bar }" + warn "or" + warn " _(\"foo %s baz\") % bar" $stderr.puts end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/tasks/rubocop.rake new/lib/tasks/rubocop.rake --- old/lib/tasks/rubocop.rake 2018-04-11 12:13:28.000000000 +0200 +++ new/lib/tasks/rubocop.rake 2019-06-27 16:55:34.000000000 +0200 @@ -1,3 +1,5 @@ +# frozen_string_literal: true + #-- # Yast rake # @@ -13,6 +15,20 @@ # #++ +def rubocop_bin + return @rubocop_bin if @rubocop_bin + return @rubocop_bin = ENV["RUBOCOP_BIN"] if ENV["RUBOCOP_BIN"] + + version = File.read(".rubocop.yml").include?("rubocop-0.71.0") ? "0.71.0" : "0.41.2" + binary = `/usr/sbin/update-alternatives --list rubocop | grep '#{version}'`.strip + if !system("which #{binary}") + raise "cannot find proper version of rubocop binary in " \ + "'/usr/sbin/update-alternatives --list rubocop'." \ + "If rubocop is installed via gem, define its binary name via env variable RUBOCOP_BIN." + end + @rubocop_bin = binary +end + # run Rubocop in parallel # @param params [String] optional Rubocop parameters def run_rubocop(params = "") @@ -26,8 +42,8 @@ # a) use -P with number of processors to run the commands in parallel # b) use -n to set the maximum number of files per process, this number # is computed to equally distribute the files across the workers - sh "rubocop -L | sort -R | xargs -P`nproc` -n$(expr `rubocop -L | wc -l` / " \ - "`nproc` + 1) rubocop #{params}" + sh "#{rubocop_bin} -L | sort -R | xargs -P`nproc` -n$(expr `#{rubocop_bin} -L | wc -l` / " \ + "`nproc` + 1) #{rubocop_bin} #{params}" end namespace :check do diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/tasks/run.rake new/lib/tasks/run.rake --- old/lib/tasks/run.rake 2018-04-11 12:13:28.000000000 +0200 +++ new/lib/tasks/run.rake 2019-06-27 16:55:34.000000000 +0200 @@ -1,3 +1,5 @@ +# frozen_string_literal: true + #-- # Yast rake # @@ -32,8 +34,9 @@ clients = Dir["**/src/clients/*.rb"] client = clients.reduce do |min, n| next n if min.nil? + # use client with shortest name by default - min.size > n.size ? n : min + (min.size > n.size) ? n : min end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/tasks/spellcheck.rake new/lib/tasks/spellcheck.rake --- old/lib/tasks/spellcheck.rake 2018-04-11 12:13:28.000000000 +0200 +++ new/lib/tasks/spellcheck.rake 2019-06-27 16:55:34.000000000 +0200 @@ -1,3 +1,5 @@ +# frozen_string_literal: true + #-- # Yast rake # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/tasks/spellcheck_task.rb new/lib/tasks/spellcheck_task.rb --- old/lib/tasks/spellcheck_task.rb 2018-04-11 12:13:28.000000000 +0200 +++ new/lib/tasks/spellcheck_task.rb 2019-06-27 16:55:34.000000000 +0200 @@ -1,3 +1,5 @@ +# frozen_string_literal: true + #-- # Yast rake # @@ -33,8 +35,8 @@ module Yast # Defines a spellcheck rake task class SpellcheckTask < Rake::TaskLib - GLOBAL_SPELL_CONFIG_FILE = File.expand_path("../spell.yml", __FILE__) - CUSTOM_SPELL_CONFIG_FILE = ".spell.yml".freeze + GLOBAL_SPELL_CONFIG_FILE = File.expand_path("spell.yml", __dir__) + CUSTOM_SPELL_CONFIG_FILE = ".spell.yml" # define the Rake task in the constructor def initialize @@ -65,11 +67,12 @@ # @return [Aspell] the speller object def speller return @speller if @speller + # raspell is an optional dependency, handle the missing case nicely begin require "raspell" rescue LoadError - $stderr.puts "ERROR: Ruby gem \"raspell\" is not installed." + warn "ERROR: Ruby gem \"raspell\" is not installed." exit 1 end @@ -105,9 +108,9 @@ duplicates = dict1 & dict2 return if duplicates.empty? - $stderr.puts "Warning: Found dictionary duplicates in the local dictionary " \ + warn "Warning: Found dictionary duplicates in the local dictionary " \ "(#{CUSTOM_SPELL_CONFIG_FILE}):\n" - duplicates.each { |duplicate| $stderr.puts " #{duplicate}" } + duplicates.each { |duplicate| warn " #{duplicate}" } $stderr.puts end @@ -161,6 +164,7 @@ def misspelled_on_line(text) switch_block_tag if block_line?(text) return [] if inside_block + speller.list_misspelled([text]) - config["dictionary"] end @@ -179,7 +183,7 @@ if files_to_check.all? { |file| check_file(file) } puts "Spelling OK." else - $stderr.puts "Spellcheck failed! (Fix it or add the words to " \ + warn "Spellcheck failed! (Fix it or add the words to " \ "'#{CUSTOM_SPELL_CONFIG_FILE}' file if it is OK.)" exit 1 end 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 2019-06-27 16:55:34.000000000 +0200 @@ -1,3 +1,5 @@ +# frozen_string_literal: true + #-- # Yast rake # @@ -36,6 +38,8 @@ Coveralls::RakeTask.new Rake::Task["coveralls:push"].invoke end + + nil end def run_sequential_tests(files) @@ -56,7 +60,7 @@ run_parallel_tests(files) else if parallel_tests_wanted? - $stderr.puts "WARNING: parallel tests enabled, but 'parallel_rspec' is" \ + warn "WARNING: parallel tests enabled, but 'parallel_rspec' is" \ " not installed, falling back to the standard 'rspec' runner." end run_sequential_tests(files) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/tasks/version.rake new/lib/tasks/version.rake --- old/lib/tasks/version.rake 2018-04-11 12:13:28.000000000 +0200 +++ new/lib/tasks/version.rake 2019-06-27 16:55:34.000000000 +0200 @@ -1,3 +1,5 @@ +# frozen_string_literal: true + #-- # Yast rake # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/yast/rake.rb new/lib/yast/rake.rb --- old/lib/yast/rake.rb 2018-04-11 12:13:28.000000000 +0200 +++ new/lib/yast/rake.rb 2019-06-27 16:55:34.000000000 +0200 @@ -1,3 +1,5 @@ +# frozen_string_literal: true + #-- # Yast rake # @@ -36,7 +38,7 @@ end # load own tasks -task_path = File.expand_path("../../tasks", __FILE__) +task_path = File.expand_path("../tasks", __dir__) Dir["#{task_path}/*.rake"].each do |f| load f end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/yast/tasks.rb new/lib/yast/tasks.rb --- old/lib/yast/tasks.rb 2018-04-11 12:13:28.000000000 +0200 +++ new/lib/yast/tasks.rb 2019-06-27 16:55:34.000000000 +0200 @@ -1,3 +1,5 @@ +# frozen_string_literal: true + #-- # Yast rake # @@ -23,7 +25,7 @@ # Yast::Task module contains helper methods module Tasks # Targets definition - TARGETS_FILE = File.expand_path("../../../data/targets.yml", __FILE__) + TARGETS_FILE = File.expand_path("../../data/targets.yml", __dir__) def self.configuration(&block) ::Packaging.configuration(&block) @@ -34,7 +36,7 @@ # use the first *.spec file found, assume all spec files # contain the same version File.readlines(Dir.glob("package/*.spec").first) - .grep(/^\s*Version:\s*/).first.sub("Version:", "").strip + .grep(/^\s*Version:\s*/).first.sub("Version:", "").strip end def self.submit_to(target, file = TARGETS_FILE) @@ -43,6 +45,7 @@ if config.nil? raise "No configuration found for #{target}. Known values: #{targets.keys.join(", ")}" end + Yast::Tasks.configuration do |conf| config.each do |meth, val| conf.public_send("#{meth}=", val) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2019-04-10 13:10:40.000000000 +0200 +++ new/metadata 2019-06-27 16:55:37.000000000 +0200 @@ -1,43 +1,43 @@ --- !ruby/object:Gem::Specification name: yast-rake version: !ruby/object:Gem::Version - version: 0.2.32 + version: 0.2.34 platform: ruby authors: - Josef Reidinger autorequire: bindir: bin cert_chain: [] -date: 2019-04-10 00:00:00.000000000 Z +date: 2019-06-27 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency - name: rake + name: packaging_rake_tasks requirement: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version - version: '0' + version: 1.1.4 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version - version: '0' + version: 1.1.4 - !ruby/object:Gem::Dependency - name: packaging_rake_tasks + name: rake requirement: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version - version: 1.1.4 + version: '0' type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version - version: 1.1.4 + version: '0' description: | Rake tasks that support work-flow of Yast developer. It allows packaging repo, send it to build service, create submit request to target repo or run client