observr 1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +1 -1
- data/lib/observr.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTRlNzQ3NGIyZmRmMjUzNmEwMzUwYTUxMzVlYzQ5ZmUzZTA2NTBmMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTdmYzNmMzI1NjE2YWQxNmY0OTViNzA3YTE5YzY4YmM4MzdhZTgyOQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzI1YTQyODMyMDBiMGY3NGQ3ZTJiNWE2NTE0NTE2ZjQ3ZjQxMGZlYTg4N2Jk
|
10
|
+
NjA2NjcxNDA1MGE0YWZlMzAzYjQ0NjZlOGUzNzliOTQxMjRjNzI4MjRmNzRj
|
11
|
+
NmQ4ZmRjYjJhMjY3NzFjNmY2ZWU5YjUxMWJjYWNjNzNlZmIzZDM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTNjYzk5NGNhMmE1YTk3NGZjODQ4MDhmYmQ0ZDgxNWZiYjcxNTRlZjYxMGNj
|
14
|
+
MTM5ZTJkMTg2ZWYwMzIzYjZhOWQ3OWJiMzI0NDE4NWE1YTg1YzEzZGM0Mzcx
|
15
|
+
ZjBmZmY3ZGU1MWZhZGM5ODdkYzI2MTQ2OTcyODY1YzRkNTMwZDU=
|
data/README.md
CHANGED
@@ -109,7 +109,7 @@ Links
|
|
109
109
|
[1]: http://github.com/kevinburke/observr/blob/master/specs.observr
|
110
110
|
[2]: http://github.com/kevinburke/observr/blob/master/docs.observr
|
111
111
|
[3]: http://github.com/kevinburke/observr/blob/master/gem.observr
|
112
|
-
[4]: http://
|
112
|
+
[4]: http://rev.rubyforge.org/rdoc/
|
113
113
|
[5]: http://wiki.github.com/mynyml/observr
|
114
114
|
[6]: http://github.com/mynyml/redgreen
|
115
115
|
[7]: http://github.com/mynyml/phocus
|
data/lib/observr.rb
CHANGED
@@ -14,12 +14,12 @@ require 'rbconfig'
|
|
14
14
|
#
|
15
15
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
16
16
|
module Observr
|
17
|
-
VERSION = '1.0'
|
17
|
+
VERSION = '1.0.1'
|
18
18
|
|
19
19
|
begin
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
require 'fsevent'
|
21
|
+
HAVE_FSE = true
|
22
|
+
rescue LoadError, RuntimeError
|
23
23
|
HAVE_FSE = false
|
24
24
|
end
|
25
25
|
|
@@ -108,7 +108,7 @@ module Observr
|
|
108
108
|
#
|
109
109
|
def handler
|
110
110
|
@handler ||=
|
111
|
-
case ENV['HANDLER'] ||
|
111
|
+
case ENV['HANDLER'] || RbConfig::CONFIG['host_os']
|
112
112
|
when /darwin|mach|osx|fsevents?/i
|
113
113
|
if Observr::HAVE_FSE
|
114
114
|
Observr::EventHandler::Darwin
|