gen 0.24.0 → 0.25.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  TITLE : &title Gen
4
4
  NAME : &pkg gen
5
- VERSION : '0.24.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.24.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
 
@@ -1,3 +1,8 @@
1
+ == Version 0.25.0
2
+
3
+ Minor fixes.
4
+
5
+
1
6
  == Version 0.24.0
2
7
 
3
8
  First open release. The aim of this release is to gather
data/lib/gen.rb CHANGED
@@ -14,7 +14,7 @@ class Gen
14
14
 
15
15
  # The version.
16
16
 
17
- Version = '0.24.0'
17
+ Version = '0.25.0'
18
18
 
19
19
  # Library path.
20
20
 
@@ -45,3 +45,5 @@ class Gen
45
45
  def teardown
46
46
  end
47
47
  end
48
+
49
+ # * George Moschovitis <gm@navel.gr>
@@ -29,4 +29,6 @@ class AppGen < Gen
29
29
 
30
30
  end
31
31
 
32
- $generator = AppGen.new
32
+ $generator = AppGen.new
33
+
34
+ # * George Moschovitis <gm@navel.gr>
@@ -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/mixin/form'
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[1] || usage()
20
- @klass = ARGV[2]
21
- @form_filename = ARGV[3] || "#{@klass.underscore}.html"
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.24.0
7
- date: 2005-10-28
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.24.0
63
+ version: 0.25.0
64
64
  version: