rb-fsevent 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b45289d17ae392fc4603c728ddd2e516b7eddde1
4
- data.tar.gz: 1a06cb592031e5d9537bbce90de4958ea5d4529d
3
+ metadata.gz: 9be5c4ae13fb2cbb29cbe12c4b699134de3ce674
4
+ data.tar.gz: b1c5cac61471cccc5ff7ba2c22eb2ba75c84a893
5
5
  SHA512:
6
- metadata.gz: 89c095ca2fff6ac7f62ce06d71888fb9813ee34bbda312ec257ec1dc68fdaf0f61d7aed880a72f25f3f52235965e8840860f1a47279e465569f42db46e2f4a56
7
- data.tar.gz: 9e6f1a6133b31fedabac98ae393ca7ad6bb0116ecf4913ea42f56b05d35f86f9f4ee6bb3c5c9a3a06d53dcf90f315e37e780e4c81c1eec4c70da471f2f1a156e
6
+ metadata.gz: 4f688b67b030dede85824f486ca368dfb43615f617241ca627ac789e57c96ac69ee2c9c88ed59867fafb0c86cccdb580de70ec4cd515196067b8dc38ba7fac6f
7
+ data.tar.gz: 8f559f14279c140110aecc64796b3794abc21aea6853b84bb9def642addba0a9544ac6ffe7db61a9371dc76b1ce3e694239e54b018d513ca62aab667195ec867
@@ -52,7 +52,7 @@ class FSEvent
52
52
 
53
53
  def stop
54
54
  unless @pipe.nil?
55
- Process.kill('KILL', @pipe.pid)
55
+ Process.kill('KILL', @pipe.pid) if process_running?(@pipe.pid)
56
56
  @pipe.close
57
57
  end
58
58
  rescue IOError
@@ -60,6 +60,15 @@ class FSEvent
60
60
  @running = false
61
61
  end
62
62
 
63
+ def process_running?(pid)
64
+ begin
65
+ Process.kill(0, pid)
66
+ true
67
+ rescue Errno::ESRCH
68
+ false
69
+ end
70
+ end
71
+
63
72
  if RUBY_VERSION < '1.9'
64
73
  def open_pipe
65
74
  IO.popen("'#{self.class.watcher_path}' #{options_string} #{shellescaped_paths}")
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  class FSEvent
4
- VERSION = '0.9.5'
4
+ VERSION = '0.9.6'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb-fsevent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thibaud Guillaume-Gentil
@@ -9,48 +9,48 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-20 00:00:00.000000000 Z
12
+ date: 2015-09-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ~>
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
20
  version: '1.0'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ~>
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: '1.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rspec
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ~>
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '2.11'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ~>
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '2.11'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: guard-rspec
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ~>
46
+ - - "~>"
47
47
  - !ruby/object:Gem::Version
48
48
  version: '4.2'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ~>
53
+ - - "~>"
54
54
  - !ruby/object:Gem::Version
55
55
  version: '4.2'
56
56
  description: FSEvents API with Signals catching (without RubyCocoa)
@@ -61,7 +61,7 @@ executables: []
61
61
  extensions: []
62
62
  extra_rdoc_files: []
63
63
  files:
64
- - .gitignore
64
+ - ".gitignore"
65
65
  - Gemfile
66
66
  - Guardfile
67
67
  - LICENSE.txt
@@ -100,17 +100,17 @@ require_paths:
100
100
  - lib
101
101
  required_ruby_version: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - '>='
103
+ - - ">="
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  requirements: []
112
112
  rubyforge_project:
113
- rubygems_version: 2.0.14
113
+ rubygems_version: 2.4.5.1
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Very simple & usable FSEvents API
@@ -120,3 +120,4 @@ test_files:
120
120
  - spec/fixtures/folder1/folder2/file2.txt
121
121
  - spec/rb-fsevent/fsevent_spec.rb
122
122
  - spec/spec_helper.rb
123
+ has_rdoc: