watch-me-now 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/watch-me-now +11 -1
- data/watch-me-now.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.5.
|
1
|
+
1.5.2
|
data/bin/watch-me-now
CHANGED
@@ -1,3 +1,13 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# This doesnt work - use 'watchr watch-me-now.rb'
|
3
|
-
|
3
|
+
# require 'rubygems'
|
4
|
+
require 'watchr'
|
5
|
+
# gem 'watch-me-now'
|
6
|
+
|
7
|
+
def find_in_load_path(path)
|
8
|
+
dir = (['.'] + $LOAD_PATH).uniq.detect {|p| Pathname(p).join(path).exist? }
|
9
|
+
dir ? path.expand_path(dir) : nil
|
10
|
+
end
|
11
|
+
|
12
|
+
absolute_path = find_in_load_path(Pathname("watch-me-now.rb")) or abort("no script found in load path: watch-me-now.rb")
|
13
|
+
Watchr::Controller.new(Watchr::Script.new(absolute_path), Watchr.handler.new).run
|
data/watch-me-now.gemspec
CHANGED