watch-me-now 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +12 -1
- data/VERSION +1 -1
- data/lib/watch-me-now.watchr +8 -2
- data/watch-me-now.gemspec +2 -2
- metadata +2 -2
data/README.markdown
CHANGED
@@ -8,4 +8,15 @@ A small script that builds on [watchr](http://github.com/mynyml/watchr) to try a
|
|
8
8
|
|
9
9
|
gem install watch-me-now --source http://gemcutter.org
|
10
10
|
cd YOUR_PROJECT
|
11
|
-
watchr watch-me-now.rb
|
11
|
+
watchr watch-me-now.rb
|
12
|
+
|
13
|
+
## Supported
|
14
|
+
|
15
|
+
* ruby libraries
|
16
|
+
* rubygems (anything with /lib and a top level test folder, basically)
|
17
|
+
|
18
|
+
## TODO
|
19
|
+
|
20
|
+
* Rails projects of different shapes and sizes
|
21
|
+
* Cucumber features
|
22
|
+
* Toggle spork via command line switch?
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.3.0
|
data/lib/watch-me-now.watchr
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
# Convenience Methods
|
3
3
|
# --------------------------------------------------
|
4
4
|
def test_folder
|
5
|
-
@test_folder ||= %w[spec
|
5
|
+
@test_folder ||= %w[spec examples test].detect { |p| File.directory?(p) }
|
6
6
|
end
|
7
7
|
|
8
8
|
def test_suffix
|
9
9
|
case test_folder
|
10
|
-
when "spec"
|
10
|
+
when "spec" then "spec"
|
11
11
|
when "examples" then "example"
|
12
12
|
when "test" then "test"
|
13
13
|
end
|
@@ -34,12 +34,18 @@ def run(files_to_run)
|
|
34
34
|
puts cmd
|
35
35
|
system("ruby -I#{test_folder} #{files_to_run}")
|
36
36
|
end
|
37
|
+
no_int_for_you
|
37
38
|
end
|
38
39
|
|
39
40
|
def run_all_tests
|
40
41
|
run(all_test_files.join(' '))
|
41
42
|
end
|
42
43
|
|
44
|
+
def no_int_for_you
|
45
|
+
@sent_an_int = nil
|
46
|
+
end
|
47
|
+
|
48
|
+
|
43
49
|
|
44
50
|
# --------------------------------------------------
|
45
51
|
# Watchr Rules
|
data/watch-me-now.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{watch-me-now}
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.3.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Rob Sanheim"]
|
12
|
-
s.date = %q{2009-10-
|
12
|
+
s.date = %q{2009-10-06}
|
13
13
|
s.default_executable = %q{watch-me-now}
|
14
14
|
s.description = %q{watchr provides flexible continuous testing. watch-me-now is a simple script to try and test most types of Ruby projects}
|
15
15
|
s.email = %q{rsanheim@gmail.com}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watch-me-now
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Sanheim
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-10-
|
12
|
+
date: 2009-10-06 00:00:00 -04:00
|
13
13
|
default_executable: watch-me-now
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|