monkeytest 0.1 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/tasks/monkey.rake +11 -14
- metadata +4 -4
data/lib/tasks/monkey.rake
CHANGED
@@ -12,26 +12,23 @@ end
|
|
12
12
|
begin
|
13
13
|
require 'win32console'
|
14
14
|
include Win32::Console::ANSI
|
15
|
-
|
16
|
-
rescue
|
15
|
+
rescue Exception => e
|
17
16
|
puts "When running on Windows the win32console gem is required."
|
17
|
+
exit(1)
|
18
18
|
end unless system('ls > /dev/null 2> /dev/null')
|
19
19
|
|
20
20
|
begin
|
21
|
-
require '
|
21
|
+
require 'term/ansicolor'
|
22
|
+
include Term::ANSIColor
|
23
|
+
rescue Exception => e
|
24
|
+
puts "The term-ansicolor gem is required to perform this task."
|
25
|
+
exit(1)
|
26
|
+
end
|
27
|
+
|
28
|
+
begin
|
22
29
|
require 'monkeytest'
|
23
30
|
rescue Exception => e
|
24
|
-
puts "The monkeytest gem is required to perform this task
|
25
|
-
print "Would you like to install this gem now? [y/n]: "
|
26
|
-
answer = STDIN.gets
|
27
|
-
print "\n"
|
28
|
-
if answer.upcase[0].chr == 'Y'
|
29
|
-
unless system('gem install monkeytest -y')
|
30
|
-
puts "\nLet's try that again... this time with sudo!\n"
|
31
|
-
system('sudo gem install monkeytest -y')
|
32
|
-
end
|
33
|
-
puts "Everything should be in place, go ahead and give 'er another try."
|
34
|
-
end
|
31
|
+
puts "The monkeytest gem is required to perform this task."
|
35
32
|
exit(1)
|
36
33
|
end
|
37
34
|
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: monkeytest
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version:
|
7
|
-
date: 2006-10-
|
6
|
+
version: 0.1.1
|
7
|
+
date: 2006-10-27 00:00:00 -04:00
|
8
8
|
summary: A set of rake tasks for pretty testing of rails apps.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -53,11 +53,11 @@ dependencies:
|
|
53
53
|
version: 0.7.1
|
54
54
|
version:
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: term-ansicolor
|
57
57
|
version_requirement:
|
58
58
|
version_requirements: !ruby/object:Gem::Version::Requirement
|
59
59
|
requirements:
|
60
60
|
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
62
|
+
version: 1.0.2
|
63
63
|
version:
|