Hello community, here is the log from the commit of package rubygem-rb-inotify for openSUSE:Factory checked in at 2017-07-10 11:07:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-rb-inotify (Old) and /work/SRC/openSUSE:Factory/.rubygem-rb-inotify.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rb-inotify" Mon Jul 10 11:07:00 2017 rev:4 rq:505383 version:0.9.10 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-rb-inotify/rubygem-rb-inotify.changes 2017-04-11 09:31:17.446658626 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rb-inotify.new/rubygem-rb-inotify.changes 2017-07-10 11:07:00.619464485 +0200 @@ -1,0 +2,6 @@ +Tue Jun 20 06:56:34 UTC 2017 - co...@suse.com + +- updated to version 0.9.10 + no changelog found + +------------------------------------------------------------------- Old: ---- rb-inotify-0.9.8.gem New: ---- rb-inotify-0.9.10.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-rb-inotify.spec ++++++ --- /var/tmp/diff_new_pack.FE3V1v/_old 2017-07-10 11:07:01.151389366 +0200 +++ /var/tmp/diff_new_pack.FE3V1v/_new 2017-07-10 11:07:01.151389366 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-rb-inotify -Version: 0.9.8 +Version: 0.9.10 Release: 0 %define mod_name rb-inotify %define mod_full_name %{mod_name}-%{version} @@ -32,15 +32,15 @@ BuildRequires: %{rubygem gem2rpm} BuildRequires: %{ruby} BuildRequires: ruby-macros >= 5 -Url: http://github.com/nex3/rb-inotify +Url: https://github.com/guard/rb-inotify Source: http://rubygems.org/gems/%{mod_full_name}.gem Source1: gem2rpm.yml -Summary: A Ruby wrapper for Linux's inotify, using FFI +Summary: A Ruby wrapper for Linux inotify, using FFI License: MIT Group: Development/Languages/Ruby %description -A Ruby wrapper for Linux's inotify, using FFI. +A Ruby wrapper for Linux inotify, using FFI. %prep @@ -48,7 +48,7 @@ %install %gem_install \ - --doc-files="MIT-LICENSE README.md" \ + --doc-files="README.md" \ -f %gem_packages ++++++ rb-inotify-0.9.8.gem -> rb-inotify-0.9.10.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2017-06-18 01:28:26.000000000 +0200 @@ -0,0 +1,19 @@ +*.gem +*.rbc +.bundle +.config +.yardoc +Gemfile.lock +InstalledFiles +_yardoc +coverage +doc/ +lib/bundler/man +pkg +rdoc +spec/reports +test/tmp +test/version_tmp +tmp +.tags* +.rspec_status \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/.travis.yml 2017-06-18 01:28:26.000000000 +0200 @@ -0,0 +1,30 @@ +language: ruby +sudo: false +dist: trusty +cache: bundler +rvm: + - 1.8 + - 1.9 + - 2.0 + - 2.1 + - 2.2 + - 2.3 + - 2.4 + - jruby-head + - ruby-head + - jruby-9.1.8.0 + - jruby-head + - rbx-3 +matrix: + allow_failures: + - rvm: ruby-head + - rvm: jruby-head + - rvm: rbx-3 + fast_finish: true +script: + # Unit test + - bundle exec rake + # Install test + - gem build rb-inotify.gemspec + - gem install rb-inotify-*.gem + - sh -c "gem list | grep rb-inotify" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile --- old/Gemfile 1970-01-01 01:00:00.000000000 +0100 +++ new/Gemfile 2017-06-18 01:28:26.000000000 +0200 @@ -0,0 +1,3 @@ +source 'https://rubygems.org' + +gemspec diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MIT-LICENSE new/MIT-LICENSE --- old/MIT-LICENSE 2017-01-27 00:28:55.000000000 +0100 +++ new/MIT-LICENSE 1970-01-01 01:00:00.000000000 +0100 @@ -1,20 +0,0 @@ -Copyright (c) 2009 Nathan Weizenbaum - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2017-01-27 00:28:55.000000000 +0100 +++ new/README.md 2017-06-18 01:28:26.000000000 +0200 @@ -6,6 +6,10 @@ [API documentation is available on rdoc.info](http://rdoc.info/projects/nex3/rb-inotify). +[![Build Status](https://secure.travis-ci.org/guard/rb-inotify.svg)](http://travis-ci.org/guard/rb-inotify) +[![Code Climate](https://codeclimate.com/github/guard/rb-inotify.svg)](https://codeclimate.com/github/guard/rb-inotify) +[![Coverage Status](https://coveralls.io/repos/guard/rb-inotify/badge.svg)](https://coveralls.io/r/guard/rb-inotify) + ## Basic Usage The API is similar to the inotify C API, but with a more Rubyish feel. @@ -64,3 +68,36 @@ Unfortunately, this currently doesn't work under JRuby. JRuby currently doesn't use native file descriptors for the IO object, so we can't use the notifier's file descriptor as a stand-in. + +## Contributing + +1. Fork it +2. Create your feature branch (`git checkout -b my-new-feature`) +3. Commit your changes (`git commit -am 'Add some feature'`) +4. Push to the branch (`git push origin my-new-feature`) +5. Create new Pull Request + +## License + +Released under the MIT license. + +Copyright, 2009, by Nathan Weizenbaum. +Copyright, 2017, by [Samuel G. D. Williams](http://www.codeotaku.com/samuel-williams). + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Rakefile new/Rakefile --- old/Rakefile 2017-01-27 00:28:55.000000000 +0100 +++ new/Rakefile 2017-06-18 01:28:26.000000000 +0200 @@ -1,54 +1,14 @@ -require 'rubygems' -require 'rake' +require "bundler/gem_tasks" +require 'rspec/core/rake_task' -begin - require 'jeweler' - Jeweler::Tasks.new do |gem| - gem.name = "rb-inotify" - gem.summary = "A Ruby wrapper for Linux's inotify, using FFI" - gem.description = gem.summary - gem.email = "nex...@gmail.com" - gem.homepage = "http://github.com/nex3/rb-inotify" - gem.authors = ["Nathan Weizenbaum"] - gem.add_dependency "ffi", ">= 0.5.0" - gem.add_development_dependency "yard", ">= 0.4.0" - end - Jeweler::GemcutterTasks.new -rescue LoadError - puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" -end - -task(:permissions) {sh %{chmod -R a+r .}} -Rake::Task[:build].prerequisites.unshift('permissions') +RSpec::Core::RakeTask.new(:spec) -module Jeweler::VersionHelper::PlaintextExtension - def write_with_inotify - write_without_inotify - filename = File.join(File.dirname(__FILE__), "lib/rb-inotify.rb") - text = File.read(filename) - File.open(filename, 'w') do |f| - f.write text.gsub(/^( VERSION = ).*/, '\1' + [major, minor, patch].inspect) - end - end - alias_method :write_without_inotify, :write - alias_method :write, :write_with_inotify -end - -class Jeweler::Commands::Version::Base - def commit_version_with_inotify - return unless self.repo - self.repo.add(File.join(File.dirname(__FILE__), "lib/rb-inotify.rb")) - commit_version_without_inotify - end - alias_method :commit_version_without_inotify, :commit_version - alias_method :commit_version, :commit_version_with_inotify -end +desc "Run tests" +task :default => :spec -begin - require 'yard' - YARD::Rake::YardocTask.new -rescue LoadError - task :yardoc do - abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard" - end +task :console do + require 'rb-inotify' + require 'pry' + + binding.pry end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/VERSION new/VERSION --- old/VERSION 2017-01-27 00:28:55.000000000 +0100 +++ new/VERSION 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -0.9.8 \ No newline at end of file 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-inotify/native/flags.rb new/lib/rb-inotify/native/flags.rb --- old/lib/rb-inotify/native/flags.rb 2017-01-27 00:28:55.000000000 +0100 +++ new/lib/rb-inotify/native/flags.rb 2017-06-18 01:28:26.000000000 +0200 @@ -65,6 +65,11 @@ # Event occurred against dir. IN_ISDIR = 0x40000000 + ## fpathconf Macros + + # returns the maximum length of a filename in the directory path or fd that the process is allowed to create. The corresponding macro is _POSIX_NAME_MAX. + PC_NAME_MAX = 3 + # Converts a list of flags to the bitmask that the C API expects. # # @param flags [Array<Symbol>] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rb-inotify/native.rb new/lib/rb-inotify/native.rb --- old/lib/rb-inotify/native.rb 2017-01-27 00:28:55.000000000 +0100 +++ new/lib/rb-inotify/native.rb 2017-06-18 01:28:26.000000000 +0200 @@ -28,6 +28,7 @@ attach_function :inotify_init, [], :int attach_function :inotify_add_watch, [:int, :string, :uint32], :int attach_function :inotify_rm_watch, [:int, :uint32], :int + attach_function :fpathconf, [:int, :int], :long attach_function :read, [:int, :pointer, :size_t], :ssize_t attach_function :close, [:int], :int 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 2017-01-27 00:28:55.000000000 +0100 +++ new/lib/rb-inotify/notifier.rb 2017-06-18 01:28:26.000000000 +0200 @@ -239,7 +239,10 @@ # # @see #run def process - read_events.each {|event| event.callback!} + read_events.each do |event| + event.callback! + event.flags.include?(:ignored) && event.notifier.watchers.delete(event.watcher_id) + end end # Close the notifier. @@ -268,7 +271,7 @@ # # {#run} or {#process} are ususally preferable to calling this directly. def read_events - size = 64 * Native::Event.size + size = Native::Event.size + Native.fpathconf(fd, Native::Flags::PC_NAME_MAX) + 1 tries = 1 begin @@ -302,10 +305,14 @@ # Use Ruby's readpartial if possible, to avoid blocking other threads. begin return to_io.readpartial(size) if self.class.supports_ruby_io? - rescue Errno::EBADF + rescue Errno::EBADF, IOError # If the IO has already been closed, reading from it will cause - # Errno::EBADF. + # Errno::EBADF. In JRuby it can raise IOError with invalid or + # closed file descriptor. return nil + rescue IOError => ex + return nil if ex.message =~ /stream closed/ + raise end tries = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rb-inotify/version.rb new/lib/rb-inotify/version.rb --- old/lib/rb-inotify/version.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/lib/rb-inotify/version.rb 2017-06-18 01:28:26.000000000 +0200 @@ -0,0 +1,24 @@ +# Copyright, 2012, by Natalie Weizenbaum. +# Copyright, 2017, by Samuel G. D. Williams. <http://www.codeotaku.com> +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + +module INotify + VERSION = '0.9.10' +end 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 2017-01-27 00:28:55.000000000 +0100 +++ new/lib/rb-inotify.rb 2017-06-18 01:28:26.000000000 +0200 @@ -1,3 +1,4 @@ +require 'rb-inotify/version' require 'rb-inotify/native' require 'rb-inotify/native/flags' require 'rb-inotify/notifier' @@ -11,8 +12,4 @@ # * {Watcher} -- A watcher for a single file or directory # * {Event} -- An filesystem event notification module INotify - # 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, 8] end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2017-01-27 00:28:55.000000000 +0100 +++ new/metadata 2017-06-18 01:28:26.000000000 +0200 @@ -1,14 +1,15 @@ --- !ruby/object:Gem::Specification name: rb-inotify version: !ruby/object:Gem::Version - version: 0.9.8 + version: 0.9.10 platform: ruby authors: -- Nathan Weizenbaum +- Natalie Weizenbaum +- Samuel Williams autorequire: bindir: bin cert_chain: [] -date: 2017-01-26 00:00:00.000000000 Z +date: 2017-06-17 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: ffi @@ -17,6 +18,9 @@ - - ">=" - !ruby/object:Gem::Version version: 0.5.0 + - - "<" + - !ruby/object:Gem::Version + version: '2' type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement @@ -24,42 +28,86 @@ - - ">=" - !ruby/object:Gem::Version version: 0.5.0 + - - "<" + - !ruby/object:Gem::Version + version: '2' +- !ruby/object:Gem::Dependency + name: rspec + requirement: !ruby/object:Gem::Requirement + requirements: + - - "~>" + - !ruby/object:Gem::Version + version: '3.4' + type: :development + prerelease: false + version_requirements: !ruby/object:Gem::Requirement + requirements: + - - "~>" + - !ruby/object:Gem::Version + version: '3.4' - !ruby/object:Gem::Dependency - name: yard + name: bundler + requirement: !ruby/object:Gem::Requirement + requirements: + - - "~>" + - !ruby/object:Gem::Version + version: '1.3' + type: :development + prerelease: false + version_requirements: !ruby/object:Gem::Requirement + requirements: + - - "~>" + - !ruby/object:Gem::Version + version: '1.3' +- !ruby/object:Gem::Dependency + name: rake requirement: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version - version: 0.4.0 + version: 10.5.0 + - - "<" + - !ruby/object:Gem::Version + version: '13' 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 -email: nex...@gmail.com + version: 10.5.0 + - - "<" + - !ruby/object:Gem::Version + version: '13' +description: +email: +- nex...@gmail.com +- samuel.willi...@oriontransfer.co.nz executables: [] extensions: [] -extra_rdoc_files: -- README.md +extra_rdoc_files: [] files: +- ".gitignore" +- ".travis.yml" - ".yardopts" -- MIT-LICENSE +- Gemfile - README.md - 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 - lib/rb-inotify/notifier.rb +- lib/rb-inotify/version.rb - lib/rb-inotify/watcher.rb - rb-inotify.gemspec -homepage: http://github.com/nex3/rb-inotify -licenses: [] +- spec/rb-inotify/errors_spec.rb +- spec/rb-inotify_spec.rb +- spec/spec_helper.rb +homepage: https://github.com/guard/rb-inotify +licenses: +- MIT metadata: {} post_install_message: rdoc_options: [] @@ -77,8 +125,11 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.4.8 +rubygems_version: 2.6.10 signing_key: specification_version: 4 -summary: A Ruby wrapper for Linux's inotify, using FFI -test_files: [] +summary: A Ruby wrapper for Linux inotify, using FFI +test_files: +- spec/rb-inotify/errors_spec.rb +- spec/rb-inotify_spec.rb +- spec/spec_helper.rb diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rb-inotify.gemspec new/rb-inotify.gemspec --- old/rb-inotify.gemspec 2017-01-27 00:28:55.000000000 +0100 +++ new/rb-inotify.gemspec 2017-06-18 01:28:26.000000000 +0200 @@ -1,54 +1,30 @@ -# Generated by jeweler -# DO NOT EDIT THIS FILE DIRECTLY -# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec' # -*- encoding: utf-8 -*- -# stub: rb-inotify 0.9.8 ruby lib -Gem::Specification.new do |s| - s.name = "rb-inotify" - s.version = "0.9.8" - - 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 = "2017-01-26" - s.description = "A Ruby wrapper for Linux's inotify, using FFI" - s.email = "nex...@gmail.com" - s.extra_rdoc_files = [ - "README.md" - ] - s.files = [ - ".yardopts", - "MIT-LICENSE", - "README.md", - "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", - "lib/rb-inotify/notifier.rb", - "lib/rb-inotify/watcher.rb", - "rb-inotify.gemspec" - ] - s.homepage = "http://github.com/nex3/rb-inotify" - s.rubygems_version = "2.4.8" - s.summary = "A Ruby wrapper for Linux's inotify, using FFI" - - if s.respond_to? :specification_version then - s.specification_version = 4 - - if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then - s.add_runtime_dependency(%q<ffi>, [">= 0.5.0"]) - s.add_development_dependency(%q<yard>, [">= 0.4.0"]) - else - s.add_dependency(%q<ffi>, [">= 0.5.0"]) - s.add_dependency(%q<yard>, [">= 0.4.0"]) - end - else - s.add_dependency(%q<ffi>, [">= 0.5.0"]) - s.add_dependency(%q<yard>, [">= 0.4.0"]) - end -end +$LOAD_PATH.unshift File.expand_path('../lib', __FILE__) +require 'rb-inotify/version' + +Gem::Specification.new do |spec| + spec.name = 'rb-inotify' + spec.version = INotify::VERSION + spec.platform = Gem::Platform::RUBY + + spec.summary = 'A Ruby wrapper for Linux inotify, using FFI' + spec.authors = ['Natalie Weizenbaum', 'Samuel Williams'] + spec.email = ['nex...@gmail.com', 'samuel.willi...@oriontransfer.co.nz'] + spec.homepage = 'https://github.com/guard/rb-inotify' + spec.licenses = ['MIT'] + + spec.files = `git ls-files`.split($/) + spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } + spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) + spec.require_paths = ["lib"] + spec.required_ruby_version = '>= 0' + + spec.add_dependency 'ffi', '>= 0.5.0', '< 2' + + spec.add_development_dependency "rspec", "~> 3.4" + spec.add_development_dependency "bundler", "~> 1.3" + # rake 11.x requires Ruby >= 1.9.3 + spec.add_development_dependency "rake", ">= 10.5.0", "< 13" +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/rb-inotify/errors_spec.rb new/spec/rb-inotify/errors_spec.rb --- old/spec/rb-inotify/errors_spec.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/spec/rb-inotify/errors_spec.rb 2017-06-18 01:28:26.000000000 +0200 @@ -0,0 +1,9 @@ +require 'spec_helper' + +describe INotify do + describe "QueueOverflowError" do + it "exists" do + expect(INotify::QueueOverflowError).to be_truthy + end + end +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/rb-inotify_spec.rb new/spec/rb-inotify_spec.rb --- old/spec/rb-inotify_spec.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/spec/rb-inotify_spec.rb 2017-06-18 01:28:26.000000000 +0200 @@ -0,0 +1,9 @@ +require 'spec_helper' + +describe INotify do + describe "version" do + it "exists" do + expect(INotify::VERSION).to be_truthy + 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-06-18 01:28:26.000000000 +0200 @@ -0,0 +1,12 @@ + +require "bundler/setup" +require "rb-inotify" + +RSpec.configure do |config| + # Enable flags like --only-failures and --next-failure + config.example_status_persistence_file_path = ".rspec_status" + + config.expect_with :rspec do |c| + c.syntax = :expect + end +end