Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-rb-kqueue for 
openSUSE:Factory checked in at 2021-07-04 22:10:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rb-kqueue (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-rb-kqueue.new.2625 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-rb-kqueue"

Sun Jul  4 22:10:29 2021 rev:4 rq:903534 version:0.2.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rb-kqueue/rubygem-rb-kqueue.changes      
2017-06-08 15:00:49.537461990 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-rb-kqueue.new.2625/rubygem-rb-kqueue.changes
    2021-07-04 22:10:30.445338331 +0200
@@ -1,0 +2,6 @@
+Thu Jun 24 17:51:55 UTC 2021 - Stephan Kulow <co...@suse.com>
+
+updated to version 0.2.6
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  rb-kqueue-0.2.5.gem

New:
----
  rb-kqueue-0.2.6.gem

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

Other differences:
------------------
++++++ rubygem-rb-kqueue.spec ++++++
--- /var/tmp/diff_new_pack.NBD13P/_old  2021-07-04 22:10:30.953334401 +0200
+++ /var/tmp/diff_new_pack.NBD13P/_new  2021-07-04 22:10:30.953334401 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-rb-kqueue
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # 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/
 #
 
 
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-rb-kqueue
-Version:        0.2.5
+Version:        0.2.6
 Release:        0
 %define mod_name rb-kqueue
 %define mod_full_name %{mod_name}-%{version}
@@ -33,8 +33,8 @@
 BuildRequires:  %{rubygem rdoc > 3.10}
 BuildRequires:  %{ruby}
 BuildRequires:  ruby-macros >= 5
-Url:            http://github.com/mat813/rb-kqueue
-Source:         http://rubygems.org/gems/%{mod_full_name}.gem
+URL:            http://github.com/mat813/rb-kqueue
+Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
 Summary:        A Ruby wrapper for BSD's kqueue, using FFI
 License:        MIT

++++++ rb-kqueue-0.2.5.gem -> rb-kqueue-0.2.6.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.ruby-gemset new/.ruby-gemset
--- old/.ruby-gemset    1970-01-01 01:00:00.000000000 +0100
+++ new/.ruby-gemset    2021-04-14 18:15:10.000000000 +0200
@@ -0,0 +1 @@
+rb-kqueue
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.ruby-version new/.ruby-version
--- old/.ruby-version   1970-01-01 01:00:00.000000000 +0100
+++ new/.ruby-version   2021-04-14 18:15:10.000000000 +0200
@@ -0,0 +1 @@
+ruby-2.6.5
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/VERSION new/VERSION
--- old/VERSION 2017-05-16 15:42:31.000000000 +0200
+++ new/VERSION 1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-0.1.0
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rb-kqueue/event.rb new/lib/rb-kqueue/event.rb
--- old/lib/rb-kqueue/event.rb  2017-05-16 15:42:31.000000000 +0200
+++ new/lib/rb-kqueue/event.rb  2021-04-14 18:15:10.000000000 +0200
@@ -3,6 +3,11 @@
   # Each {Watcher} can fire many events,
   # which are passed to that Watcher's callback.
   class Event
+
+    # Exception raised on an attempt to construct an {Event}
+    # from a native event with unexpected field values.
+    class UnexpectedEvent < Exception; end
+
     # Some integer data, the interpretation of which
     # is specific to each individual {Watcher}.
     # For specifics, see the individual Watcher subclasses.
@@ -64,7 +69,11 @@
       @native = native
       @queue = queue
       @data = @native[:data]
-      @filter = KQueue::Native::Flags.from_flag("EVFILT", @native[:filter])
+      begin
+        @filter = KQueue::Native::Flags.from_flag("EVFILT", @native[:filter])
+      rescue Native::Flags::FlagNotFound
+        raise UnexpectedEvent
+      end
       @flags = Native::Flags.from_mask("EV", @native[:flags])
 
       KQueue.handle_error @native[:data] if @flags.include?(:error)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rb-kqueue/native/flags.rb 
new/lib/rb-kqueue/native/flags.rb
--- old/lib/rb-kqueue/native/flags.rb   2017-05-16 15:42:31.000000000 +0200
+++ new/lib/rb-kqueue/native/flags.rb   2021-04-14 18:15:10.000000000 +0200
@@ -7,48 +7,48 @@
     module Flags
       # Filters
       if FFI::Platform::IS_FREEBSD
-        EVFILT_READ    =       -1
-        EVFILT_WRITE   =       -2
-        EVFILT_AIO     =       -3      # Attached to aio requests
-        EVFILT_VNODE   =       -4      # Attached to vnodes
-        EVFILT_PROC    =       -5      # Attached to struct proc
-        EVFILT_SIGNAL  =       -6      # Attached to struct proc
-        EVFILT_TIMER   =       -7      # Timers
-        EVFILT_PROCDESC        =       -8      # Attached to process 
descriptors
-        EVFILT_FS      =       -9      # Filesystem events
-        EVFILT_LIO     =       -10     # Attached to lio requests
-        EVFILT_USER    =       -11     # User events
-        EVFILT_SENDFILE        =       -12     # Attached to sendfile requests
-        EVFILT_SYSCOUNT        =       12
+        EVFILT_READ = -1
+        EVFILT_WRITE = -2
+        EVFILT_AIO = -3 # Attached to aio requests
+        EVFILT_VNODE = -4 # Attached to vnodes
+        EVFILT_PROC = -5 # Attached to struct proc
+        EVFILT_SIGNAL = -6 # Attached to struct proc
+        EVFILT_TIMER = -7 # Timers
+        EVFILT_PROCDESC = -8 # Attached to process descriptors
+        EVFILT_FS = -9 # Filesystem events
+        EVFILT_LIO = -10 # Attached to lio requests
+        EVFILT_USER = -11 # User events
+        EVFILT_SENDFILE = -12 # Attached to sendfile requests
+        EVFILT_SYSCOUNT = 12
       elsif FFI::Platform::IS_NETBSD
-        EVFILT_READ    =       0
-        EVFILT_WRITE   =       1
-        EVFILT_AIO     =       2       # Attached to aio requests
-        EVFILT_VNODE   =       3       # Attached to vnodes
-        EVFILT_PROC    =       4       # Attached to struct proc
-        EVFILT_SIGNAL  =       5       # Attached to struct proc
-        EVFILT_TIMER   =       6       # Arbitrary timer (in ms)
-        EVFILT_SYSCOUNT        =       7       # Number of filters
+        EVFILT_READ = 0
+        EVFILT_WRITE = 1
+        EVFILT_AIO = 2 # Attached to aio requests
+        EVFILT_VNODE = 3 # Attached to vnodes
+        EVFILT_PROC = 4 # Attached to struct proc
+        EVFILT_SIGNAL = 5 # Attached to struct proc
+        EVFILT_TIMER = 6 # Arbitrary timer (in ms)
+        EVFILT_SYSCOUNT = 7 # Number of filters
       elsif FFI::Platform::IS_OPENBSD
-        EVFILT_READ    =       -1
-        EVFILT_WRITE   =       -2
-        EVFILT_AIO     =       -3      # Attached to aio requests
-        EVFILT_VNODE   =       -4      # Attached to vnodes
-        EVFILT_PROC    =       -5      # Attached to struct proc
-        EVFILT_SIGNAL  =       -6      # Attached to struct proc
-        EVFILT_TIMER   =       -7      # Timers
+        EVFILT_READ = -1
+        EVFILT_WRITE = -2
+        EVFILT_AIO = -3 # Attached to aio requests
+        EVFILT_VNODE = -4 # Attached to vnodes
+        EVFILT_PROC = -5 # Attached to struct proc
+        EVFILT_SIGNAL = -6 # Attached to struct proc
+        EVFILT_TIMER = -7 # Timers
       else
-        EVFILT_READ    =       -1
-        EVFILT_WRITE   =       -2
-        EVFILT_AIO     =       -3      # Attached to aio requests
-        EVFILT_VNODE   =       -4      # Attached to vnodes
-        EVFILT_PROC    =       -5      # Attached to struct proc
-        EVFILT_SIGNAL  =       -6      # Attached to struct proc
-        EVFILT_TIMER   =       -7      # Timers
-        EVFILT_MACHPORT        =       -8      # Mach portsets
-        EVFILT_FS      =       -9      # Filesystem events
-        EVFILT_USER    =       -10     # User events
-        EVFILT_SESSION =       -11     # Audit session events
+        EVFILT_READ = -1
+        EVFILT_WRITE = -2
+        EVFILT_AIO = -3 # Attached to aio requests
+        EVFILT_VNODE = -4 # Attached to vnodes
+        EVFILT_PROC = -5 # Attached to struct proc
+        EVFILT_SIGNAL = -6 # Attached to struct proc
+        EVFILT_TIMER = -7 # Timers
+        EVFILT_MACHPORT = -8 # Mach portsets
+        EVFILT_FS = -9 # Filesystem events
+        EVFILT_USER = -10 # User events
+        EVFILT_SESSION = -11 # Audit session events
       end
 
 
@@ -97,6 +97,9 @@
       NOTE_TIMER_NSECONDS = 0x00000004 # data is nanoseconds
       NOTE_TIMER_ABSOLUTE = 0x00000008 # absolute timeout
 
+      # Exception raised when a function fails to find a flag satisfying
+      # its given query.
+      class FlagNotFound < Exception; end
 
       # Converts a list of flags to the bitmask that the C API expects.
       #
@@ -143,6 +146,7 @@
           next unless c =~ re
           return c.to_s.sub("#{prefix}_", "").downcase.to_sym if const_get(c) 
== flag
         end
+        raise FlagNotFound
       end
     end
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rb-kqueue/queue.rb new/lib/rb-kqueue/queue.rb
--- old/lib/rb-kqueue/queue.rb  2017-05-16 15:42:31.000000000 +0200
+++ new/lib/rb-kqueue/queue.rb  2021-04-14 18:15:10.000000000 +0200
@@ -359,7 +359,13 @@
       res = Native.kevent(@fd, nil, 0, eventlist, size, timeout)
 
       KQueue.handle_error if res < 0
-      (0...res).map {|i| KQueue::Event.new(Native::KEvent.new(eventlist[i]), 
self)}
+      (0...res).map do |i|
+        begin
+          KQueue::Event.new(Native::KEvent.new(eventlist[i]), self)
+        rescue KQueue::Event::UnexpectedEvent
+          nil
+        end
+      end.compact
     end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rb-kqueue/version.rb new/lib/rb-kqueue/version.rb
--- old/lib/rb-kqueue/version.rb        2017-05-16 15:42:31.000000000 +0200
+++ new/lib/rb-kqueue/version.rb        2021-04-14 18:15:10.000000000 +0200
@@ -1,3 +1,3 @@
 module KQueue
-  VERSION = [0, 2, 5]
+  VERSION = [0, 2, 6]
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2017-05-16 15:42:31.000000000 +0200
+++ new/metadata        2021-04-14 18:15:10.000000000 +0200
@@ -1,15 +1,15 @@
 --- !ruby/object:Gem::Specification
 name: rb-kqueue
 version: !ruby/object:Gem::Version
-  version: 0.2.5
+  version: 0.2.6
 platform: ruby
 authors:
 - Mathieu Arnold
 - Nathan Weizenbaum
-autorequire: 
+autorequire:
 bindir: bin
 cert_chain: []
-date: 2017-05-16 00:00:00.000000000 Z
+date: 2021-04-14 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: ffi
@@ -62,12 +62,13 @@
 files:
 - ".gitignore"
 - ".rspec"
+- ".ruby-gemset"
+- ".ruby-version"
 - ".yardopts"
 - Gemfile
 - MIT-LICENSE
 - README.md
 - Rakefile
-- VERSION
 - lib/rb-kqueue.rb
 - lib/rb-kqueue/event.rb
 - lib/rb-kqueue/native.rb
@@ -88,7 +89,7 @@
 licenses:
 - MIT
 metadata: {}
-post_install_message: 
+post_install_message:
 rdoc_options:
 - "--charset=UTF-8"
 require_paths:
@@ -104,9 +105,8 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubyforge_project: 
-rubygems_version: 2.4.8
-signing_key: 
+rubygems_version: 3.0.9
+signing_key:
 specification_version: 4
 summary: A Ruby wrapper for BSD's kqueue, using FFI
 test_files:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rb-kqueue.gemspec new/rb-kqueue.gemspec
--- old/rb-kqueue.gemspec       2017-05-16 15:42:31.000000000 +0200
+++ new/rb-kqueue.gemspec       2021-04-14 18:15:10.000000000 +0200
@@ -1,8 +1,3 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
-# -*- encoding: utf-8 -*-
-
 require File.expand_path('../lib/rb-kqueue/version', __FILE__)
 
 Gem::Specification.new do |gem|
@@ -11,23 +6,20 @@
 
   gem.authors = ["Mathieu Arnold", "Nathan Weizenbaum"]
   gem.email = %q{m...@mat.cc nex...@gmail.com}
-  gem.date = %q{2017-05-16}
   gem.description = %q{A Ruby wrapper for BSD's kqueue, using FFI}
   gem.extra_rdoc_files = %w(README.md)
   gem.licenses = ['MIT']
 
   gem.files = `git ls-files`.split(/\n/)
-  gem.executables   = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
-  gem.test_files    = gem.files.grep(%r{^(test|spec|features)/})
+  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
+  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
 
   gem.homepage = %q{http://github.com/mat813/rb-kqueue}
   gem.rdoc_options = ["--charset=UTF-8"]
   gem.require_paths = ["lib"]
-  gem.rubygems_version = %q{1.3.5}
   gem.summary = %q{A Ruby wrapper for BSD's kqueue, using FFI}
 
   gem.add_runtime_dependency(%q<ffi>, [">= 0.5.0"])
   gem.add_development_dependency(%q<yard>, [">= 0.4.0"])
   gem.add_development_dependency(%q<rspec>, [">= 3.3.0"])
 end
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/kqueue_queue_spec.rb 
new/spec/kqueue_queue_spec.rb
--- old/spec/kqueue_queue_spec.rb       2017-05-16 15:42:31.000000000 +0200
+++ new/spec/kqueue_queue_spec.rb       2021-04-14 18:15:10.000000000 +0200
@@ -10,16 +10,16 @@
 
     context 'file is watched for writes' do
       before do
-       queue.watch_file file.path, :write do
-         file_touched = !file_touched
-       end
-       queue.process
+        queue.watch_file file.path, :write do
+          file_touched = !file_touched
+        end
+        queue.process
       end
 
       context 'file is written to' do
-       it 'executes the defined block' do
-         expect { file.write 'test' }.to change { file_touched 
}.from(false).to true
-       end
+        it 'executes the defined block' do
+          expect { file.write 'test' }.to change { file_touched 
}.from(false).to true
+        end
       end
     end
 

Reply via email to