autotest-fsevent 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/.rvmrc +1 -0
- data/CHANGELOG.txt +6 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +31 -0
- data/PostInstall.txt +14 -0
- data/README.rdoc +25 -26
- data/Rakefile +7 -0
- data/autotest-fsevent.gemspec +28 -0
- data/lib/autotest-fsevent.rb +4 -0
- data/lib/autotest-fsevent/version.rb +5 -0
- data/spec/spec_helper.rb +3 -3
- metadata +63 -32
data/.gitignore
ADDED
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm ruby-1.9.2-p0@autotest-fsevent
|
data/CHANGELOG.txt
CHANGED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
autotest-fsevent (0.2.4)
|
5
|
+
sys-uname
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
ZenTest (4.4.1)
|
11
|
+
diff-lcs (1.1.2)
|
12
|
+
rake (0.8.7)
|
13
|
+
rspec (2.2.0)
|
14
|
+
rspec-core (~> 2.2)
|
15
|
+
rspec-expectations (~> 2.2)
|
16
|
+
rspec-mocks (~> 2.2)
|
17
|
+
rspec-core (2.2.1)
|
18
|
+
rspec-expectations (2.2.0)
|
19
|
+
diff-lcs (~> 1.1.2)
|
20
|
+
rspec-mocks (2.2.0)
|
21
|
+
sys-uname (0.8.4)
|
22
|
+
|
23
|
+
PLATFORMS
|
24
|
+
ruby
|
25
|
+
|
26
|
+
DEPENDENCIES
|
27
|
+
ZenTest
|
28
|
+
autotest-fsevent!
|
29
|
+
rake
|
30
|
+
rspec
|
31
|
+
sys-uname
|
data/PostInstall.txt
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
In order to use autotest-fsevent, install either the comprehensive
|
2
|
+
ZenTest gem or the lightweight autotest-standalone gem and then add the
|
3
|
+
following line to your ~/.autotest file:
|
4
|
+
|
5
|
+
require 'autotest/fsevent'
|
6
|
+
|
7
|
+
For more information, feedback and bug submissions, please visit:
|
8
|
+
|
9
|
+
http://www.bitcetera.com/products/autotest-fsevent
|
10
|
+
|
11
|
+
If you like this gem, please consider to recommend me on Working with
|
12
|
+
Rails, thank you!
|
13
|
+
|
14
|
+
http://workingwithrails.com/recommendation/new/person/11706-sven-schwyn
|
data/README.rdoc
CHANGED
@@ -25,8 +25,7 @@ http://github.com/ewollesen/autotest-inotify
|
|
25
25
|
|
26
26
|
* Mac OS X >= 10.5
|
27
27
|
* Xcode
|
28
|
-
*
|
29
|
-
* rspec ~> 1.3
|
28
|
+
* any ZenTest compatible test suite
|
30
29
|
* sys-uname
|
31
30
|
|
32
31
|
== INSTALL:
|
@@ -36,12 +35,12 @@ Development Suite) must be installed. You can download it for free from:
|
|
36
35
|
|
37
36
|
http://developer.apple.com
|
38
37
|
|
39
|
-
Furthermore you have to decide whether you want to use the
|
40
|
-
|
41
|
-
|
38
|
+
Furthermore, you have to decide whether you want to use the comprehensive
|
39
|
+
ZenTest gem or the lightweight autotest-standalone gem and install either
|
40
|
+
of them. (See "Autotest" below for more on this.)
|
42
41
|
|
43
|
-
sudo gem install
|
44
|
-
sudo gem install
|
42
|
+
sudo gem install ZenTest --OR--
|
43
|
+
sudo gem install autotest-standalone
|
45
44
|
|
46
45
|
Now install the gem:
|
47
46
|
|
@@ -57,27 +56,32 @@ Rails, thank you!
|
|
57
56
|
|
58
57
|
http://workingwithrails.com/recommendation/new/person/11706-sven-schwyn
|
59
58
|
|
60
|
-
==
|
59
|
+
== AUTOTEST:
|
61
60
|
|
62
|
-
|
63
|
-
|
64
|
-
switch do the following:
|
61
|
+
You can use any ZenTest-compatible test suite with this gem, which basically
|
62
|
+
boils down to either of the following two sets of gems.
|
65
63
|
|
66
|
-
|
67
|
-
|
64
|
+
Comprehensive test suite by Ryan Davis:
|
65
|
+
* ZenTest
|
66
|
+
* autotest-rails (for Ruby on Rails compatibility)
|
68
67
|
|
69
|
-
|
70
|
-
|
68
|
+
Lightweight test suite by Michael Grosser:
|
69
|
+
* autotest-standalone
|
70
|
+
* autotest-rails-pure (for Ruby on Rails compatibility)
|
71
|
+
* zentest-without-autotest (for full ZenTest compatibility)
|
71
72
|
|
72
|
-
|
73
|
-
|
73
|
+
Note: Due to a naming disagreement, starting from version 4.4.6 the autotest
|
74
|
+
gem is no longer a lightweight fork but only an empty gem which requires
|
75
|
+
ZenTest. Switch to the autotest-standalone gem if you want to stick with the
|
76
|
+
lightweight approach.
|
74
77
|
|
75
|
-
|
76
|
-
the zentest-without-autotest gem alongside autotest:
|
78
|
+
== TROUBLESHOOTING:
|
77
79
|
|
78
|
-
|
80
|
+
=== Autotest Binary Not Present
|
79
81
|
|
80
|
-
|
82
|
+
Make sure you have either the ZenTest gem or the autotest-standalone gem
|
83
|
+
installed. This dependency has been dropped as of autotest-fsevent-0.2.3 in
|
84
|
+
order to allow any compatible test suite.
|
81
85
|
|
82
86
|
=== Compilation of fsevent_sleep Failed
|
83
87
|
|
@@ -86,11 +90,6 @@ download it for free from:
|
|
86
90
|
|
87
91
|
http://developer.apple.com
|
88
92
|
|
89
|
-
=== Loading the Plugin Seems to Fail
|
90
|
-
|
91
|
-
The reason may be ZenTest which must not be installed. See "Update from
|
92
|
-
0.1.X" for more on this.
|
93
|
-
|
94
93
|
== DEVELOPMENT:
|
95
94
|
|
96
95
|
You can install the bleeding edge version as follows:
|
data/Rakefile
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "autotest-fsevent/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "autotest-fsevent"
|
7
|
+
s.version = Autotest::FSEvent::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Sven Schwyn"]
|
10
|
+
s.email = ["ruby@bitcetera.com"]
|
11
|
+
s.homepage = "http://www.bitcetera.com/products/autotest-fsevent"
|
12
|
+
s.summary = %q{Use FSEvent (on Mac OS X 10.5 or higher) instead of filesystem polling.}
|
13
|
+
s.description = %q{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 very purpose. This gem teaches autotest how to use FSEvent.}
|
14
|
+
|
15
|
+
s.rubyforge_project = "autotest-fsevent"
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split("\n")
|
18
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
|
+
s.require_paths = ["lib"]
|
21
|
+
|
22
|
+
s.post_install_message = "\e[1;32m\n" + ('-' * 79) + "\n\n" + File.read('PostInstall.txt') + "\n" + ('-' * 79) + "\n\e[0m"
|
23
|
+
s.extensions = ["ext/fsevent/extconf.rb"]
|
24
|
+
s.add_dependency "sys-uname"
|
25
|
+
s.add_development_dependency "rake"
|
26
|
+
s.add_development_dependency "rspec"
|
27
|
+
s.add_development_dependency "ZenTest"
|
28
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
2
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
3
|
require 'autotest/fsevent'
|
4
|
-
require '
|
5
|
-
require '
|
4
|
+
require 'rspec'
|
5
|
+
require 'rspec/autorun'
|
6
6
|
|
7
|
-
|
7
|
+
RSpec.configure do |config|
|
8
8
|
end
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autotest-fsevent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 17
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
8
|
+
- 4
|
9
|
+
version: 0.2.4
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Sven Schwyn
|
@@ -15,73 +14,107 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-
|
17
|
+
date: 2010-12-02 00:00:00 +01:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
name:
|
21
|
+
name: sys-uname
|
23
22
|
prerelease: false
|
24
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
24
|
none: false
|
26
25
|
requirements:
|
27
|
-
- -
|
26
|
+
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 9
|
30
28
|
segments:
|
31
|
-
-
|
32
|
-
|
33
|
-
|
34
|
-
type: :development
|
29
|
+
- 0
|
30
|
+
version: "0"
|
31
|
+
type: :runtime
|
35
32
|
version_requirements: *id001
|
36
33
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
34
|
+
name: rake
|
38
35
|
prerelease: false
|
39
36
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
37
|
none: false
|
41
38
|
requirements:
|
42
39
|
- - ">="
|
43
40
|
- !ruby/object:Gem::Version
|
44
|
-
hash: 3
|
45
41
|
segments:
|
46
42
|
- 0
|
47
43
|
version: "0"
|
48
|
-
type: :
|
44
|
+
type: :development
|
49
45
|
version_requirements: *id002
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rspec
|
48
|
+
prerelease: false
|
49
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
segments:
|
55
|
+
- 0
|
56
|
+
version: "0"
|
57
|
+
type: :development
|
58
|
+
version_requirements: *id003
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: ZenTest
|
61
|
+
prerelease: false
|
62
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
segments:
|
68
|
+
- 0
|
69
|
+
version: "0"
|
70
|
+
type: :development
|
71
|
+
version_requirements: *id004
|
50
72
|
description: 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 very purpose. This gem teaches autotest how to use FSEvent.
|
51
|
-
email:
|
73
|
+
email:
|
74
|
+
- ruby@bitcetera.com
|
52
75
|
executables: []
|
53
76
|
|
54
77
|
extensions:
|
55
78
|
- ext/fsevent/extconf.rb
|
56
|
-
extra_rdoc_files:
|
57
|
-
|
58
|
-
- README.rdoc
|
79
|
+
extra_rdoc_files: []
|
80
|
+
|
59
81
|
files:
|
82
|
+
- .gitignore
|
83
|
+
- .rvmrc
|
60
84
|
- CHANGELOG.txt
|
61
|
-
-
|
62
|
-
-
|
85
|
+
- Gemfile
|
86
|
+
- Gemfile.lock
|
63
87
|
- LICENSE
|
88
|
+
- PostInstall.txt
|
64
89
|
- README.rdoc
|
90
|
+
- Rakefile
|
91
|
+
- autotest-fsevent.gemspec
|
92
|
+
- ext/fsevent/extconf.rb
|
93
|
+
- ext/fsevent/fsevent_sleep.c
|
94
|
+
- lib/autotest-fsevent.rb
|
95
|
+
- lib/autotest-fsevent/version.rb
|
96
|
+
- lib/autotest/fsevent.rb
|
65
97
|
- spec/autotest-fsevent_spec.rb
|
66
98
|
- spec/spec_helper.rb
|
67
|
-
- ext/fsevent/extconf.rb
|
68
99
|
has_rdoc: true
|
69
100
|
homepage: http://www.bitcetera.com/products/autotest-fsevent
|
70
101
|
licenses: []
|
71
102
|
|
72
|
-
post_install_message: "\n\
|
73
|
-
\
|
74
|
-
|
75
|
-
|
103
|
+
post_install_message: "\e[1;32m\n\
|
104
|
+
-------------------------------------------------------------------------------\n\n\
|
105
|
+
In order to use autotest-fsevent, install either the comprehensive \n\
|
106
|
+
ZenTest gem or the lightweight autotest-standalone gem and then add the \n\
|
107
|
+
following line to your ~/.autotest file:\n\n\
|
76
108
|
require 'autotest/fsevent'\n\n\
|
77
109
|
For more information, feedback and bug submissions, please visit:\n\n\
|
78
110
|
http://www.bitcetera.com/products/autotest-fsevent\n\n\
|
79
111
|
If you like this gem, please consider to recommend me on Working with\n\
|
80
112
|
Rails, thank you!\n\n\
|
81
|
-
http://workingwithrails.com/recommendation/new/person/11706-sven-schwyn\n\
|
82
|
-
\
|
83
|
-
|
84
|
-
|
113
|
+
http://workingwithrails.com/recommendation/new/person/11706-sven-schwyn\n\n\
|
114
|
+
-------------------------------------------------------------------------------\n\
|
115
|
+
\e[0m"
|
116
|
+
rdoc_options: []
|
117
|
+
|
85
118
|
require_paths:
|
86
119
|
- lib
|
87
120
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -89,7 +122,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
122
|
requirements:
|
90
123
|
- - ">="
|
91
124
|
- !ruby/object:Gem::Version
|
92
|
-
hash: 3
|
93
125
|
segments:
|
94
126
|
- 0
|
95
127
|
version: "0"
|
@@ -98,13 +130,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
130
|
requirements:
|
99
131
|
- - ">="
|
100
132
|
- !ruby/object:Gem::Version
|
101
|
-
hash: 3
|
102
133
|
segments:
|
103
134
|
- 0
|
104
135
|
version: "0"
|
105
136
|
requirements: []
|
106
137
|
|
107
|
-
rubyforge_project:
|
138
|
+
rubyforge_project: autotest-fsevent
|
108
139
|
rubygems_version: 1.3.7
|
109
140
|
signing_key:
|
110
141
|
specification_version: 3
|