Hello community, here is the log from the commit of package rubygem-rb-inotify for openSUSE:Factory checked in at 2016-03-07 13:26:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-rb-inotify (Old) and /work/SRC/openSUSE:Factory/.rubygem-rb-inotify.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rb-inotify" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-rb-inotify/rubygem-rb-inotify.changes 2014-11-10 17:28:17.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rb-inotify.new/rubygem-rb-inotify.changes 2016-03-07 13:27:49.000000000 +0100 @@ -1,0 +2,12 @@ +Tue Feb 9 05:30:19 UTC 2016 - co...@suse.com + +- updated to version 0.9.7 + no changelog found + +------------------------------------------------------------------- +Sat Feb 6 05:38:56 UTC 2016 - co...@suse.com + +- updated to version 0.9.6 + no changelog found + +------------------------------------------------------------------- Old: ---- rb-inotify-0.9.5.gem New: ---- gem2rpm.yml rb-inotify-0.9.7.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-rb-inotify.spec ++++++ --- /var/tmp/diff_new_pack.q8OeaV/_old 2016-03-07 13:27:49.000000000 +0100 +++ /var/tmp/diff_new_pack.q8OeaV/_new 2016-03-07 13:27:49.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-rb-inotify # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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 @@ -15,17 +15,26 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + +# +# This file was generated with a gem2rpm.yml and not just plain gem2rpm. +# All sections marked as MANUAL, license headers, summaries and descriptions +# can be maintained in that file. Please consult this file before editing any +# of those fields +# + Name: rubygem-rb-inotify -Version: 0.9.5 +Version: 0.9.7 Release: 0 %define mod_name rb-inotify %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: ruby-macros >= 5 -BuildRequires: %{ruby} BuildRequires: %{rubygem gem2rpm} +BuildRequires: %{ruby} +BuildRequires: ruby-macros >= 5 Url: http://github.com/nex3/rb-inotify Source: http://rubygems.org/gems/%{mod_full_name}.gem +Source1: gem2rpm.yml Summary: A Ruby wrapper for Linux's inotify, using FFI License: MIT Group: Development/Languages/Ruby ++++++ gem2rpm.yml ++++++ # --- # ## used by gem2rpm # :summary: this is a custom summary # ## used by gem2rpm # :description: |- # this is a custom description # # it can be multiline # ## used by gem2rpm # :license: MIT or Ruby # ## used by gem2rpm and gem_packages # :version_suffix: -x_y # ## used by gem2rpm and gem_packages # :disable_docs: true # ## used by gem2rpm # :disable_automatic_rdoc_dep: true # ## used by gem2rpm # :preamble: |- # BuildRequires: foobar # Requires: foobar # ## used by gem2rpm # :patches: # foo.patch: -p1 # bar.patch: # ## used by gem2rpm :sources: # - foo.desktop # - bar.desktop # :gem_install_args: '....' # ## used by gem2rpm # :pre_install: |- # %if 0%{?use_system_libev} # export USE_VENDORED_LIBEV="no" # %endif # ## used by gem2rpm # :post_install: |- # # delete custom files here or do other fancy stuff # install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse # ## used by gem2rpm # :testsuite_command: |- # (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} && rake test) # ## used by gem2rpm # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem2rpm # :scripts: # :post: |- # /bin/echo foo # ## used by gem_packages # :main: # :preamble: |- # Requires: util-linux # Recommends: pwgen # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem_packages # :custom: # apache: # :preamble: |- # Requires: ..... # :filelist: |- # /etc/apache2/conf.d/passenger.conf # :summary: Custom summary is optional # :description: |- # Custom description is optional # # bar # :post: |- # /bin/echo foo # ++++++ rb-inotify-0.9.5.gem -> rb-inotify-0.9.7.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/VERSION new/VERSION --- old/VERSION 1970-01-01 01:00:00.000000000 +0100 +++ new/VERSION 2016-02-09 00:10:26.000000000 +0100 @@ -1 +1 @@ -0.9.5 \ No newline at end of file +0.9.7 \ No newline at end of file Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rb-inotify/errors.rb new/lib/rb-inotify/errors.rb --- old/lib/rb-inotify/errors.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/lib/rb-inotify/errors.rb 2016-02-09 00:10:26.000000000 +0100 @@ -0,0 +1,3 @@ +module INotify + class QueueOverflowError < RuntimeError; end +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rb-inotify/event.rb new/lib/rb-inotify/event.rb --- old/lib/rb-inotify/event.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/lib/rb-inotify/event.rb 2016-02-09 00:10:26.000000000 +0100 @@ -117,7 +117,7 @@ @notifier = notifier @watcher_id = @native[:wd] - raise Exception.new("inotify event queue has overflowed.") if @native[:mask] & Native::Flags::IN_Q_OVERFLOW != 0 + raise QueueOverflowError.new("inotify event queue has overflowed.") if @native[:mask] & Native::Flags::IN_Q_OVERFLOW != 0 end # Calls the callback of the watcher that fired this event, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rb-inotify/notifier.rb new/lib/rb-inotify/notifier.rb --- old/lib/rb-inotify/notifier.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/lib/rb-inotify/notifier.rb 2016-02-09 00:10:26.000000000 +0100 @@ -242,6 +242,7 @@ # # @raise [SystemCallError] if closing the underlying file descriptor fails. def close + stop if Native.close(@fd) == 0 @watchers.clear return @@ -255,9 +256,11 @@ FFI.errno) end - # Blocks until there are one or more filesystem events - # that this notifier has watchers registered for. - # Once there are events, returns their {Event} objects. + # Blocks until there are one or more filesystem events that this notifier + # has watchers registered for. Once there are events, returns their {Event} + # objects. + # + # This can return an empty list if the watcher was closed elsewhere. # # {#run} or {#process} are ususally preferable to calling this directly. def read_events @@ -269,11 +272,12 @@ rescue SystemCallError => er # EINVAL means that there's more data to be read # than will fit in the buffer size - raise er unless er.errno == Errno::EINVAL::Errno || tries == 5 + raise er unless er.errno == Errno::EINVAL::Errno && tries < 5 size *= 2 tries += 1 retry end + return [] if data.nil? events = [] cookies = {} @@ -292,7 +296,13 @@ # Same as IO#readpartial, or as close as we need. def readpartial(size) # Use Ruby's readpartial if possible, to avoid blocking other threads. - return to_io.readpartial(size) if self.class.supports_ruby_io? + begin + return to_io.readpartial(size) if self.class.supports_ruby_io? + rescue Errno::EBADF + # If the IO has already been closed, reading from it will cause + # Errno::EBADF. + return nil + end tries = 0 begin diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rb-inotify.rb new/lib/rb-inotify.rb --- old/lib/rb-inotify.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/lib/rb-inotify.rb 2016-02-09 00:10:26.000000000 +0100 @@ -3,6 +3,7 @@ require 'rb-inotify/notifier' require 'rb-inotify/watcher' require 'rb-inotify/event' +require 'rb-inotify/errors' # The root module of the library, which is laid out as so: # @@ -13,5 +14,5 @@ # An array containing the version number of rb-inotify. # The numbers in the array are the major, minor, and patch versions, # respectively. - VERSION = [0, 9, 5] + VERSION = [0, 9, 7] end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 1970-01-01 01:00:00.000000000 +0100 +++ new/metadata 2016-02-09 00:10:26.000000000 +0100 @@ -1,41 +1,41 @@ --- !ruby/object:Gem::Specification name: rb-inotify version: !ruby/object:Gem::Version - version: 0.9.5 + version: 0.9.7 platform: ruby authors: - Nathan Weizenbaum autorequire: bindir: bin cert_chain: [] -date: 2014-06-06 00:00:00.000000000 Z +date: 2016-02-08 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: ffi requirement: !ruby/object:Gem::Requirement requirements: - - - '>=' + - - ! '>=' - !ruby/object:Gem::Version version: 0.5.0 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - - '>=' + - - ! '>=' - !ruby/object:Gem::Version version: 0.5.0 - !ruby/object:Gem::Dependency name: yard requirement: !ruby/object:Gem::Requirement requirements: - - - '>=' + - - ! '>=' - !ruby/object:Gem::Version version: 0.4.0 type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - - '>=' + - - ! '>=' - !ruby/object:Gem::Version version: 0.4.0 description: A Ruby wrapper for Linux's inotify, using FFI @@ -51,6 +51,7 @@ - Rakefile - VERSION - lib/rb-inotify.rb +- lib/rb-inotify/errors.rb - lib/rb-inotify/event.rb - lib/rb-inotify/native.rb - lib/rb-inotify/native/flags.rb @@ -66,17 +67,17 @@ - lib required_ruby_version: !ruby/object:Gem::Requirement requirements: - - - '>=' + - - ! '>=' - !ruby/object:Gem::Version version: '0' required_rubygems_version: !ruby/object:Gem::Requirement requirements: - - - '>=' + - - ! '>=' - !ruby/object:Gem::Version version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.0.3 +rubygems_version: 2.4.3 signing_key: specification_version: 4 summary: A Ruby wrapper for Linux's inotify, using FFI diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rb-inotify.gemspec new/rb-inotify.gemspec --- old/rb-inotify.gemspec 1970-01-01 01:00:00.000000000 +0100 +++ new/rb-inotify.gemspec 2016-02-09 00:10:26.000000000 +0100 @@ -2,14 +2,16 @@ # DO NOT EDIT THIS FILE DIRECTLY # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec' # -*- encoding: utf-8 -*- +# stub: rb-inotify 0.9.7 ruby lib Gem::Specification.new do |s| s.name = "rb-inotify" - s.version = "0.9.5" + s.version = "0.9.7" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= + s.require_paths = ["lib"] s.authors = ["Nathan Weizenbaum"] - s.date = "2014-06-06" + s.date = "2016-02-08" s.description = "A Ruby wrapper for Linux's inotify, using FFI" s.email = "nex...@gmail.com" s.extra_rdoc_files = [ @@ -22,6 +24,7 @@ "Rakefile", "VERSION", "lib/rb-inotify.rb", + "lib/rb-inotify/errors.rb", "lib/rb-inotify/event.rb", "lib/rb-inotify/native.rb", "lib/rb-inotify/native/flags.rb", @@ -30,8 +33,7 @@ "rb-inotify.gemspec" ] s.homepage = "http://github.com/nex3/rb-inotify" - s.require_paths = ["lib"] - s.rubygems_version = "2.0.3" + s.rubygems_version = "2.4.3" s.summary = "A Ruby wrapper for Linux's inotify, using FFI" if s.respond_to? :specification_version then