mack-data_mapper 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 (71) hide show
  1. data/README +115 -4
  2. data/lib/mack-data_mapper.rb +14 -12
  3. data/lib/{database.rb → mack-data_mapper/database.rb} +0 -0
  4. data/lib/mack-data_mapper/dm_patches/dm-timestamps.rb +6 -0
  5. data/lib/mack-data_mapper/dm_patches/migrations.rb +9 -0
  6. data/lib/{genosaurus_helpers.rb → mack-data_mapper/genosaurus_helpers.rb} +1 -1
  7. data/lib/{helpers → mack-data_mapper/helpers}/orm_helpers.rb +4 -2
  8. data/lib/{migration_generator → mack-data_mapper/migration_generator}/migration_generator.rb +0 -0
  9. data/lib/{migration_generator → mack-data_mapper/migration_generator}/templates/db/migrations/%=@migration_name%.rb.template +0 -0
  10. data/lib/{model_column.rb → mack-data_mapper/model_column.rb} +3 -3
  11. data/lib/{model_generator → mack-data_mapper/model_generator}/manifest.yml +0 -0
  12. data/lib/{model_generator → mack-data_mapper/model_generator}/model_generator.rb +0 -0
  13. data/lib/{model_generator → mack-data_mapper/model_generator}/templates/model.rb.template +0 -0
  14. data/lib/{model_generator → mack-data_mapper/model_generator}/templates/rspec.rb.template +0 -0
  15. data/lib/{model_generator → mack-data_mapper/model_generator}/templates/test_case.rb.template +0 -0
  16. data/lib/{resource.rb → mack-data_mapper/resource.rb} +0 -0
  17. data/lib/{runner.rb → mack-data_mapper/runner.rb} +0 -0
  18. data/lib/{scaffold_generator → mack-data_mapper/scaffold_generator}/manifest.yml +0 -0
  19. data/lib/{scaffold_generator → mack-data_mapper/scaffold_generator}/scaffold_generator.rb +0 -0
  20. data/lib/{scaffold_generator → mack-data_mapper/scaffold_generator}/templates/app/controllers/controller.rb.template +0 -0
  21. data/lib/{scaffold_generator → mack-data_mapper/scaffold_generator}/templates/app/helpers/controllers/helper.rb.template +0 -0
  22. data/lib/{scaffold_generator → mack-data_mapper/scaffold_generator}/templates/app/views/edit.html.erb.template +0 -0
  23. data/lib/{scaffold_generator → mack-data_mapper/scaffold_generator}/templates/app/views/index.html.erb.template +0 -0
  24. data/lib/{scaffold_generator → mack-data_mapper/scaffold_generator}/templates/app/views/new.html.erb.template +0 -0
  25. data/lib/{scaffold_generator → mack-data_mapper/scaffold_generator}/templates/app/views/show.html.erb.template +0 -0
  26. data/lib/{scaffold_generator → mack-data_mapper/scaffold_generator}/templates/test/functional/rspec.rb.template +0 -0
  27. data/lib/{scaffold_generator → mack-data_mapper/scaffold_generator}/templates/test/functional/test_case.rb.template +0 -0
  28. data/lib/{tasks → mack-data_mapper/tasks}/db_create_drop_tasks.rake +0 -0
  29. data/lib/{tasks → mack-data_mapper/tasks}/db_migration_tasks.rake +3 -3
  30. data/lib/{tasks → mack-data_mapper/tasks}/test_tasks.rake +0 -0
  31. data/lib/{test_extensions.rb → mack-data_mapper/test_extensions.rb} +3 -3
  32. data/lib/mack-data_mapper_tasks.rb +1 -1
  33. metadata +103 -69
  34. data/doc/classes/DataMapper/Resource.html +0 -154
  35. data/doc/classes/Mack.html +0 -127
  36. data/doc/classes/Mack/Database.html +0 -210
  37. data/doc/classes/Mack/Genosaurus/DataMapper/Helpers.html +0 -225
  38. data/doc/classes/Mack/Genosaurus/DataMapper/ModelColumn.html +0 -237
  39. data/doc/classes/Mack/Testing/DataMapperHelpers.html +0 -151
  40. data/doc/classes/Mack/Testing/Helpers.html +0 -155
  41. data/doc/classes/Mack/ViewHelpers/DataMapperHelpers.html +0 -279
  42. data/doc/classes/MigrationGenerator.html +0 -161
  43. data/doc/classes/ModelGenerator.html +0 -183
  44. data/doc/classes/ScaffoldGenerator.html +0 -123
  45. data/doc/created.rid +0 -1
  46. data/doc/files/README.html +0 -121
  47. data/doc/files/lib/database_rb.html +0 -101
  48. data/doc/files/lib/dm_patches/confirmation_validation_rb.html +0 -101
  49. data/doc/files/lib/dm_patches/dm-cli_rb.html +0 -108
  50. data/doc/files/lib/dm_patches/migrations_rb.html +0 -101
  51. data/doc/files/lib/dm_patches/pooling_rb.html +0 -109
  52. data/doc/files/lib/genosaurus_helpers_rb.html +0 -101
  53. data/doc/files/lib/helpers/orm_helpers_rb.html +0 -101
  54. data/doc/files/lib/mack-data_mapper_rb.html +0 -110
  55. data/doc/files/lib/mack-data_mapper_tasks_rb.html +0 -101
  56. data/doc/files/lib/migration_generator/migration_generator_rb.html +0 -151
  57. data/doc/files/lib/model_column_rb.html +0 -101
  58. data/doc/files/lib/model_generator/model_generator_rb.html +0 -173
  59. data/doc/files/lib/resource_rb.html +0 -101
  60. data/doc/files/lib/runner_rb.html +0 -101
  61. data/doc/files/lib/scaffold_generator/scaffold_generator_rb.html +0 -114
  62. data/doc/files/lib/test_extensions_rb.html +0 -109
  63. data/doc/fr_class_index.html +0 -37
  64. data/doc/fr_file_index.html +0 -43
  65. data/doc/fr_method_index.html +0 -42
  66. data/doc/index.html +0 -24
  67. data/doc/rdoc-style.css +0 -208
  68. data/lib/dm_patches/confirmation_validation.rb +0 -19
  69. data/lib/dm_patches/dm-cli.rb +0 -1
  70. data/lib/dm_patches/migrations.rb +0 -23
  71. data/lib/dm_patches/pooling.rb +0 -229
