monkeytest 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/monkeytest +4 -6
  2. data/lib/monkeytest.rb +1 -1
  3. metadata +1 -1
data/bin/monkeytest CHANGED
@@ -4,16 +4,16 @@ include FileUtils
4
4
  cwd = Dir.getwd
5
5
 
6
6
  unless File.exist?("#{cwd}#{File::SEPARATOR}lib#{File::SEPARATOR}tasks")
7
- puts "create lib/tasks"
7
+ puts "\tcreate lib/tasks"
8
8
  Dir.mkdir("#{cwd}#{File::SEPARATOR}lib#{File::SEPARATOR}tasks")
9
9
  else
10
- puts "exists lib/tasks"
10
+ puts "\texists lib/tasks"
11
11
  end
12
12
 
13
13
  if File.exist?("#{cwd}#{File::SEPARATOR}lib#{File::SEPARATOR}tasks#{File::SEPARATOR}monkey.rake")
14
- puts "replace lib/tasks/monkey.rake"
14
+ puts "\treplace lib/tasks/monkey.rake"
15
15
  else
16
- puts "create lib/tasks/monkey.rake"
16
+ puts "\tcreate lib/tasks/monkey.rake"
17
17
  end
18
18
 
19
19
  begin
@@ -22,5 +22,3 @@ rescue Exception => e
22
22
  puts "There was a problem copying the file!"
23
23
  puts e
24
24
  end
25
-
26
- puts "All done!"
data/lib/monkeytest.rb CHANGED
@@ -8,7 +8,7 @@ module Monkey
8
8
 
9
9
  def self.run_tests(mode, html=false)
10
10
 
11
- unless `less ./lib/tasks/monkey.rake | grep \"created with monkeytest #{VERSION}\"`.size > 0
11
+ if File.new("./lib/tasks/monkey.rake").read.match(/created with monkeytest 0.2/).nil?
12
12
  puts "It looks like you've updated your gem.\nPlease run monkeytest again on your project."
13
13
  exit 1
14
14
  end
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: monkeytest
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.2.0
6
+ version: 0.2.1
7
7
  date: 2006-11-01 00:00:00 -05:00
8
8
  summary: A set of rake tasks for pretty testing of rails apps.
9
9
  require_paths: