svoop-autotest-fsevent 0.1.1.3 → 0.1.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,8 +1,9 @@
1
1
  == edge
2
2
 
3
- * 2 minor improvement
3
+ * 3 minor improvement
4
4
  * Reset the postinstall text color to previous
5
5
  * Prepare for multi-platform extension
6
+ * Patch wait_for_changes to prevent fallback to polling (Darrick Wiebe)
6
7
 
7
8
  == 0.1.1 2009-06-02
8
9
 
data/README.rdoc CHANGED
@@ -60,6 +60,7 @@ http://github.com/guides/fork-a-project-and-submit-your-modifications
60
60
  Thanks to the following folks who have contributed to this project:
61
61
 
62
62
  * Harry Vangberg
63
+ * Darrick Wiebe
63
64
 
64
65
  == LICENSE:
65
66
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{autotest-fsevent}
5
- s.version = "0.1.1.3"
5
+ s.version = "0.1.1.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Sven Schwyn"]
9
- s.date = %q{2009-08-25}
9
+ s.date = %q{2009-09-02}
10
10
  s.description = %q{ZenTest's autotest relies on filesystem polling to detect modifications in source code files. This is expensive for the CPU, harddrive and battery - and unnecesary on Mac OS X 10.5 or higher which comes with the very efficient FSEvent core service for this purpose. This gem teaches autotest how to use FSEvent.}
11
11
  s.email = ["ruby@bitcetera.com"]
12
12
  s.extra_rdoc_files = ["History.txt", "Manifest.txt", "PostInstall.txt"]
@@ -3,6 +3,6 @@ $:.unshift(File.dirname(__FILE__)) unless
3
3
 
4
4
  module AutotestFSEvent
5
5
 
6
- VERSION = '0.1.1.3'
6
+ VERSION = '0.1.1.4'
7
7
 
8
8
  end
@@ -28,4 +28,17 @@ module Autotest::FSEvent
28
28
  end
29
29
  end
30
30
 
31
+ ##
32
+ # Add waiting hook to prevent fallback to polling after ignored files have changed
33
+ Autotest.add_hook :initialize do
34
+ class ::Autotest
35
+ def wait_for_changes
36
+ begin
37
+ hook :waiting
38
+ Kernel.sleep self.sleep
39
+ end until find_files_to_test
40
+ end
41
+ end
42
+ end
43
+
31
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svoop-autotest-fsevent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.3
4
+ version: 0.1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Schwyn
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-25 00:00:00 -07:00
12
+ date: 2009-09-02 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -72,7 +72,6 @@ files:
72
72
  - tasks/rspec.rake
73
73
  has_rdoc: false
74
74
  homepage: http://www.bitcetera.com/products/autotest-fsevent
75
- licenses:
76
75
  post_install_message: "\n\
77
76
  \e[1;32mIn order to use autotest-fsevent, the following line has to be added to\n\
78
77
  your ~/.autotest file:\n\n\
@@ -100,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
99
  requirements: []
101
100
 
102
101
  rubyforge_project: autotest-fsevent
103
- rubygems_version: 1.3.5
102
+ rubygems_version: 1.2.0
104
103
  signing_key:
105
104
  specification_version: 3
106
105
  summary: Use FSEvent (on Mac OS X 10.5 or higher) instead of filesystem polling.