Hello community,

here is the log from the commit of package rubygem-rb-kqueue for 
openSUSE:Factory checked in at 2017-06-08 15:00:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rb-kqueue (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-rb-kqueue.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-rb-kqueue"

Thu Jun  8 15:00:48 2017 rev:3 rq:497687 version:0.2.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rb-kqueue/rubygem-rb-kqueue.changes      
2015-05-02 17:46:18.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-rb-kqueue.new/rubygem-rb-kqueue.changes 
2017-06-08 15:00:49.537461990 +0200
@@ -1,0 +2,6 @@
+Tue May 23 10:14:56 UTC 2017 - co...@suse.com
+
+- updated to version 0.2.5
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  rb-kqueue-0.2.4.gem

New:
----
  rb-kqueue-0.2.5.gem

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

Other differences:
------------------
++++++ rubygem-rb-kqueue.spec ++++++
--- /var/tmp/diff_new_pack.KwNnzY/_old  2017-06-08 15:00:50.301354181 +0200
+++ /var/tmp/diff_new_pack.KwNnzY/_new  2017-06-08 15:00:50.305353617 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-rb-kqueue
 #
-# Copyright (c) 2015 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
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-rb-kqueue
-Version:        0.2.4
+Version:        0.2.5
 Release:        0
 %define mod_name rb-kqueue
 %define mod_full_name %{mod_name}-%{version}

++++++ rb-kqueue-0.2.4.gem -> rb-kqueue-0.2.5.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.rspec new/.rspec
--- old/.rspec  1970-01-01 01:00:00.000000000 +0100
+++ new/.rspec  2017-05-16 15:42:31.000000000 +0200
@@ -0,0 +1,2 @@
+--color
+--require spec_helper
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/native/flags.rb 
new/lib/rb-kqueue/native/flags.rb
--- old/lib/rb-kqueue/native/flags.rb   2015-05-01 01:07:17.000000000 +0200
+++ new/lib/rb-kqueue/native/flags.rb   2017-05-16 15:42:31.000000000 +0200
@@ -6,17 +6,50 @@
     # @private
     module Flags
       # Filters
-      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
+      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
+      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
+      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
+      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
+      end
 
 
       # Actions
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/rb-kqueue/native.rb new/lib/rb-kqueue/native.rb
--- old/lib/rb-kqueue/native.rb 2015-05-01 01:07:17.000000000 +0200
+++ new/lib/rb-kqueue/native.rb 2017-05-16 15:42:31.000000000 +0200
@@ -13,13 +13,39 @@
     #
     # @private
     class KEvent < FFI::Struct
-      layout(
-        :ident,  :uintptr_t,
-        :filter, :int16,
-        :flags,  :uint16,
-        :fflags, :uint32,
-        :data,   :intptr_t,
-        :udata,  :pointer)
+      if FFI::Platform::IS_FREEBSD
+        layout(
+          :ident,  :uintptr_t,
+          :filter, :short,
+          :flags,  :u_short,
+          :fflags, :u_int,
+          :data,   :intptr_t,
+          :udata,  :pointer)
+      elsif FFI::Platform::IS_NETBSD
+        layout(
+          :ident,  :uintptr_t,
+          :filter, :uint32_t,
+          :flags,  :uint32_t,
+          :fflags, :uint32_t,
+          :data,   :int64_t,
+          :udata,  :pointer)
+      elsif FFI::Platform::IS_OPENBSD
+        layout(
+          :ident,  :__uintptr_t,
+          :filter, :short,
+          :flags,  :u_short,
+          :fflags, :u_int,
+          :data,   :quad_t,
+          :udata,  :pointer)
+      else
+        layout(
+          :ident,  :uintptr_t,
+          :filter, :int16,
+          :flags,  :uint16,
+          :fflags, :uint32,
+          :data,   :intptr_t,
+          :udata,  :pointer)
+      end
     end
 
     # The C struct describing a timeout.
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        2015-05-01 01:07:17.000000000 +0200
+++ new/lib/rb-kqueue/version.rb        2017-05-16 15:42:31.000000000 +0200
@@ -1,3 +1,3 @@
 module KQueue
-  VERSION = [0, 2, 4]
+  VERSION = [0, 2, 5]
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2015-05-01 01:07:17.000000000 +0200
+++ new/metadata        2017-05-16 15:42:31.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: rb-kqueue
 version: !ruby/object:Gem::Version
-  version: 0.2.4
+  version: 0.2.5
 platform: ruby
 authors:
 - Mathieu Arnold
@@ -9,36 +9,50 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2015-05-01 00:00:00.000000000 Z
+date: 2017-05-16 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
+- !ruby/object:Gem::Dependency
+  name: rspec
+  requirement: !ruby/object:Gem::Requirement
+    requirements:
+    - - ">="
+      - !ruby/object:Gem::Version
+        version: 3.3.0
+  type: :development
+  prerelease: false
+  version_requirements: !ruby/object:Gem::Requirement
+    requirements:
+    - - ">="
+      - !ruby/object:Gem::Version
+        version: 3.3.0
 description: A Ruby wrapper for BSD's kqueue, using FFI
 email: m...@mat.cc nex...@gmail.com
 executables: []
@@ -46,8 +60,9 @@
 extra_rdoc_files:
 - README.md
 files:
-- .gitignore
-- .yardopts
+- ".gitignore"
+- ".rspec"
+- ".yardopts"
 - Gemfile
 - MIT-LICENSE
 - README.md
@@ -67,29 +82,33 @@
 - lib/rb-kqueue/watcher/socket_read_write.rb
 - lib/rb-kqueue/watcher/timer.rb
 - rb-kqueue.gemspec
+- spec/kqueue_queue_spec.rb
+- spec/spec_helper.rb
 homepage: http://github.com/mat813/rb-kqueue
 licenses:
 - MIT
 metadata: {}
 post_install_message: 
 rdoc_options:
-- --charset=UTF-8
+- "--charset=UTF-8"
 require_paths:
 - 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.2.2
+rubygems_version: 2.4.8
 signing_key: 
 specification_version: 4
 summary: A Ruby wrapper for BSD's kqueue, using FFI
-test_files: []
+test_files:
+- spec/kqueue_queue_spec.rb
+- spec/spec_helper.rb
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rb-kqueue.gemspec new/rb-kqueue.gemspec
--- old/rb-kqueue.gemspec       2015-05-01 01:07:17.000000000 +0200
+++ new/rb-kqueue.gemspec       2017-05-16 15:42:31.000000000 +0200
@@ -11,7 +11,7 @@
 
   gem.authors = ["Mathieu Arnold", "Nathan Weizenbaum"]
   gem.email = %q{m...@mat.cc nex...@gmail.com}
-  gem.date = %q{2015-05-01}
+  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']
@@ -28,5 +28,6 @@
 
   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       1970-01-01 01:00:00.000000000 +0100
+++ new/spec/kqueue_queue_spec.rb       2017-05-16 15:42:31.000000000 +0200
@@ -0,0 +1,32 @@
+require_relative '../lib/rb-kqueue'
+require 'tempfile'
+require 'pathname'
+
+RSpec.describe KQueue::Queue do
+  describe '#watch_file' do
+    let(:file_touched) { false }
+    let(:queue) { KQueue::Queue.new }
+    let(:file) { Tempfile.new 'rb-kqueue_test', 
Pathname(__dir__).parent.join('tmp') }
+
+    context 'file is watched for writes' do
+      before do
+       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
+      end
+    end
+
+    context 'file is watched for reads' do
+    end
+
+    context 'file is not watched' do
+    end
+  end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/spec_helper.rb new/spec/spec_helper.rb
--- old/spec/spec_helper.rb     1970-01-01 01:00:00.000000000 +0100
+++ new/spec/spec_helper.rb     2017-05-16 15:42:31.000000000 +0200
@@ -0,0 +1,96 @@
+# This file was generated by the `rspec --init` command. Conventionally, all
+# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
+# The generated `.rspec` file contains `--require spec_helper` which will cause
+# this file to always be loaded, without a need to explicitly require it in any
+# files.
+#
+# Given that it is always loaded, you are encouraged to keep this file as
+# light-weight as possible. Requiring heavyweight dependencies from this file
+# will add to the boot time of your test suite on EVERY test run, even for an
+# individual file that may not need all of that loaded. Instead, consider 
making
+# a separate helper file that requires the additional dependencies and performs
+# the additional setup, and require it from the spec files that actually need
+# it.
+#
+# The `.rspec` file also contains a few flags that are not defaults but that
+# users commonly want.
+#
+# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
+RSpec.configure do |config|
+  # rspec-expectations config goes here. You can use an alternate
+  # assertion/expectation library such as wrong or the stdlib/minitest
+  # assertions if you prefer.
+  config.expect_with :rspec do |expectations|
+    # This option will default to `true` in RSpec 4. It makes the `description`
+    # and `failure_message` of custom matchers include text for helper methods
+    # defined using `chain`, e.g.:
+    #     be_bigger_than(2).and_smaller_than(4).description
+    #     # => "be bigger than 2 and smaller than 4"
+    # ...rather than:
+    #     # => "be bigger than 2"
+    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
+  end
+
+  # rspec-mocks config goes here. You can use an alternate test double
+  # library (such as bogus or mocha) by changing the `mock_with` option here.
+  config.mock_with :rspec do |mocks|
+    # Prevents you from mocking or stubbing a method that does not exist on
+    # a real object. This is generally recommended, and will default to
+    # `true` in RSpec 4.
+    mocks.verify_partial_doubles = true
+  end
+
+# The settings below are suggested to provide a good initial experience
+# with RSpec, but feel free to customize to your heart's content.
+=begin
+  # These two settings work together to allow you to limit a spec run
+  # to individual examples or groups you care about by tagging them with
+  # `:focus` metadata. When nothing is tagged with `:focus`, all examples
+  # get run.
+  config.filter_run :focus
+  config.run_all_when_everything_filtered = true
+
+  # Allows RSpec to persist some state between runs in order to support
+  # the `--only-failures` and `--next-failure` CLI options. We recommend
+  # you configure your source control system to ignore this file.
+  config.example_status_persistence_file_path = "spec/examples.txt"
+
+  # Limits the available syntax to the non-monkey patched syntax that is
+  # recommended. For more details, see:
+  #   - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
+  #   - 
http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
+  #   - 
http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
+  config.disable_monkey_patching!
+
+  # This setting enables warnings. It's recommended, but in some cases may
+  # be too noisy due to issues in dependencies.
+  config.warnings = true
+
+  # Many RSpec users commonly either run the entire suite or an individual
+  # file, and it's useful to allow more verbose output when running an
+  # individual spec file.
+  if config.files_to_run.one?
+    # Use the documentation formatter for detailed output,
+    # unless a formatter has already been configured
+    # (e.g. via a command-line flag).
+    config.default_formatter = 'doc'
+  end
+
+  # Print the 10 slowest examples and example groups at the
+  # end of the spec run, to help surface which specs are running
+  # particularly slow.
+  config.profile_examples = 10
+
+  # Run specs in random order to surface order dependencies. If you find an
+  # order dependency and want to debug it, you can fix the order by providing
+  # the seed, which is printed after each run.
+  #     --seed 1234
+  config.order = :random
+
+  # Seed global randomization in this process using the `--seed` CLI option.
+  # Setting this allows you to use `--seed` to deterministically reproduce
+  # test failures related to randomization by passing the same `--seed` value
+  # as the one that triggered the failure.
+  Kernel.srand config.seed
+=end
+end


Reply via email to