autotest-mac 0.1.1 → 0.1.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.
- data/History.txt +5 -0
- data/README.rdoc +10 -2
- data/lib/autotest-mac.rb +2 -2
- metadata +1 -1
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
= Autotest
|
1
|
+
= Autotest Mac
|
2
2
|
|
3
3
|
* Homepage: http://www.bitcetera.com/products/autotest-mac
|
4
4
|
* Issues and forum: https://forge.bitcetera.com/projects/show/autotest-mac
|
@@ -21,6 +21,9 @@ which is a very efficient way to have the operating system monitor file
|
|
21
21
|
alterations. This gem teaches autotest to use FSEvent and therefore be nice
|
22
22
|
to your Mac.
|
23
23
|
|
24
|
+
Unlike other test runners for the Mac, autotest-mac does not replace but
|
25
|
+
extend autotest and does *not* require RubyCocoa to be installed.
|
26
|
+
|
24
27
|
=== Test/Scenario Results
|
25
28
|
|
26
29
|
With autotest-mac the terminal running autotest is cleared on every cycle. You
|
@@ -37,9 +40,11 @@ custom :waiting hooks.
|
|
37
40
|
|
38
41
|
The following directories are added as exceptions by mac-autotest and thus
|
39
42
|
won't be monitored:
|
43
|
+
* .git
|
40
44
|
* .svn
|
41
45
|
* .hg
|
42
|
-
* .
|
46
|
+
* .DS_Store
|
47
|
+
* ._*
|
43
48
|
* vendor
|
44
49
|
|
45
50
|
== REQUIREMENTS:
|
@@ -61,6 +66,9 @@ Then add the following line to the top of your ~/.autotest file:
|
|
61
66
|
Make sure Growl is installed on your computer. You can download it from
|
62
67
|
http://growl.info
|
63
68
|
|
69
|
+
The growlnotify utility (located inside the Extras folder) must be installed
|
70
|
+
as well.
|
71
|
+
|
64
72
|
A glitch in Growl 1.1.4 on Mac OS X 10.5 randomly prevents some notifications
|
65
73
|
from being displayed. A workaround is built into autotest-mac, however, you
|
66
74
|
have to perform some additional steps to make it work:
|
data/lib/autotest-mac.rb
CHANGED
@@ -11,7 +11,7 @@ end
|
|
11
11
|
|
12
12
|
module AutotestMac
|
13
13
|
|
14
|
-
VERSION = '0.1.
|
14
|
+
VERSION = '0.1.2'
|
15
15
|
GEM_DIR = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
16
16
|
|
17
17
|
module Autotest::Growl
|
@@ -86,7 +86,7 @@ module AutotestMac
|
|
86
86
|
##
|
87
87
|
# Use FSEvent if possible
|
88
88
|
Autotest.add_hook :waiting do |autotest|
|
89
|
-
if RUBY_PLATFORM.sub(/^.*?darwin(\d+)
|
89
|
+
if RUBY_PLATFORM.sub(/^.*?darwin(\d+).*$/, '\1').to_i >= 9 # Darwin 9 alias Mac OS X 10.5 or above only
|
90
90
|
`#{File.join(GEM_DIR, 'fsevent', 'fsevent_sleep')} '#{Dir.pwd}' 2>&1`
|
91
91
|
else
|
92
92
|
puts "\nautotest-mac: FSEvent not available, falling back to filesystem polling."
|