@@ -1,151 +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: migration_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>migration_generator.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>lib/migration_generator/migration_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 a migration for your application.
74
- </p>
75
- <p>
76
- Example without columns:
77
- </p>
78
- <pre>
79
- rake generate:migration name=create_users
80
- </pre>
81
- <p>
82
- db/migrations/&lt;number&gt;_create_users.rb:
83
- </p>
84
- <pre>
85
- migration &lt;number&gt;, :create_users do
86
- up do
87
- end
88
-
89
- down do
90
- end
91
- end
92
- </pre>
93
- <p>
94
- Example with columns:
95
- </p>
96
- <pre>
97
- rake generate:migration name=create_users cols=username:string,email_address:string,created_at:date_time,updated_at:date_time
98
- </pre>
99
- <p>
100
- db/migrations/&lt;number&gt;_create_users.rb:
101
- </p>
102
- <pre>
103
- migration &lt;number&gt;, :create_users do
104
- up do
105
- create_table :users do
106
- column :id, Integer, :serial =&gt; true
107
- column :username, String, :size =&gt; 50
108
- column :email, String, :size =&gt; 50
109
- column :created_at, DateTime
110
- column :updated_at, DateTime
111
- end
112
- end
113
-
114
- down do
115
- drop_table :users
116
- end
117
- end
118
- </pre>
119
-
120
- </div>
121
-
122
-
123
- </div>
124
-
125
-
126
- </div>
127
-
128
-
129
- <!-- if includes -->
130
-
131
- <div id="section">
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
- <!-- if method_list -->
141
-
142
-
143
- </div>
144
-
145
-
146
- <div id="validator-badges">
147
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
148
- </div>
149
-
150
- </body>
151
- </html>
@@ -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,173 +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
87
- include DataMapper::Resource
88
-
89
- end
90
- </pre>
91
- <p>
92
- db/migrations/&lt;number&gt;_create_users.rb:
93
- </p>
94
- <pre>
95
- migration &lt;number&gt;, :create_users do
96
- up do
97
- end
98
-
99
- down do
100
- end
101
- end
102
- </pre>
103
- <p>
104
- Example with columns:
105
- </p>
106
- <pre>
107
- rake generate:model name=user cols=username:string,email_address:string,created_at:datetime,updated_at:datetime
108
- </pre>
109
- <p>
110
- app/models/user.rb:
111
- </p>
112
- <pre>
113
- class User
114
- include DataMapper::Resource
115
-
116
- property :username, String
117
- property :email_address, String
118
- property :created_at, DateTime
119
- property :updated_at, DateTime
120
- end
121
- </pre>
122
- <p>
123
- db/migrations/&lt;number&gt;_create_users.rb:
124
- </p>
125
- <pre>
126
- migration &lt;number&gt;, :create_users do
127
- up do
128
- create_table :users do
129
- column :username, String, :size =&gt; 50
130
- column :email, String, :size =&gt; 50
131
- column :created_at, DateTime
132
- column :updated_at, DateTime
133
- end
134
- end
135
-
136
- down do
137
- drop_table :users
138
- end
139
- end
140
- </pre>
141
-
142
- </div>
143
-
144
-
145
- </div>
146
-
147
-
148
- </div>
149
-
150
-
151
- <!-- if includes -->
152
-
153
- <div id="section">
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
- <!-- if method_list -->
163
-
164
-
165
- </div>
166
-
167
-
168
- <div id="validator-badges">
169
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
170
- </div>
171
-
172
- </body>
173
- </html>
@@ -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: resource.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>resource.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>lib/resource.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>