monorail 0.0.3 → 0.0.4

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.
@@ -1,6 +1,13 @@
1
- # $Id: RELEASE_NOTES 2335 2006-04-20 07:43:52Z francis $
1
+ # $Id: RELEASE_NOTES 2410 2006-04-28 18:52:31Z francis $
2
2
  #
3
3
  #
4
4
 
5
- Monorail release-notes stub
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
 
@@ -1,4 +1,4 @@
1
- # $Id: appgen.rb 2406 2006-04-28 16:36:00Z francis $
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
- r = Readline.readline( "*** Erase the target directory [yN]? " )
66
- unless r =~ /\Ay/i
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
@@ -1,4 +1,4 @@
1
- # $Id: congen.rb 2406 2006-04-28 16:36:00Z francis $
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
- r = Readline.readline( "*** Controller #{cont} already exists. Erase it [yN]? " )
111
- unless r =~ /\Ay/i
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
@@ -1,5 +1,5 @@
1
- # $Id: version.rb 2404 2006-04-28 16:32:58Z francis $
1
+ # $Id: version.rb 2407 2006-04-28 16:36:20Z francis $
2
2
  #
3
3
  #
4
4
 
5
- Version = "0.0.3"
5
+ Version = "0.0.4"
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: monorail
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.3
6
+ version: 0.0.4
7
7
  date: 2006-04-28 00:00:00 -04:00
8
8
  summary: Monorail Web-development and deployment framework
9
9
  require_paths: