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,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: runner.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>runner.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>lib/runner.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,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,109 +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: test_extensions.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>test_extensions.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>lib/test_extensions.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
- <div id="requires-list">
73
- <h3 class="section-bar">Required files</h3>
74
-
75
- <div class="name-list">
76
- test/unit&nbsp;&nbsp;
77
- spec&nbsp;&nbsp;
78
- </div>
79
- </div>
80
-
81
- </div>
82
-
83
-
84
- </div>
85
-
86
-
87
- <!-- if includes -->
88
-
89
- <div id="section">
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
- <!-- if method_list -->
99
-
100
-
101
- </div>
102
-
103
-
104
- <div id="validator-badges">
105
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
106
- </div>
107
-
108
- </body>
109
- </html>
@@ -1,37 +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/DataMapper/Resource.html">DataMapper::Resource</a><br />
24
- <a href="classes/Mack.html">Mack</a><br />
25
- <a href="classes/Mack/Database.html">Mack::Database</a><br />
26
- <a href="classes/Mack/Genosaurus/DataMapper/Helpers.html">Mack::Genosaurus::DataMapper::Helpers</a><br />
27
- <a href="classes/Mack/Genosaurus/DataMapper/ModelColumn.html">Mack::Genosaurus::DataMapper::ModelColumn</a><br />
28
- <a href="classes/Mack/Testing/DataMapperHelpers.html">Mack::Testing::DataMapperHelpers</a><br />
29
- <a href="classes/Mack/Testing/Helpers.html">Mack::Testing::Helpers</a><br />
30
- <a href="classes/Mack/ViewHelpers/DataMapperHelpers.html">Mack::ViewHelpers::DataMapperHelpers</a><br />
31
- <a href="classes/MigrationGenerator.html">MigrationGenerator</a><br />
32
- <a href="classes/ModelGenerator.html">ModelGenerator</a><br />
33
- <a href="classes/ScaffoldGenerator.html">ScaffoldGenerator</a><br />
34
- </div>
35
- </div>
36
- </body>
37
- </html>
@@ -1,43 +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/dm_patches/confirmation_validation_rb.html">lib/dm_patches/confirmation_validation.rb</a><br />
26
- <a href="files/lib/dm_patches/dm-cli_rb.html">lib/dm_patches/dm-cli.rb</a><br />
27
- <a href="files/lib/dm_patches/migrations_rb.html">lib/dm_patches/migrations.rb</a><br />
28
- <a href="files/lib/dm_patches/pooling_rb.html">lib/dm_patches/pooling.rb</a><br />
29
- <a href="files/lib/genosaurus_helpers_rb.html">lib/genosaurus_helpers.rb</a><br />
30
- <a href="files/lib/helpers/orm_helpers_rb.html">lib/helpers/orm_helpers.rb</a><br />
31
- <a href="files/lib/mack-data_mapper_rb.html">lib/mack-data_mapper.rb</a><br />
32
- <a href="files/lib/mack-data_mapper_tasks_rb.html">lib/mack-data_mapper_tasks.rb</a><br />
33
- <a href="files/lib/migration_generator/migration_generator_rb.html">lib/migration_generator/migration_generator.rb</a><br />
34
- <a href="files/lib/model_column_rb.html">lib/model_column.rb</a><br />
35
- <a href="files/lib/model_generator/model_generator_rb.html">lib/model_generator/model_generator.rb</a><br />
36
- <a href="files/lib/resource_rb.html">lib/resource.rb</a><br />
37
- <a href="files/lib/runner_rb.html">lib/runner.rb</a><br />
38
- <a href="files/lib/scaffold_generator/scaffold_generator_rb.html">lib/scaffold_generator/scaffold_generator.rb</a><br />
39
- <a href="files/lib/test_extensions_rb.html">lib/test_extensions.rb</a><br />
40
- </div>
41
- </div>
42
- </body>
43
- </html>
@@ -1,42 +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
- Methods
10
-
11
- -->
12
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
- <head>
14
- <title>Methods</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">Methods</h1>
22
- <div id="index-entries">
23
- <a href="classes/Mack/Genosaurus/DataMapper/Helpers.html#M000006">columns (Mack::Genosaurus::DataMapper::Helpers)</a><br />
24
- <a href="classes/Mack/Database.html#M000013">create (Mack::Database)</a><br />
25
- <a href="classes/Mack/Genosaurus/DataMapper/Helpers.html#M000007">db_directory (Mack::Genosaurus::DataMapper::Helpers)</a><br />
26
- <a href="classes/Mack/Database.html#M000014">drop (Mack::Database)</a><br />
27
- <a href="classes/Mack/ViewHelpers/DataMapperHelpers.html#M000002">error_messages_for (Mack::ViewHelpers::DataMapperHelpers)</a><br />
28
- <a href="classes/Mack/Database.html#M000012">establish_connection (Mack::Database)</a><br />
29
- <a href="classes/Mack/Genosaurus/DataMapper/ModelColumn.html#M000011">form_field (Mack::Genosaurus::DataMapper::ModelColumn)</a><br />
30
- <a href="classes/Mack/Genosaurus/DataMapper/Helpers.html#M000008">migrations_directory (Mack::Genosaurus::DataMapper::Helpers)</a><br />
31
- <a href="classes/Mack/ViewHelpers/DataMapperHelpers.html#M000004">model_password_field (Mack::ViewHelpers::DataMapperHelpers)</a><br />
32
- <a href="classes/Mack/ViewHelpers/DataMapperHelpers.html#M000003">model_text_field (Mack::ViewHelpers::DataMapperHelpers)</a><br />
33
- <a href="classes/Mack/ViewHelpers/DataMapperHelpers.html#M000005">model_textarea (Mack::ViewHelpers::DataMapperHelpers)</a><br />
34
- <a href="classes/Mack/Genosaurus/DataMapper/ModelColumn.html#M000010">new (Mack::Genosaurus::DataMapper::ModelColumn)</a><br />
35
- <a href="classes/Mack/Genosaurus/DataMapper/Helpers.html#M000009">next_migration_number (Mack::Genosaurus::DataMapper::Helpers)</a><br />
36
- <a href="classes/Mack/Testing/Helpers.html#M000015">rake_task (Mack::Testing::Helpers)</a><br />
37
- <a href="classes/Mack/Testing/DataMapperHelpers.html#M000016">rollback_transaction (Mack::Testing::DataMapperHelpers)</a><br />
38
- <a href="classes/DataMapper/Resource.html#M000001">to_param (DataMapper::Resource)</a><br />
39
- </div>
40
- </div>
41
- </body>
42
- </html>