mack-active_record 0.6.0.1 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/lib/{database.rb → mack-active_record/database.rb} +0 -0
  2. data/lib/{genosaurus_helpers.rb → mack-active_record/genosaurus_helpers.rb} +0 -0
  3. data/lib/{helpers → mack-active_record/helpers}/orm_helpers.rb +0 -0
  4. data/lib/{migration_generator → mack-active_record/migration_generator}/migration_generator.rb +0 -0
  5. data/lib/{migration_generator → mack-active_record/migration_generator}/templates/db/migrations/%=@migration_name%.rb.template +0 -0
  6. data/lib/{model_column.rb → mack-active_record/model_column.rb} +0 -0
  7. data/lib/{model_generator → mack-active_record/model_generator}/manifest.yml +0 -0
  8. data/lib/{model_generator → mack-active_record/model_generator}/model_generator.rb +0 -0
  9. data/lib/{model_generator → mack-active_record/model_generator}/templates/model.rb.template +0 -0
  10. data/lib/{model_generator → mack-active_record/model_generator}/templates/rspec.rb.template +0 -0
  11. data/lib/{model_generator → mack-active_record/model_generator}/templates/test.rb.template +0 -0
  12. data/lib/{scaffold_generator → mack-active_record/scaffold_generator}/manifest.yml +0 -0
  13. data/lib/{scaffold_generator → mack-active_record/scaffold_generator}/scaffold_generator.rb +0 -0
  14. data/lib/{scaffold_generator → mack-active_record/scaffold_generator}/templates/app/controllers/controller.rb.template +0 -0
  15. data/lib/{scaffold_generator → mack-active_record/scaffold_generator}/templates/app/views/edit.html.erb.template +0 -0
  16. data/lib/{scaffold_generator → mack-active_record/scaffold_generator}/templates/app/views/index.html.erb.template +0 -0
  17. data/lib/{scaffold_generator → mack-active_record/scaffold_generator}/templates/app/views/new.html.erb.template +0 -0
  18. data/lib/{scaffold_generator → mack-active_record/scaffold_generator}/templates/app/views/show.html.erb.template +0 -0
  19. data/lib/{scaffold_generator → mack-active_record/scaffold_generator}/templates/spec.rb.template +0 -0
  20. data/lib/{scaffold_generator → mack-active_record/scaffold_generator}/templates/test.rb.template +0 -0
  21. data/lib/{tasks → mack-active_record/tasks}/db_create_drop_tasks.rake +0 -0
  22. data/lib/{tasks → mack-active_record/tasks}/db_migration_tasks.rake +0 -0
  23. data/lib/mack-active_record.rb +5 -3
  24. data/lib/mack-active_record_tasks.rb +1 -1
  25. metadata +25 -51
  26. data/doc/classes/Mack/Database/Migrator.html +0 -193
  27. data/doc/classes/Mack/Database.html +0 -224
  28. data/doc/classes/Mack/Genosaurus/ActiveRecord/Helpers.html +0 -225
  29. data/doc/classes/Mack/Genosaurus/ActiveRecord/ModelColumn.html +0 -299
  30. data/doc/classes/Mack/ViewHelpers/ActiveRecordHelpers.html +0 -200
  31. data/doc/classes/Mack/ViewHelpers.html +0 -111
  32. data/doc/classes/Mack.html +0 -134
  33. data/doc/classes/MigrationGenerator.html +0 -159
  34. data/doc/classes/ModelGenerator.html +0 -174
  35. data/doc/classes/ScaffoldGenerator.html +0 -123
  36. data/doc/created.rid +0 -1
  37. data/doc/files/README.html +0 -111
  38. data/doc/files/lib/database_rb.html +0 -111
  39. data/doc/files/lib/genosaurus_helpers_rb.html +0 -101
  40. data/doc/files/lib/helpers/orm_helpers_rb.html +0 -101
  41. data/doc/files/lib/mack-active_record_rb.html +0 -110
  42. data/doc/files/lib/mack-active_record_tasks_rb.html +0 -101
  43. data/doc/files/lib/migration_generator/migration_generator_rb.html +0 -149
  44. data/doc/files/lib/model_column_rb.html +0 -101
  45. data/doc/files/lib/model_generator/model_generator_rb.html +0 -164
  46. data/doc/files/lib/scaffold_generator/scaffold_generator_rb.html +0 -114
  47. data/doc/fr_class_index.html +0 -36
  48. data/doc/fr_file_index.html +0 -36
  49. data/doc/fr_method_index.html +0 -41
  50. data/doc/index.html +0 -24
  51. data/doc/rdoc-style.css +0 -208
