mack-data_mapper 0.7.1 → 0.7.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. metadata +3 -39
  2. data/doc/classes/DataMapper/Resource.html +0 -154
  3. data/doc/classes/Mack.html +0 -135
  4. data/doc/classes/Mack/DataMapper/Session.html +0 -124
  5. data/doc/classes/Mack/Database.html +0 -311
  6. data/doc/classes/Mack/Database/Generators.html +0 -140
  7. data/doc/classes/Mack/Database/Migrations.html +0 -206
  8. data/doc/classes/Mack/SessionStore/DataMapper.html +0 -262
  9. data/doc/classes/Mack/Testing/DataMapperHelpers.html +0 -151
  10. data/doc/classes/Mack/ViewHelpers/DataMapperHelpers.html +0 -187
  11. data/doc/classes/MigrationGenerator.html +0 -161
  12. data/doc/classes/ModelGenerator.html +0 -183
  13. data/doc/created.rid +0 -1
  14. data/doc/files/README.html +0 -230
  15. data/doc/files/lib/mack-data_mapper/database_migrations_rb.html +0 -115
  16. data/doc/files/lib/mack-data_mapper/database_rb.html +0 -101
  17. data/doc/files/lib/mack-data_mapper/dm_patches/dm-timestamps_rb.html +0 -116
  18. data/doc/files/lib/mack-data_mapper/dm_patches/migrations_rb.html +0 -101
  19. data/doc/files/lib/mack-data_mapper/dm_patches/model_rb.html +0 -158
  20. data/doc/files/lib/mack-data_mapper/dm_patches/property_set_rb.html +0 -125
  21. data/doc/files/lib/mack-data_mapper/dm_patches/validations_rb.html +0 -125
  22. data/doc/files/lib/mack-data_mapper/generators_rb.html +0 -101
  23. data/doc/files/lib/mack-data_mapper/helpers/orm_helpers_rb.html +0 -101
  24. data/doc/files/lib/mack-data_mapper/migration_generator/migration_generator_rb.html +0 -151
  25. data/doc/files/lib/mack-data_mapper/model_generator/model_generator_rb.html +0 -173
  26. data/doc/files/lib/mack-data_mapper/resource_rb.html +0 -101
  27. data/doc/files/lib/mack-data_mapper/runner_rb.html +0 -101
  28. data/doc/files/lib/mack-data_mapper/sessions/data_mapper_session_store_rb.html +0 -101
  29. data/doc/files/lib/mack-data_mapper/sessions/session_rb.html +0 -101
  30. data/doc/files/lib/mack-data_mapper/test_extensions_rb.html +0 -109
  31. data/doc/files/lib/mack-data_mapper_rb.html +0 -110
  32. data/doc/files/lib/mack-data_mapper_tasks_rb.html +0 -108
  33. data/doc/fr_class_index.html +0 -37
  34. data/doc/fr_file_index.html +0 -45
  35. data/doc/fr_method_index.html +0 -42
  36. data/doc/index.html +0 -24
  37. 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: database.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>database.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>lib/mack-data_mapper/database.rb
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Mon Sep 08 10:32:44 -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,116 +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: dm-timestamps.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>dm-timestamps.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>lib/mack-data_mapper/dm_patches/dm-timestamps.rb
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Mon Sep 08 10:32:44 -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
- module DataMapper # :nodoc:
74
- </p>
75
- <pre>
76
- module Timestamp # :nodoc:
77
- TIMESTAMP_PROPERTIES[:created_at] = lambda { |r| r.created_at = DateTime.now if r.new_record? &amp;&amp; r.created_at.nil? } # :nodoc:
78
- TIMESTAMP_PROPERTIES[:created_on] = lambda { |r| r.created_on = DateTime.now if r.new_record? &amp;&amp; r.created_on.nil? } # :nodoc:
79
- end
80
- </pre>
81
- <p>
82
- end
83
- </p>
84
-
85
- </div>
86
-
87
-
88
- </div>
89
-
90
-
91
- </div>
92
-
93
-
94
- <!-- if includes -->
95
-
96
- <div id="section">
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
- <!-- if method_list -->
106
-
107
-
108
- </div>
109
-
110
-
111
- <div id="validator-badges">
112
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
113
- </div>
114
-
115
- </body>
116
- </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: migrations.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>migrations.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>lib/mack-data_mapper/dm_patches/migrations.rb
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Mon Sep 08 10:32:44 -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,158 +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.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.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>lib/mack-data_mapper/dm_patches/model.rb
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Mon Sep 08 10:32:44 -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
- module DataMapper # :nodoc:
74
- </p>
75
- <pre>
76
- module Model # :nodoc:
77
-
78
- def property(name, type, options = {})
79
- property = Property.new(self, name, type, options)
80
-
81
- create_property_getter(property)
82
- create_property_setter(property)
83
-
84
- @properties[repository_name][property.name] = property
85
-
86
- # Add property to the other mappings as well if this is for the default
87
- # repository.
88
- if repository_name == default_repository_name
89
- @properties.each_pair do |repository_name, properties|
90
- next if repository_name == default_repository_name
91
- properties &lt;&lt; property
92
- end
93
- end
94
-
95
- # Add the property to the lazy_loads set for this resources repository
96
- # only.
97
- # TODO Is this right or should we add the lazy contexts to all
98
- # repositories?
99
- if property.lazy?
100
- context = options.fetch(:lazy, :default)
101
- context = :default if context == true
102
-
103
- Array(context).each do |item|
104
- @properties[repository_name].lazy_context(item) &lt;&lt; name
105
- end
106
- end
107
-
108
- # add the property to the child classes only if the property was
109
- # added after the child classes' properties have been copied from
110
- # the parent
111
- if respond_to?(:descendants)
112
- descendants.each do |model|
113
- next if model.properties(repository_name).has_property?(name)
114
- model.property(name, type, options)
115
- end
116
- end
117
-
118
- property
119
- end
120
-
121
- end # module Model
122
- </pre>
123
- <p>
124
- end # module DataMapper
125
- </p>
126
-
127
- </div>
128
-
129
-
130
- </div>
131
-
132
-
133
- </div>
134
-
135
-
136
- <!-- if includes -->
137
-
138
- <div id="section">
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
- <!-- if method_list -->
148
-
149
-
150
- </div>
151
-
152
-
153
- <div id="validator-badges">
154
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
155
- </div>
156
-
157
- </body>
158
- </html>