monkeytest 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/monkeytest +4 -6
- data/lib/monkeytest.rb +1 -1
- 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 "
|
7
|
+
puts "\tcreate lib/tasks"
|
8
8
|
Dir.mkdir("#{cwd}#{File::SEPARATOR}lib#{File::SEPARATOR}tasks")
|
9
9
|
else
|
10
|
-
puts "
|
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 "
|
14
|
+
puts "\treplace lib/tasks/monkey.rake"
|
15
15
|
else
|
16
|
-
puts "
|
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
|
-
|
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