monorail 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/RELEASE_NOTES +9 -2
- data/lib/monorail/appgen.rb +5 -3
- data/lib/monorail/congen.rb +6 -4
- data/lib/version.rb +2 -2
- metadata +1 -1
data/RELEASE_NOTES
CHANGED
@@ -1,6 +1,13 @@
|
|
1
|
-
# $Id: RELEASE_NOTES
|
1
|
+
# $Id: RELEASE_NOTES 2410 2006-04-28 18:52:31Z francis $
|
2
2
|
#
|
3
3
|
#
|
4
4
|
|
5
|
-
Monorail release-notes
|
5
|
+
Monorail release-notes
|
6
|
+
|
7
|
+
---------------------------------
|
8
|
+
0.0.4: 29Apr06:
|
9
|
+
Removed ruby readline, which isn't always available.
|
10
|
+
|
11
|
+
---------------------------------
|
12
|
+
0.0.3: 29Apr06: Added working command-line scripts
|
6
13
|
|
data/lib/monorail/appgen.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id: appgen.rb
|
1
|
+
# $Id: appgen.rb 2409 2006-04-28 18:51:49Z francis $
|
2
2
|
#
|
3
3
|
# Monorail::Application
|
4
4
|
# This runs a monorail system from a command-line binary.
|
@@ -62,8 +62,10 @@ class ApplicationGenerator
|
|
62
62
|
puts "Creating monorail app in directory: #{target}"
|
63
63
|
|
64
64
|
if (@options.erase)
|
65
|
-
|
66
|
-
|
65
|
+
$stderr.write "*** Erase the target directory [yN]? "
|
66
|
+
gets and chomp
|
67
|
+
p "...#{$_}"
|
68
|
+
unless $_ =~ /\Ay/i
|
67
69
|
puts "Exiting..."
|
68
70
|
exit
|
69
71
|
end
|
data/lib/monorail/congen.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id: congen.rb
|
1
|
+
# $Id: congen.rb 2409 2006-04-28 18:51:49Z francis $
|
2
2
|
#
|
3
3
|
# Monorail::Generator
|
4
4
|
# This invokes a command-line script to generate a monorail application shell.
|
@@ -27,7 +27,6 @@
|
|
27
27
|
|
28
28
|
|
29
29
|
require 'fileutils'
|
30
|
-
require 'readline'
|
31
30
|
|
32
31
|
|
33
32
|
module Monorail
|
@@ -107,8 +106,11 @@ class ControllerGenerator
|
|
107
106
|
target = File.join( path, "c", cont )
|
108
107
|
|
109
108
|
if File.exist?(target) || File.exist?(target+".rb")
|
110
|
-
|
111
|
-
|
109
|
+
# Don't use readline. Not every ruby has it.
|
110
|
+
#r = Readline.readline( "*** Controller #{cont} already exists. Erase it [yN]? " )
|
111
|
+
$stderr.write "*** Controller #{cont} already exists. Erase it [yN]? "
|
112
|
+
gets and chomp
|
113
|
+
unless $_ =~ /\Ay/i
|
112
114
|
puts "Controller not re-generated, exiting."
|
113
115
|
exit
|
114
116
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED