watch-me-now 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.4.0
@@ -17,6 +17,10 @@ def all_test_files
17
17
  Dir["#{test_folder}/**/*_#{test_suffix}.rb"]
18
18
  end
19
19
 
20
+ def runner
21
+ ENV["WATCHR_RUNNER"] || "ruby"
22
+ end
23
+
20
24
  def run_test_matching(thing_to_match)
21
25
  matches = all_test_files.grep /#{thing_to_match}/i
22
26
  if matches.empty?
@@ -30,9 +34,9 @@ def run(files_to_run)
30
34
  if files_to_run.strip.empty?
31
35
  puts "No files to run"
32
36
  else
33
- cmd = "ruby -I#{test_folder} #{files_to_run}"
37
+ cmd = "#{runner} -I#{test_folder} #{files_to_run}"
34
38
  puts cmd
35
- system("ruby -I#{test_folder} #{files_to_run}")
39
+ system cmd
36
40
  end
37
41
  no_int_for_you
38
42
  end
@@ -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.3.0"
8
+ s.version = "1.4.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-06}
12
+ s.date = %q{2009-10-21}
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.3.0
4
+ version: 1.4.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-06 00:00:00 -04:00
12
+ date: 2009-10-21 00:00:00 -04:00
13
13
  default_executable: watch-me-now
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency