rspactor 0.7.0.beta.6 → 0.7.0.beta.7
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/README.rdoc +8 -2
- data/bin/inotify_watch +2 -2
- data/bin/rspactor +1 -0
- data/lib/rspactor.rb +2 -2
- data/lib/rspactor/listener.rb +3 -3
- data/lib/rspactor/runner.rb +1 -1
- data/lib/rspactor/version.rb +1 -1
- metadata +23 -25
data/README.rdoc
CHANGED
@@ -12,7 +12,7 @@ Version 0.7.x is a complete rewrite, RubyCocoa is no more needed, FSEvents & Ino
|
|
12
12
|
- Super fast change detection
|
13
13
|
- Automatic _spec.rb files detection (even new file created, unlike watchr)
|
14
14
|
- Growl notification (please install {growlnotify}[http://growl.info/documentation/growlnotify.php])
|
15
|
-
- Libnotify notification
|
15
|
+
- Libnotify notification (with custom event support)
|
16
16
|
|
17
17
|
== Install
|
18
18
|
|
@@ -41,6 +41,12 @@ Signal handlers are now used to interact with RSpactor:
|
|
41
41
|
- Ctrl-C - Quit RSpactor or quick abort running spec(s)
|
42
42
|
- Ctrl-\ - Running all specs
|
43
43
|
|
44
|
+
== Vim
|
45
|
+
|
46
|
+
Vim does not actually modify the file so you will need to specify the following event in nix
|
47
|
+
|
48
|
+
rspactor -e close_write
|
49
|
+
|
44
50
|
== TODO
|
45
51
|
|
46
52
|
- Specific files (spec_helper, factories, fixtures...) inspections
|
@@ -69,4 +75,4 @@ Older versions authors are:
|
|
69
75
|
- {Pelle Braendgaard}[http://github.com/pelle]
|
70
76
|
- {Thibaud Guillaume-Gentil}[http://github.com/thibaudgg]
|
71
77
|
|
72
|
-
Thanks to {Giovanni Cangiani}[http://github.com/multiscan] for the IO.popen/FSEvent trick & {Rémy Coutable}[http://github.com/rymai] for beta testing.
|
78
|
+
Thanks to {Giovanni Cangiani}[http://github.com/multiscan] for the IO.popen/FSEvent trick & {Rémy Coutable}[http://github.com/rymai] for beta testing.
|
data/bin/inotify_watch
CHANGED
@@ -5,7 +5,7 @@ require 'rb-inotify'
|
|
5
5
|
folders = Array.new
|
6
6
|
notifier = INotify::Notifier.new
|
7
7
|
|
8
|
-
notifier.watch(ARGV
|
8
|
+
notifier.watch(ARGV[0], ARGV[1].to_sym, :recursive) do |event|
|
9
9
|
dir = File.expand_path(File.dirname(event.absolute_name)) + '/'
|
10
10
|
if !folders.include?(dir)
|
11
11
|
folders << dir
|
@@ -22,4 +22,4 @@ while true do
|
|
22
22
|
end
|
23
23
|
|
24
24
|
sleep(0.5)
|
25
|
-
end
|
25
|
+
end
|
data/bin/rspactor
CHANGED
@@ -8,6 +8,7 @@ options = Trollop::options do
|
|
8
8
|
|
9
9
|
opt :clear, "Clear the console beetween each spec(s) run"
|
10
10
|
opt :rspec_version, "Force RSpec Version (1 or 2), normally it should be automatically detected", :type => :int
|
11
|
+
opt :event, "Specify inotify event", :type => String
|
11
12
|
end
|
12
13
|
|
13
14
|
Trollop::die :rspec_version, "not supported" unless [nil, 1, 2].include?(options[:rspec_version])
|
data/lib/rspactor.rb
CHANGED
data/lib/rspactor/listener.rb
CHANGED
@@ -14,12 +14,12 @@ module RSpactor
|
|
14
14
|
@callback = block
|
15
15
|
end
|
16
16
|
|
17
|
-
def start
|
17
|
+
def start(event = "modify")
|
18
18
|
@pipe = case Sys::Uname.sysname
|
19
19
|
when 'Darwin'
|
20
20
|
IO.popen("#{bin_path}/fsevent_watch .")
|
21
21
|
when 'Linux'
|
22
|
-
IO.popen("#{bin_path}/inotify_watch .")
|
22
|
+
IO.popen("#{bin_path}/inotify_watch . #{event}")
|
23
23
|
end
|
24
24
|
|
25
25
|
watch_change
|
@@ -64,4 +64,4 @@ module RSpactor
|
|
64
64
|
end
|
65
65
|
|
66
66
|
end
|
67
|
-
end
|
67
|
+
end
|
data/lib/rspactor/runner.rb
CHANGED
data/lib/rspactor/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspactor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 62196445
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
9
|
- 0
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 0.7.0.beta.
|
11
|
+
- 7
|
12
|
+
version: 0.7.0.beta.7
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Thibaud Guillaume-Gentil
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-
|
20
|
+
date: 2010-09-02 00:00:00 +02:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -26,16 +26,14 @@ dependencies:
|
|
26
26
|
requirement: &id001 !ruby/object:Gem::Requirement
|
27
27
|
none: false
|
28
28
|
requirements:
|
29
|
-
- -
|
29
|
+
- - ~>
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
hash:
|
31
|
+
hash: 23
|
32
32
|
segments:
|
33
33
|
- 1
|
34
34
|
- 0
|
35
35
|
- 0
|
36
|
-
|
37
|
-
- 5
|
38
|
-
version: 1.0.0.rc.5
|
36
|
+
version: 1.0.0
|
39
37
|
type: :development
|
40
38
|
version_requirements: *id001
|
41
39
|
- !ruby/object:Gem::Dependency
|
@@ -44,16 +42,16 @@ dependencies:
|
|
44
42
|
requirement: &id002 !ruby/object:Gem::Requirement
|
45
43
|
none: false
|
46
44
|
requirements:
|
47
|
-
- -
|
45
|
+
- - ~>
|
48
46
|
- !ruby/object:Gem::Version
|
49
|
-
hash:
|
47
|
+
hash: 62196427
|
50
48
|
segments:
|
51
49
|
- 2
|
52
50
|
- 0
|
53
51
|
- 0
|
54
52
|
- beta
|
55
|
-
-
|
56
|
-
version: 2.0.0.beta.
|
53
|
+
- 20
|
54
|
+
version: 2.0.0.beta.20
|
57
55
|
type: :development
|
58
56
|
version_requirements: *id002
|
59
57
|
- !ruby/object:Gem::Dependency
|
@@ -62,16 +60,14 @@ dependencies:
|
|
62
60
|
requirement: &id003 !ruby/object:Gem::Requirement
|
63
61
|
none: false
|
64
62
|
requirements:
|
65
|
-
- -
|
63
|
+
- - ~>
|
66
64
|
- !ruby/object:Gem::Version
|
67
|
-
hash:
|
65
|
+
hash: 23
|
68
66
|
segments:
|
69
67
|
- 1
|
70
68
|
- 0
|
71
69
|
- 0
|
72
|
-
|
73
|
-
- 5
|
74
|
-
version: 1.0.0.rc.5
|
70
|
+
version: 1.0.0
|
75
71
|
type: :runtime
|
76
72
|
version_requirements: *id003
|
77
73
|
- !ruby/object:Gem::Dependency
|
@@ -80,7 +76,7 @@ dependencies:
|
|
80
76
|
requirement: &id004 !ruby/object:Gem::Requirement
|
81
77
|
none: false
|
82
78
|
requirements:
|
83
|
-
- -
|
79
|
+
- - ~>
|
84
80
|
- !ruby/object:Gem::Version
|
85
81
|
hash: 83
|
86
82
|
segments:
|
@@ -96,7 +92,7 @@ dependencies:
|
|
96
92
|
requirement: &id005 !ruby/object:Gem::Requirement
|
97
93
|
none: false
|
98
94
|
requirements:
|
99
|
-
- -
|
95
|
+
- - ~>
|
100
96
|
- !ruby/object:Gem::Version
|
101
97
|
hash: 55
|
102
98
|
segments:
|
@@ -112,7 +108,7 @@ dependencies:
|
|
112
108
|
requirement: &id006 !ruby/object:Gem::Requirement
|
113
109
|
none: false
|
114
110
|
requirements:
|
115
|
-
- -
|
111
|
+
- - ~>
|
116
112
|
- !ruby/object:Gem::Version
|
117
113
|
hash: 17
|
118
114
|
segments:
|
@@ -128,12 +124,14 @@ dependencies:
|
|
128
124
|
requirement: &id007 !ruby/object:Gem::Requirement
|
129
125
|
none: false
|
130
126
|
requirements:
|
131
|
-
- -
|
127
|
+
- - ~>
|
132
128
|
- !ruby/object:Gem::Version
|
133
|
-
hash:
|
129
|
+
hash: 61
|
134
130
|
segments:
|
135
131
|
- 0
|
136
|
-
|
132
|
+
- 8
|
133
|
+
- 1
|
134
|
+
version: 0.8.1
|
137
135
|
type: :runtime
|
138
136
|
version_requirements: *id007
|
139
137
|
- !ruby/object:Gem::Dependency
|
@@ -142,7 +140,7 @@ dependencies:
|
|
142
140
|
requirement: &id008 !ruby/object:Gem::Requirement
|
143
141
|
none: false
|
144
142
|
requirements:
|
145
|
-
- -
|
143
|
+
- - ~>
|
146
144
|
- !ruby/object:Gem::Version
|
147
145
|
hash: 29
|
148
146
|
segments:
|