Hello community,
here is the log from the commit of package rubygem-packaging_rake_tasks for
openSUSE:Factory checked in at 2017-04-17 10:24:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-packaging_rake_tasks (Old)
and /work/SRC/openSUSE:Factory/.rubygem-packaging_rake_tasks.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-packaging_rake_tasks"
Mon Apr 17 10:24:01 2017 rev:14 rq:487084 version:1.3.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-packaging_rake_tasks/rubygem-packaging_rake_tasks.changes
2016-04-07 13:34:47.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-packaging_rake_tasks.new/rubygem-packaging_rake_tasks.changes
2017-04-17 10:24:06.540927060 +0200
@@ -1,0 +2,12 @@
+Mon Apr 10 07:30:44 UTC 2017 - [email protected]
+
+- sync IDs in check:changelog with build service
+- 1.3.1
+
+-------------------------------------------------------------------
+Thu Apr 6 10:05:22 UTC 2017 - [email protected]
+
+- Add new task for check documentation (check:doc)
+- 1.3.0
+
+-------------------------------------------------------------------
Old:
----
packaging_rake_tasks-1.2.1.gem
New:
----
packaging_rake_tasks-1.3.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-packaging_rake_tasks.spec ++++++
--- /var/tmp/diff_new_pack.SqhG8Z/_old 2017-04-17 10:24:07.228829638 +0200
+++ /var/tmp/diff_new_pack.SqhG8Z/_new 2017-04-17 10:24:07.228829638 +0200
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-packaging_rake_tasks
#
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: rubygem-packaging_rake_tasks
-Version: 1.2.1
+Version: 1.3.1
Release: 0
%define mod_name packaging_rake_tasks
%define mod_full_name %{mod_name}-%{version}
++++++ packaging_rake_tasks-1.2.1.gem -> packaging_rake_tasks-1.3.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/VERSION new/VERSION
--- old/VERSION 2016-04-01 14:59:20.000000000 +0200
+++ new/VERSION 2015-05-06 10:39:43.000000000 +0200
@@ -1 +1 @@
-1.2.1
+1.3.1
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/packaging/configuration.rb
new/lib/packaging/configuration.rb
--- old/lib/packaging/configuration.rb 2016-04-01 14:59:20.000000000 +0200
+++ new/lib/packaging/configuration.rb 2015-05-06 10:39:43.000000000 +0200
@@ -30,6 +30,7 @@
@obs_target = "openSUSE_Factory"
@skip_license_check = []
@maintenance_mode = false
+ @documentation_minimal = 0
end
#custom package name, by default directory name
@@ -58,6 +59,9 @@
attr_accessor :skip_license_check
# Specify if project is in maintenance mode. If so, then it create
maintenance request instead of pull request
attr_accessor :maintenance_mode
+ # Minimal documentation coverage to pass check:doc
+ # Default value is 0.
+ attr_accessor :documentation_minimal
def package_name
@package_name ||= Dir.pwd.split("/").last
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/tasks/check_changelog.rake
new/lib/tasks/check_changelog.rake
--- old/lib/tasks/check_changelog.rake 2016-04-01 14:59:20.000000000 +0200
+++ new/lib/tasks/check_changelog.rake 2015-05-06 10:39:43.000000000 +0200
@@ -16,6 +16,37 @@
require 'rake'
+
+# try to keep it in sync with
https://github.com/openSUSE/open-build-service/blob/master/src/api/db/seeds.rb
+ID_MATCHERS = [
+ /boost#(\d+)/,
+ /bco#(\d+)/,
+ /RT#(\d+)/,
+ /CVE-(\d\d\d\d-\d+)/,
+ /deb#(\d+)/,
+ /fdo#(\d+)/,
+ /GCC#(\d+)/,
+ /bgo#(\d+)/,
+ /bio#(\d+)/,
+ /(?:Kernel|K|bko)#(\d+)/,
+ /kde#(\d+)/,
+ /b?lp#(\d+)/,
+ /Meego#(\d+)/,
+ /bmo#(\d+)/,
+ /(?:bnc|BNC|bsc|BSC|boo|BOO)\s*[#:]\s*(\d+)/,
+ /ITS#(\d+)/,
+ /i#(\d+)/,
+ /(?:fate|Fate|FATE)\s*#\s*(\d+)/,
+ /rh#(\d+)/,
+ /bso#(\d+)/,
+ /sf#(\d+)/,
+ /(?:bxc|Xamarin)#(\d+)/,
+ /bxo#(\d+)/,
+ /obs#(\d+)/,
+ /build#(\d+)/,
+ /osc#(\d+)/
+]
+
namespace "check" do
desc "Checking for new IDs (bugzilla,fate,...) in *.changes file"
task :changelog => :package do
@@ -34,18 +65,15 @@
# has been changed
if version_changed?( "#{osc_checkout_dir}/#{package_name}.spec" )
Dir.chdir(osc_checkout_dir) do
- # Tags described in
https://github.com/openSUSE/osc-plugin-factory/blob/e12bc02e9817277335ce6adaa8e8d334d03fcc5d/check_tags_in_requests.py#L63
cmd = "osc -A '#{obs_api}' cat " \
" '#{obs_sr_project}' '#{package_name}' '#{package_name}.changes'
"\
"| diff - '#{package_name}.changes'"
puts cmd if verbose
ret = `bash -c '#{cmd}'`
- unless ret.match(/(bnc|fate|boo|bsc|bgo)#[0-9]+/i) ||
- ret.match(/cve-[0-9]{4}-[0-9]+/i)
+ unless ID_MATCHERS.any?{|m| ret.match(m) }
raise "Stopping, missing new bugzilla or fate entry " \
"in the *.changes file.\n"\
- "e.g. bnc#<number>, fate#<number>, boo#<number>, bsc#<number>, "
\
- "bgo#<number>, cve-<number>"
+ "e.g. bnc#<number> or fate#<number>"
end
end
else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/tasks/check_doc.rake new/lib/tasks/check_doc.rake
--- old/lib/tasks/check_doc.rake 1970-01-01 01:00:00.000000000 +0100
+++ new/lib/tasks/check_doc.rake 2015-05-06 10:39:43.000000000 +0200
@@ -0,0 +1,66 @@
+# Copyright (C) 2017 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.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, contact SUSE LLC.
+#
+# To contact SUSE LLC about this file by physical or electronic mail, you may
+# find current contact information at www.suse.com.
+
+require "packaging/configuration"
+
+def check_doc_output
+ ENV["LANG"] = "C"
+ puts "Generating documentation..." if verbose
+ result = `yardoc`
+ if $?.exitstatus != 0
+ raise "yardoc failed"
+ end
+
+ puts result if verbose
+
+ lines = result.lines
+
+ warn_lines = lines.grep(/\[warn\]:/)
+ if !warn_lines.empty?
+ raise "There are #{warn_lines.size} warning/-s in yardoc output"
+ end
+
+ coverage_line = lines.grep(/% documented/).first
+ if !coverage_line
+ raise "Sorry, output format of yardoc changed. Please report issue for
packaging rake tasks "\
+ " and include output of your yardoc and its version"
+ end
+
+ coverage = coverage_line[/(\d+\.?\d*)% documented/, 1].to_f
+ if coverage < Packaging::Configuration.instance.documentation_minimal
+ raise "Too low documentation coverage #{coverage}%."
+ end
+end
+
+def check_doc
+ if !File.exist?(".yardopts")
+ puts ".yardopts not found, skipping documentation check"
+ return
+ end
+
+ if !system("which", "yardoc")
+ raise "yardoc not found"
+ end
+
+ check_doc_output
+end
+
+namespace "check" do
+ desc "Check for errors in documentation and minimal coverage (supported:
rubydoc)"
+ task :doc do
+ check_doc
+ end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2016-04-01 14:59:20.000000000 +0200
+++ new/metadata 2017-04-10 16:24:15.000000000 +0200
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: packaging_rake_tasks
version: !ruby/object:Gem::Version
- version: 1.2.1
+ version: 1.3.1
platform: ruby
authors:
- Josef Reidinger
autorequire:
bindir: bin
cert_chain: []
-date: 2016-04-01 00:00:00.000000000 Z
+date: 2017-04-10 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rake
@@ -38,6 +38,7 @@
- lib/packaging/tasks.rb
- lib/tasks/check_changelog.rake
- lib/tasks/check_committed.rake
+- lib/tasks/check_doc.rake
- lib/tasks/check_license.rake
- lib/tasks/check_osc.rake
- lib/tasks/check_syntax.rake
@@ -64,10 +65,9 @@
version: '0'
requirements: []
rubyforge_project:
-rubygems_version: 2.2.2
+rubygems_version: 2.4.5.2
signing_key:
specification_version: 4
summary: Rake tasks providing tasks to package project in git and integration
with
build service
test_files: []
-has_rdoc: