autotest-inotify 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/README.rdoc +7 -7
  2. data/lib/autotest/inotify.rb +5 -2
  3. metadata +3 -3
data/README.rdoc CHANGED
@@ -1,17 +1,17 @@
1
1
  = Autotest Inotify
2
2
 
3
- * Author: Eric A. Wollesen (http://kill-0.com)
3
+ * Author: Eric A. Wollesen (http://kill-0.com/duplo)
4
4
  * Homepage: http://kill-0.com/projects/autotest-inotify
5
5
 
6
6
  == DESCRIPTION:
7
7
 
8
8
  Autotest relies on filesystem polling to detect modifications in source code
9
9
  files. In other words: The filesytem is constantly being traversed which
10
- causes quite some load on both the CPU and the harddrive. This is not healthy
10
+ causes quite some load on both the CPU and the hard drive. This is not healthy
11
11
  for your machine and if you are working on a portable computer, it will drain
12
- your battery. Linux offers libinotify which is a very efficient way to have
13
- the operating system monitor file alterations. This gem teaches autotest to
14
- use libinotify and therefore be nice to your machine.
12
+ your battery. Linux offers inotify which is a very efficient way to have the
13
+ operating system monitor file alterations. This gem teaches autotest to use
14
+ inotify and therefore be nice to your machine.
15
15
 
16
16
  == REQUIREMENTS:
17
17
 
@@ -32,7 +32,7 @@ file:
32
32
 
33
33
  == THANK YOU:
34
34
 
35
- Inspiration for this gem came from work done by Alban Peignier's[1], and Sven
35
+ Inspiration for this gem came from work done by Alban Peignier[1], and Sven
36
36
  Schwyn[2]
37
37
 
38
38
  1. http://blog.tryphon.org/alban/archives/2007/10/26/inotify-support-for-autotest/
@@ -42,7 +42,7 @@ Schwyn[2]
42
42
 
43
43
  (The MIT License)
44
44
 
45
- Copyright (c) 2009 Eric A. Wollesen
45
+ Copyright (c) 2010 Eric A. Wollesen
46
46
 
47
47
  Permission is hereby granted, free of charge, to any person obtaining
48
48
  a copy of this software and associated documentation files (the
@@ -1,6 +1,7 @@
1
1
  # Extend autotest with inotify goodness
2
2
 
3
3
  require "rubygems"
4
+ require "ruby-debug"
4
5
  require "autotest"
5
6
  require "rbconfig"
6
7
  require "rb-inotify"
@@ -47,7 +48,9 @@ module Autotest::Inotify
47
48
  def find_files_to_test(files=nil)
48
49
  if first_time_run?
49
50
  setup_inotify
50
- select_all_tests
51
+ unless options[:no_full_after_start]
52
+ select_all_tests
53
+ end
51
54
  else
52
55
  p @changed_files if $v
53
56
  hook :updated, @changed_files
@@ -59,7 +62,7 @@ module Autotest::Inotify
59
62
  end
60
63
 
61
64
  def first_time_run?
62
- self.last_mtime.to_i.zero?
65
+ @notifier.nil?
63
66
  end
64
67
 
65
68
  def setup_inotify
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autotest-inotify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Wollesen
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-11 00:00:00 -07:00
12
+ date: 2010-03-11 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -72,6 +72,6 @@ rubyforge_project:
72
72
  rubygems_version: 1.3.5
73
73
  signing_key:
74
74
  specification_version: 3
75
- summary: Use libinotify (on Linux) instead of filesystem polling.
75
+ summary: Teaches autotest to use libinotify (on Linux) instead of filesystem polling.
76
76
  test_files: []
77
77