Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:thibaudgg/rspactor

Conflicts:
	README.rdoc
  • Loading branch information...
commit 471649109d6d30e3b4743f1f91db90d0ad2114fe 2 parents 50d396b + b858639
Thibaud Guillaume-Gentil authored
1  .gitignore
View
@@ -17,5 +17,6 @@ tmtags
coverage
rdoc
pkg
+.bundle
## PROJECT::SPECIFIC
6 CHANGELOG.rdoc
View
@@ -1,3 +1,9 @@
+== 0.7.0.beta.7 (Sep 2, 2010)
+
+Features:
+
+- Added event option for vim support via libnotify (Rufus Post)
+
== 0.7.0.beta.6 (Aug 13, 2010)
Features:
30 Gemfile.lock
View
@@ -1,13 +1,13 @@
PATH
remote: .
specs:
- rspactor (0.7.0.beta.4)
- bundler (>= 1.0.0.rc.5)
- growl (>= 1.0.3)
- libnotify (>= 0.1.3)
- rb-inotify
- sys-uname (>= 0.8.4)
- trollop (>= 1.16.2)
+ rspactor (0.7.0.beta.7)
+ bundler (~> 1.0.0)
+ growl (~> 1.0.3)
+ libnotify (~> 0.1.3)
+ rb-inotify (~> 0.8.1)
+ sys-uname (~> 0.8.4)
+ trollop (~> 1.16.2)
GEM
remote: http://rubygems.org/
@@ -16,7 +16,7 @@ GEM
ffi (0.6.3)
rake (>= 0.8.7)
growl (1.0.3)
- libnotify (0.2.0)
+ libnotify (0.1.4)
ffi (>= 0.6.2)
rake (0.8.7)
rb-inotify (0.8.1)
@@ -36,11 +36,11 @@ PLATFORMS
ruby
DEPENDENCIES
- bundler (>= 1.0.0.rc.5)
- growl (>= 1.0.3)
- libnotify (>= 0.1.3)
- rb-inotify
+ bundler (~> 1.0.0)
+ growl (~> 1.0.3)
+ libnotify (~> 0.1.3)
+ rb-inotify (~> 0.8.1)
rspactor!
- rspec (>= 2.0.0.beta.17)
- sys-uname (>= 0.8.4)
- trollop (>= 1.16.2)
+ rspec (~> 2.0.0.beta.20)
+ sys-uname (~> 0.8.4)
+ trollop (~> 1.16.2)
4 bin/inotify_watch
View
@@ -5,7 +5,7 @@ require 'rb-inotify'
folders = Array.new
notifier = INotify::Notifier.new
-notifier.watch(ARGV.first || '.', :modify, :recursive) do |event|
+notifier.watch(ARGV[0], ARGV[1].to_sym, :recursive) do |event|
dir = File.expand_path(File.dirname(event.absolute_name)) + '/'
if !folders.include?(dir)
folders << dir
@@ -22,4 +22,4 @@ while true do
end
sleep(0.5)
-end
+end
1  bin/rspactor
View
@@ -8,6 +8,7 @@ options = Trollop::options do
opt :clear, "Clear the console beetween each spec(s) run"
opt :rspec_version, "Force RSpec Version (1 or 2), normally it should be automatically detected", :type => :int
+ opt :event, "Specify inotify event", :type => String
end
Trollop::die :rspec_version, "not supported" unless [nil, 1, 2].include?(options[:rspec_version])
4 lib/rspactor.rb
View
@@ -19,9 +19,9 @@ def start(options = {})
runner.start if Inspector.spec_paths?
end
UI.info "RSpactor is now watching at '#{Dir.pwd}' using RSpec #{runner.rspec_version}.x"
- listener.start
+ listener.start(@options[:event])
end
end
-end
+end
6 lib/rspactor/listener.rb
View
@@ -14,12 +14,12 @@ def watch(&block)
@callback = block
end
- def start
+ def start(event = "modify")
@pipe = case Sys::Uname.sysname
when 'Darwin'
IO.popen("#{bin_path}/fsevent_watch .")
when 'Linux'
- IO.popen("#{bin_path}/inotify_watch .")
+ IO.popen("#{bin_path}/inotify_watch . #{event}")
end
watch_change
@@ -64,4 +64,4 @@ def bin_path
end
end
-end
+end
2  lib/rspactor/runner.rb
View
@@ -89,4 +89,4 @@ def notify_installed?
end
end
-end
+end
2  lib/rspactor/version.rb
View
@@ -1,3 +1,3 @@
module RSpactor
- VERSION = "0.7.0.beta.6"
+ VERSION = "0.7.0.beta.7"
end
16 rspactor.gemspec
View
@@ -15,17 +15,17 @@ Gem::Specification.new do |s|
s.required_rubygems_version = ">= 1.3.6"
s.rubyforge_project = "rspactor"
- s.add_development_dependency 'bundler', '>= 1.0.0.rc.5'
- s.add_development_dependency 'rspec', '>= 2.0.0.beta.19'
+ s.add_development_dependency 'bundler', '~> 1.0.0'
+ s.add_development_dependency 'rspec', '~> 2.0.0.beta.20'
- s.add_dependency 'bundler', '>= 1.0.0.rc.5'
- s.add_dependency 'trollop', '>= 1.16.2'
- s.add_dependency 'sys-uname', '>= 0.8.4'
+ s.add_dependency 'bundler', '~> 1.0.0'
+ s.add_dependency 'trollop', '~> 1.16.2'
+ s.add_dependency 'sys-uname', '~> 0.8.4'
# Mac OS X
- s.add_dependency 'growl', '>= 1.0.3'
+ s.add_dependency 'growl', '~> 1.0.3'
# Linux
- s.add_dependency 'rb-inotify'
- s.add_dependency 'libnotify', '>= 0.1.3'
+ s.add_dependency 'rb-inotify', '~> 0.8.1'
+ s.add_dependency 'libnotify', '~> 0.1.3'
s.files = Dir.glob("{bin,images,lib,ext}/**/*") + %w[LICENSE README.rdoc]
s.extensions = ["ext/extconf.rb"]
Please sign in to comment.
Something went wrong with that request. Please try again.