gen 0.24.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ProjectInfo +2 -5
- data/doc/RELEASES +5 -0
- data/lib/gen.rb +3 -1
- data/lib/gen/app/gen.rb +3 -1
- data/lib/gen/form/gen.rb +9 -4
- metadata +3 -3
data/ProjectInfo
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
TITLE : &title Gen
|
4
4
|
NAME : &pkg gen
|
5
|
-
VERSION : '0.
|
5
|
+
VERSION : '0.25.0'
|
6
6
|
STATUS : beta
|
7
7
|
|
8
8
|
AUTHOR : George Moschovitis
|
@@ -17,7 +17,7 @@ DESCRIPTION: >
|
|
17
17
|
DISTRIBUTE: [ gem, tgz, zip ]
|
18
18
|
|
19
19
|
DEPENDENCIES:
|
20
|
-
- [ glue, '= 0.
|
20
|
+
- [ glue, '= 0.25.0' ]
|
21
21
|
|
22
22
|
RUBYFORGE:
|
23
23
|
PROJECT: 'nitro'
|
@@ -38,9 +38,6 @@ ANNOUNCE:
|
|
38
38
|
sectype: tls # ~, tls, ssl (tls is broke)
|
39
39
|
file: ANN
|
40
40
|
slogan: Gen
|
41
|
-
|
42
|
-
|
43
|
-
|
44
41
|
links:
|
45
42
|
- http://www.nitrohq.com
|
46
43
|
|
data/doc/RELEASES
CHANGED
data/lib/gen.rb
CHANGED
data/lib/gen/app/gen.rb
CHANGED
data/lib/gen/form/gen.rb
CHANGED
@@ -1,8 +1,11 @@
|
|
1
|
+
$NITRO_NO_ENVIRONMENT = true
|
2
|
+
|
1
3
|
require 'nano/kernel/constant'
|
2
4
|
require 'nano/string/underscore'
|
3
5
|
|
4
6
|
require 'gen'
|
5
|
-
require 'nitro
|
7
|
+
require 'nitro'
|
8
|
+
require 'nitro/helper/form'
|
6
9
|
require 'og'
|
7
10
|
|
8
11
|
# This generator generates xhtml forms for Ruby objects.
|
@@ -16,9 +19,9 @@ class FormGen < Gen
|
|
16
19
|
include Nitro::FormMixin
|
17
20
|
|
18
21
|
def setup
|
19
|
-
@def_filename = ARGV[
|
20
|
-
@klass = ARGV[
|
21
|
-
@form_filename = ARGV[
|
22
|
+
@def_filename = ARGV[0] || usage()
|
23
|
+
@klass = ARGV[1]
|
24
|
+
@form_filename = ARGV[2] || "#{@klass.underscore}.html"
|
22
25
|
require @def_filename
|
23
26
|
rescue LoadError
|
24
27
|
puts "Cannot load ruby file '#@def_filename'!"
|
@@ -35,3 +38,5 @@ class FormGen < Gen
|
|
35
38
|
end
|
36
39
|
|
37
40
|
$generator = FormGen.new
|
41
|
+
|
42
|
+
# * George Moschovitis <gm@navel.gr>
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.10
|
|
3
3
|
specification_version: 1
|
4
4
|
name: gen
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2005-
|
6
|
+
version: 0.25.0
|
7
|
+
date: 2005-11-17
|
8
8
|
summary: A simple code generation system.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -60,5 +60,5 @@ dependencies:
|
|
60
60
|
-
|
61
61
|
- "="
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.
|
63
|
+
version: 0.25.0
|
64
64
|
version:
|