rb-inotify 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MjdkMDg4NDNjNGI0ZWY5ZWU0MGY5ZDlkMDE0NTljYTdjZjhkOWE5NQ==
5
- data.tar.gz: !binary |-
6
- NjNiOGM3MzlhZWRiMWM3NzQyMTRjZTFiYzgwNGQyOTFlOTBkOTVlOQ==
2
+ SHA1:
3
+ metadata.gz: b8bfbc849234644754ef17ee3c69eb44712c59a6
4
+ data.tar.gz: fb589b6683906a14828beda595056d5ce5a129fe
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- OTVjMWMyYjE3ZDc3MmM0NDQ5NDY3MzAyZDNkMTllYTQyMjNjMWFjMzc0NDkz
10
- Yzg4YjY0ZjdmZDExYTY4MDBmMDNjNjAyYTIzYTAzNTdhMDc0YWVmMTlkNzcy
11
- NmNmNTYyNWE4YTAwN2Y1NmQ0YjAwZmJjNDQ1MWViYzc4NTdmN2Y=
12
- data.tar.gz: !binary |-
13
- M2UwMjc1M2EyZTYyM2FmZDZlYjE2OTYzNzQ3MmUyOGY5MmUyOTc5MDliNGUz
14
- ZDYxYzdlNzdhNWQ4ZjU0ZjE2NzhiMjc5MzNhMzFkN2E4YTNiMWM3ZjI4OWJk
15
- YjZlMTQ4ZDBlNGI3ZWRmYTNlMDNhYzFiYzgwMWFiNWVkZmQyMzU=
6
+ metadata.gz: d7e8ae116d90c6ff2dd1e56dc9ad132f05833f67a2629284759f1086a7fc7eeb28a0193d82edd061b8c7c245d3193da41ce3c015030df52199fb3bde0ef2ad62
7
+ data.tar.gz: 1fc4a3584ece0192eb2a90e061bf9eb7274e6e746373dd01942c17f16b728935461f6fce894346a9c61aee68dd2abfb0c35c1c4766fe7353e7ff0e9c0306d272
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.7
1
+ 0.9.8
@@ -14,5 +14,5 @@ module INotify
14
14
  # An array containing the version number of rb-inotify.
15
15
  # The numbers in the array are the major, minor, and patch versions,
16
16
  # respectively.
17
- VERSION = [0, 9, 7]
17
+ VERSION = [0, 9, 8]
18
18
  end
@@ -125,7 +125,7 @@ module INotify
125
125
  #
126
126
  # @private
127
127
  def callback!
128
- watcher.callback!(self)
128
+ watcher && watcher.callback!(self)
129
129
  end
130
130
 
131
131
  # Returns the size of this event object in bytes,
@@ -9,6 +9,10 @@ module INotify
9
9
  module Native
10
10
  extend FFI::Library
11
11
  ffi_lib FFI::Library::LIBC
12
+ begin
13
+ ffi_lib 'inotify'
14
+ rescue LoadError
15
+ end
12
16
 
13
17
  # The C struct describing an inotify event.
14
18
  #
@@ -195,7 +195,11 @@ module INotify
195
195
  d = File.join(path, base)
196
196
  binary_d = d.respond_to?(:force_encoding) ? d.dup.force_encoding('BINARY') : d
197
197
  next if binary_d =~ /\/\.\.?$/ # Current or parent directory
198
- watch(d, *flags, &callback) if !RECURSIVE_BLACKLIST.include?(d) && File.directory?(d)
198
+ next if RECURSIVE_BLACKLIST.include?(d)
199
+ next if flags.include?(:dont_follow) && File.symlink?(d)
200
+ next if !File.directory?(d)
201
+
202
+ watch(d, *flags, &callback)
199
203
  end
200
204
 
201
205
  dir.close
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: rb-inotify 0.9.7 ruby lib
5
+ # stub: rb-inotify 0.9.8 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "rb-inotify"
9
- s.version = "0.9.7"
9
+ s.version = "0.9.8"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Nathan Weizenbaum"]
14
- s.date = "2016-02-08"
14
+ s.date = "2017-01-26"
15
15
  s.description = "A Ruby wrapper for Linux's inotify, using FFI"
16
16
  s.email = "nex342@gmail.com"
17
17
  s.extra_rdoc_files = [
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
33
33
  "rb-inotify.gemspec"
34
34
  ]
35
35
  s.homepage = "http://github.com/nex3/rb-inotify"
36
- s.rubygems_version = "2.4.3"
36
+ s.rubygems_version = "2.4.8"
37
37
  s.summary = "A Ruby wrapper for Linux's inotify, using FFI"
38
38
 
39
39
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb-inotify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-08 00:00:00.000000000 Z
11
+ date: 2017-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.5.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.5.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: yard
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.4.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.4.0
41
41
  description: A Ruby wrapper for Linux's inotify, using FFI
@@ -45,7 +45,7 @@ extensions: []
45
45
  extra_rdoc_files:
46
46
  - README.md
47
47
  files:
48
- - .yardopts
48
+ - ".yardopts"
49
49
  - MIT-LICENSE
50
50
  - README.md
51
51
  - Rakefile
@@ -67,17 +67,17 @@ require_paths:
67
67
  - lib
68
68
  required_ruby_version: !ruby/object:Gem::Requirement
69
69
  requirements:
70
- - - ! '>='
70
+ - - ">="
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - ! '>='
75
+ - - ">="
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
79
  rubyforge_project:
80
- rubygems_version: 2.4.3
80
+ rubygems_version: 2.4.8
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: A Ruby wrapper for Linux's inotify, using FFI