@@ -1,101 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>File: model_column.rb</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="fileHeader">
50
- <h1>model_column.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>lib/model_column.rb
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Fri Jul 18 16:07:34 -0400 2008</td>
60
- </tr>
61
- </table>
62
- </div>
63
- <!-- banner header -->
64
-
65
- <div id="bodyContent">
66
-
67
-
68
-
69
- <div id="contextContent">
70
-
71
-
72
-
73
- </div>
74
-
75
-
76
- </div>
77
-
78
-
79
- <!-- if includes -->
80
-
81
- <div id="section">
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
- <!-- if method_list -->
91
-
92
-
93
- </div>
94
-
95
-
96
- <div id="validator-badges">
97
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
98
- </div>
99
-
100
- </body>
101
- </html>
@@ -1,164 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>File: model_generator.rb</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="fileHeader">
50
- <h1>model_generator.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>lib/model_generator/model_generator.rb
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Fri Jul 18 16:07:34 -0400 2008</td>
60
- </tr>
61
- </table>
62
- </div>
63
- <!-- banner header -->
64
-
65
- <div id="bodyContent">
66
-
67
-
68
-
69
- <div id="contextContent">
70
-
71
- <div id="description">
72
- <p>
73
- This will generate an ORM &#8216;model&#8217; for your application based on
74
- the specified ORM you&#8216;re using.
75
- </p>
76
- <p>
77
- Example without columns:
78
- </p>
79
- <pre>
80
- rake generate:model name=user
81
- </pre>
82
- <p>
83
- app/models/user.rb:
84
- </p>
85
- <pre>
86
- class User &lt; ActiveRecord::Base
87
- end
88
- </pre>
89
- <p>
90
- db/migrations/&lt;number&gt;_create_users.rb:
91
- </p>
92
- <pre>
93
- class CreateUsers &lt; ActiveRecord::Migration
94
- self.up
95
- end
96
-
97
- self.down
98
- end
99
- end
100
- </pre>
101
- <p>
102
- Example with columns:
103
- </p>
104
- <pre>
105
- rake generate:model name=user cols=username:string,email_address:string,created_at:datetime,updated_at:datetime
106
- </pre>
107
- <p>
108
- app/models/user.rb:
109
- </p>
110
- <pre>
111
- class User &lt; ActiveRecord::Base
112
- end
113
- </pre>
114
- <p>
115
- db/migrations/&lt;number&gt;_create_users.rb:
116
- </p>
117
- <pre>
118
- class CreateUsers &lt; ActiveRecord::Migration
119
- self.up
120
- create_table :users do |t|
121
- t.column :username, :string
122
- t.column :email_address, :string
123
- t.column :created_at, :datetime
124
- t.column :updated_at, :datetime
125
- end
126
-
127
- self.down
128
- drop_table :users
129
- end
130
- end
131
- </pre>
132
-
133
- </div>
134
-
135
-
136
- </div>
137
-
138
-
139
- </div>
140
-
141
-
142
- <!-- if includes -->
143
-
144
- <div id="section">
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
- <!-- if method_list -->
154
-
155
-
156
- </div>
157
-
158
-
159
- <div id="validator-badges">
160
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
161
- </div>
162
-
163
- </body>
164
- </html>
@@ -1,114 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>File: scaffold_generator.rb</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="fileHeader">
50
- <h1>scaffold_generator.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>lib/scaffold_generator/scaffold_generator.rb
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Fri Jul 18 16:07:34 -0400 2008</td>
60
- </tr>
61
- </table>
62
- </div>
63
- <!-- banner header -->
64
-
65
- <div id="bodyContent">
66
-
67
-
68
-
69
- <div id="contextContent">
70
-
71
- <div id="description">
72
- <p>
73
- Generates scaffold for <a href="../../../classes/Mack.html">Mack</a>
74
- applications.
75
- </p>
76
- <p>
77
- Example:
78
- </p>
79
- <pre>
80
- rake generate:scaffold name=post
81
- </pre>
82
-
83
- </div>
84
-
85
-
86
- </div>
87
-
88
-
89
- </div>
90
-
91
-
92
- <!-- if includes -->
93
-
94
- <div id="section">
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
- <!-- if method_list -->
104
-
105
-
106
- </div>
107
-
108
-
109
- <div id="validator-badges">
110
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
111
- </div>
112
-
113
- </body>
114
- </html>
@@ -1,36 +0,0 @@
1
-
2
- <?xml version="1.0" encoding="iso-8859-1"?>
3
- <!DOCTYPE html
4
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
-
7
- <!--
8
-
9
- Classes
10
-
11
- -->
12
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
- <head>
14
- <title>Classes</title>
15
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
- <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
- <base target="docwin" />
18
- </head>
19
- <body>
20
- <div id="index">
21
- <h1 class="section-bar">Classes</h1>
22
- <div id="index-entries">
23
- <a href="classes/Mack.html">Mack</a><br />
24
- <a href="classes/Mack/Database.html">Mack::Database</a><br />
25
- <a href="classes/Mack/Database/Migrator.html">Mack::Database::Migrator</a><br />
26
- <a href="classes/Mack/Genosaurus/ActiveRecord/Helpers.html">Mack::Genosaurus::ActiveRecord::Helpers</a><br />
27
- <a href="classes/Mack/Genosaurus/ActiveRecord/ModelColumn.html">Mack::Genosaurus::ActiveRecord::ModelColumn</a><br />
28
- <a href="classes/Mack/ViewHelpers.html">Mack::ViewHelpers</a><br />
29
- <a href="classes/Mack/ViewHelpers/ActiveRecordHelpers.html">Mack::ViewHelpers::ActiveRecordHelpers</a><br />
30
- <a href="classes/MigrationGenerator.html">MigrationGenerator</a><br />
31
- <a href="classes/ModelGenerator.html">ModelGenerator</a><br />
32
- <a href="classes/ScaffoldGenerator.html">ScaffoldGenerator</a><br />
33
- </div>
34
- </div>
35
- </body>
36
- </html>
@@ -1,36 +0,0 @@
1
-
2
- <?xml version="1.0" encoding="iso-8859-1"?>
3
- <!DOCTYPE html
4
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
-
7
- <!--
8
-
9
- Files
10
-
11
- -->
12
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
- <head>
14
- <title>Files</title>
15
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
- <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
- <base target="docwin" />
18
- </head>
19
- <body>
20
- <div id="index">
21
- <h1 class="section-bar">Files</h1>
22
- <div id="index-entries">
23
- <a href="files/README.html">README</a><br />
24
- <a href="files/lib/database_rb.html">lib/database.rb</a><br />
25
- <a href="files/lib/genosaurus_helpers_rb.html">lib/genosaurus_helpers.rb</a><br />
26
- <a href="files/lib/helpers/orm_helpers_rb.html">lib/helpers/orm_helpers.rb</a><br />
27
- <a href="files/lib/mack-active_record_rb.html">lib/mack-active_record.rb</a><br />
28
- <a href="files/lib/mack-active_record_tasks_rb.html">lib/mack-active_record_tasks.rb</a><br />
29
- <a href="files/lib/migration_generator/migration_generator_rb.html">lib/migration_generator/migration_generator.rb</a><br />
30
- <a href="files/lib/model_column_rb.html">lib/model_column.rb</a><br />
31
- <a href="files/lib/model_generator/model_generator_rb.html">lib/model_generator/model_generator.rb</a><br />
32
- <a href="files/lib/scaffold_generator/scaffold_generator_rb.html">lib/scaffold_generator/scaffold_generator.rb</a><br />
33
- </div>
34
- </div>
35
- </body>
36
- </html>