mack-data_mapper 0.6.1.2 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/doc/classes/Mack.html +6 -6
  2. data/doc/classes/Mack/Database.html +119 -18
  3. data/doc/classes/Mack/Database/Generators.html +140 -0
  4. data/doc/classes/Mack/Database/Migrations.html +206 -0
  5. data/doc/classes/Mack/Testing/DataMapperHelpers.html +6 -6
  6. data/doc/classes/Mack/ViewHelpers/DataMapperHelpers.html +30 -124
  7. data/doc/created.rid +1 -1
  8. data/doc/files/lib/mack-data_mapper/database_migrations_rb.html +115 -0
  9. data/doc/files/lib/mack-data_mapper/database_rb.html +1 -1
  10. data/doc/files/lib/mack-data_mapper/dm_patches/dm-timestamps_rb.html +1 -1
  11. data/doc/files/lib/mack-data_mapper/dm_patches/migrations_rb.html +1 -1
  12. data/doc/files/lib/mack-data_mapper/{genosaurus_helpers_rb.html → dm_patches/model_rb.html} +5 -5
  13. data/doc/files/lib/mack-data_mapper/{scaffold_generator/scaffold_generator_rb.html → dm_patches/property_set_rb.html} +4 -17
  14. data/doc/{classes/DataMapper/Timestamp.html → files/lib/mack-data_mapper/dm_patches/validations_rb.html} +16 -20
  15. data/doc/files/lib/mack-data_mapper/{model_column_rb.html → generators_rb.html} +4 -4
  16. data/doc/files/lib/mack-data_mapper/helpers/orm_helpers_rb.html +1 -1
  17. data/doc/files/lib/mack-data_mapper/migration_generator/migration_generator_rb.html +1 -1
  18. data/doc/files/lib/mack-data_mapper/model_generator/model_generator_rb.html +1 -1
  19. data/doc/files/lib/mack-data_mapper_rb.html +2 -1
  20. data/doc/files/lib/mack-data_mapper_tasks_rb.html +8 -1
  21. data/doc/fr_class_index.html +2 -2
  22. data/doc/fr_file_index.html +5 -3
  23. data/doc/fr_method_index.html +10 -7
  24. data/lib/mack-data_mapper.rb +4 -5
  25. data/lib/mack-data_mapper/database.rb +79 -38
  26. data/lib/mack-data_mapper/database_migrations.rb +35 -0
  27. data/lib/mack-data_mapper/dm_patches/dm-timestamps.rb +4 -4
  28. data/lib/mack-data_mapper/dm_patches/migrations.rb +24 -2
  29. data/lib/mack-data_mapper/dm_patches/model.rb +48 -0
  30. data/lib/mack-data_mapper/dm_patches/property_set.rb +15 -0
  31. data/lib/mack-data_mapper/dm_patches/validations.rb +15 -0
  32. data/lib/mack-data_mapper/generators.rb +11 -0
  33. data/lib/mack-data_mapper/helpers/orm_helpers.rb +8 -32
  34. data/lib/mack-data_mapper/migration_generator/migration_generator.rb +1 -1
  35. data/lib/mack-data_mapper/model_generator/manifest.yml +2 -2
  36. data/lib/mack-data_mapper/model_generator/model_generator.rb +1 -1
  37. data/lib/mack-data_mapper_tasks.rb +1 -0
  38. metadata +42 -29
  39. data/doc/classes/ScaffoldGenerator.html +0 -123
  40. data/lib/mack-data_mapper/genosaurus_helpers.rb +0 -40
  41. data/lib/mack-data_mapper/model_column.rb +0 -42
  42. data/lib/mack-data_mapper/scaffold_generator/manifest.yml +0 -35
  43. data/lib/mack-data_mapper/scaffold_generator/scaffold_generator.rb +0 -41
  44. data/lib/mack-data_mapper/scaffold_generator/templates/app/helpers/controllers/helper.rb.template +0 -7
  45. data/lib/mack-data_mapper/scaffold_generator/templates/app/views/edit.html.erb.template +0 -19
  46. data/lib/mack-data_mapper/scaffold_generator/templates/app/views/index.html.erb.template +0 -41
  47. data/lib/mack-data_mapper/scaffold_generator/templates/app/views/new.html.erb.template +0 -19
  48. data/lib/mack-data_mapper/scaffold_generator/templates/app/views/show.html.erb.template +0 -12
  49. data/lib/mack-data_mapper/scaffold_generator/templates/test/functional/rspec.rb.template +0 -47
  50. data/lib/mack-data_mapper/scaffold_generator/templates/test/functional/test_case.rb.template +0 -9
  51. data/lib/mack-data_mapper/tasks/db_create_drop_tasks.rake +0 -57
  52. data/lib/mack-data_mapper/tasks/db_migration_tasks.rake +0 -46
  53. data/lib/mack-data_mapper/tasks/test_tasks.rake +0 -12
@@ -80,7 +80,7 @@
80
80
  <h3 class="section-bar">Methods</h3>
81
81
 
82
82
  <div class="name-list">
83
- <a href="#M000009">rollback_transaction</a>&nbsp;&nbsp;
83
+ <a href="#M000012">rollback_transaction</a>&nbsp;&nbsp;
84
84
  </div>
85
85
  </div>
86
86
 
@@ -102,19 +102,19 @@
102
102
  <div id="methods">
103
103
  <h3 class="section-bar">Public Instance methods</h3>
104
104
 
105
- <div id="method-M000009" class="method-detail">
106
- <a name="M000009"></a>
105
+ <div id="method-M000012" class="method-detail">
106
+ <a name="M000012"></a>
107
107
 
108
108
  <div class="method-heading">
109
- <a href="#M000009" class="method-signature">
109
+ <a href="#M000012" class="method-signature">
110
110
  <span class="method-name">rollback_transaction</span><span class="method-args">() {|if block_given?| ...}</span>
111
111
  </a>
112
112
  </div>
113
113
 
114
114
  <div class="method-description">
115
115
  <p><a class="source-toggle" href="#"
116
- onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
117
- <div class="method-source-code" id="M000009-source">
116
+ onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
117
+ <div class="method-source-code" id="M000012-source">
118
118
  <pre>
119
119
  <span class="ruby-comment cmt"># File lib/mack-data_mapper/test_extensions.rb, line 30</span>
120
120
  30: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rollback_transaction</span>
@@ -81,9 +81,6 @@
81
81
 
82
82
  <div class="name-list">
83
83
  <a href="#M000002">error_messages_for</a>&nbsp;&nbsp;
84
- <a href="#M000004">model_password_field</a>&nbsp;&nbsp;
85
- <a href="#M000003">model_text_field</a>&nbsp;&nbsp;
86
- <a href="#M000005">model_textarea</a>&nbsp;&nbsp;
87
84
  </div>
88
85
  </div>
89
86
 
@@ -103,7 +100,7 @@
103
100
  <tr class="top-aligned-row context-row">
104
101
  <td class="context-item-name">DEFAULT_PARTIAL</td>
105
102
  <td>=</td>
106
- <td class="context-item-value">%{ &lt;div&gt; &lt;div class=&quot;errorExplanation&quot; id=&quot;errorExplanation&quot;&gt; &lt;h2&gt;&lt;%= pluralize_word(errors.size, &quot;error&quot;) %&gt; occured.&lt;/h2&gt; &lt;ul&gt; &lt;% for error in errors %&gt; &lt;li&gt;&lt;%= error %&gt;&lt;/li&gt; &lt;% end %&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; } unless Mack::ViewHelpers::DataMapperHelpers.const_defined?(&quot;DEFAULT_PARTIAL&quot;)</td>
103
+ <td class="context-item-value">%{ &lt;div class=&quot;errorExplanation&quot; id=&quot;errorExplanation&quot;&gt; &lt;h2&gt;&lt;%= pluralize_word(errors.size, &quot;error&quot;) %&gt; occured.&lt;/h2&gt; &lt;ul&gt; &lt;% for error in errors %&gt; &lt;li&gt;&lt;%= error %&gt;&lt;/li&gt; &lt;% end %&gt; &lt;/ul&gt; &lt;/div&gt; }.strip unless Mack::ViewHelpers::DataMapperHelpers.const_defined?(&quot;DEFAULT_PARTIAL&quot;)</td>
107
104
  </tr>
108
105
  </table>
109
106
  </div>
@@ -141,126 +138,35 @@ path to partial as the second argument and that partial will be rendered.
141
138
  onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
142
139
  <div class="method-source-code" id="M000002-source">
143
140
  <pre>
144
- <span class="ruby-comment cmt"># File lib/mack-data_mapper/helpers/orm_helpers.rb, line 25</span>
145
- 25: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">error_messages_for</span>(<span class="ruby-identifier">object_names</span> = [], <span class="ruby-identifier">view_partial</span> = <span class="ruby-keyword kw">nil</span>)
146
- 26: <span class="ruby-identifier">object_names</span> = [<span class="ruby-identifier">object_names</span>].<span class="ruby-identifier">flatten</span>
147
- 27: <span class="ruby-identifier">app_errors</span> = []
148
- 28: <span class="ruby-identifier">object_names</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
149
- 29: <span class="ruby-identifier">object</span> = <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-node">&quot;@#{name}&quot;</span>)
150
- 30: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">object</span>
151
- 31: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">object</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:errors</span>)
152
- 32: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">object</span>.<span class="ruby-identifier">errors</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:full_messages</span>)
153
- 33: <span class="ruby-identifier">app_errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">object</span>.<span class="ruby-identifier">errors</span>.<span class="ruby-identifier">full_messages</span>.<span class="ruby-identifier">uniq</span>
154
- 34: <span class="ruby-keyword kw">end</span>
155
- 35: <span class="ruby-keyword kw">end</span>
156
- 36: <span class="ruby-keyword kw">end</span>
157
- 37: <span class="ruby-keyword kw">end</span>
158
- 38: <span class="ruby-identifier">app_errors</span>.<span class="ruby-identifier">flatten!</span>
159
- 39: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">app_errors</span>.<span class="ruby-identifier">empty?</span>
160
- 40: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">view_partial</span>.<span class="ruby-identifier">nil?</span>
161
- 41: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">Mack</span>.<span class="ruby-identifier">root</span>, <span class="ruby-value str">&quot;app&quot;</span>, <span class="ruby-value str">&quot;views&quot;</span>, <span class="ruby-value str">&quot;application&quot;</span>, <span class="ruby-value str">&quot;_error_messages.html.erb&quot;</span>))
162
- 42: <span class="ruby-identifier">render</span>(<span class="ruby-identifier">:partial</span>, <span class="ruby-value str">&quot;application/error_messages&quot;</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">&gt;</span> {<span class="ruby-identifier">:errors</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">app_errors</span>})
163
- 43: <span class="ruby-keyword kw">else</span>
164
- 44: <span class="ruby-identifier">render</span>(<span class="ruby-identifier">:inline</span>, <span class="ruby-constant">DEFAULT_PARTIAL</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">&gt;</span> {<span class="ruby-identifier">:errors</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">app_errors</span>})
165
- 45: <span class="ruby-keyword kw">end</span>
166
- 46: <span class="ruby-keyword kw">else</span>
167
- 47: <span class="ruby-identifier">render</span>(<span class="ruby-identifier">:partial</span>, <span class="ruby-identifier">view_partial</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">&gt;</span> {<span class="ruby-identifier">:errors</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">app_errors</span>})
168
- 48: <span class="ruby-keyword kw">end</span>
169
- 49: <span class="ruby-keyword kw">else</span>
170
- 50: <span class="ruby-value str">&quot;&quot;</span>
171
- 51: <span class="ruby-keyword kw">end</span>
172
- 52: <span class="ruby-keyword kw">end</span>
173
- </pre>
174
- </div>
175
- </div>
176
- </div>
177
-
178
- <div id="method-M000004" class="method-detail">
179
- <a name="M000004"></a>
180
-
181
- <div class="method-heading">
182
- <a href="#M000004" class="method-signature">
183
- <span class="method-name">model_password_field</span><span class="method-args">(model, property, options = {})</span>
184
- </a>
185
- </div>
186
-
187
- <div class="method-description">
188
- <p>
189
- Generates a password input tag for a given model and field
190
- </p>
191
- <p>
192
- Example: <a
193
- href="DataMapperHelpers.html#M000004">model_password_field</a>(@user,
194
- :password) # =&gt; &lt;input id=&quot;user_username&quot;
195
- name=&quot;user[username]&quot; type=&quot;password&quot;
196
- value=&quot;&lt;@user.username&#8216;s value&gt;&quot; /&gt;
197
- </p>
198
- <p><a class="source-toggle" href="#"
199
- onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
200
- <div class="method-source-code" id="M000004-source">
201
- <pre>
202
- <span class="ruby-comment cmt"># File lib/mack-data_mapper/helpers/orm_helpers.rb, line 67</span>
203
- 67: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">model_password_field</span>(<span class="ruby-identifier">model</span>, <span class="ruby-identifier">property</span>, <span class="ruby-identifier">options</span> = {})
204
- 68: <span class="ruby-identifier">model_text_field</span>(<span class="ruby-identifier">model</span>, <span class="ruby-identifier">property</span>, {<span class="ruby-identifier">:type</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:password</span>}.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">options</span>))
205
- 69: <span class="ruby-keyword kw">end</span>
206
- </pre>
207
- </div>
208
- </div>
209
- </div>
210
-
211
- <div id="method-M000003" class="method-detail">
212
- <a name="M000003"></a>
213
-
214
- <div class="method-heading">
215
- <a href="#M000003" class="method-signature">
216
- <span class="method-name">model_text_field</span><span class="method-args">(model, property, options = {})</span>
217
- </a>
218
- </div>
219
-
220
- <div class="method-description">
221
- <p>
222
- Generates a text input tag for a given model and field
223
- </p>
224
- <p>
225
- Example: <a
226
- href="DataMapperHelpers.html#M000003">model_text_field</a>(@user,
227
- :username) # =&gt; &lt;input id=&quot;user_username&quot;
228
- name=&quot;user[username]&quot; type=&quot;text&quot;
229
- value=&quot;&lt;@user.username&#8216;s value&gt;&quot; /&gt;
230
- </p>
231
- <p><a class="source-toggle" href="#"
232
- onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
233
- <div class="method-source-code" id="M000003-source">
234
- <pre>
235
- <span class="ruby-comment cmt"># File lib/mack-data_mapper/helpers/orm_helpers.rb, line 58</span>
236
- 58: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">model_text_field</span>(<span class="ruby-identifier">model</span>, <span class="ruby-identifier">property</span>, <span class="ruby-identifier">options</span> = {})
237
- 59: <span class="ruby-identifier">m_name</span> = <span class="ruby-identifier">model</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">underscore</span>
238
- 60: <span class="ruby-identifier">non_content_tag</span>(<span class="ruby-identifier">:input</span>, {<span class="ruby-identifier">:type</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:text</span>, <span class="ruby-identifier">:name</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;#{m_name}[#{property}]&quot;</span>, <span class="ruby-identifier">:id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;#{m_name}_#{property}&quot;</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">model</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">property</span>)}.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">options</span>))
239
- 61: <span class="ruby-keyword kw">end</span>
240
- </pre>
241
- </div>
242
- </div>
243
- </div>
244
-
245
- <div id="method-M000005" class="method-detail">
246
- <a name="M000005"></a>
247
-
248
- <div class="method-heading">
249
- <a href="#M000005" class="method-signature">
250
- <span class="method-name">model_textarea</span><span class="method-args">(model, property, options = {})</span>
251
- </a>
252
- </div>
253
-
254
- <div class="method-description">
255
- <p><a class="source-toggle" href="#"
256
- onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
257
- <div class="method-source-code" id="M000005-source">
258
- <pre>
259
- <span class="ruby-comment cmt"># File lib/mack-data_mapper/helpers/orm_helpers.rb, line 71</span>
260
- 71: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">model_textarea</span>(<span class="ruby-identifier">model</span>, <span class="ruby-identifier">property</span>, <span class="ruby-identifier">options</span> = {})
261
- 72: <span class="ruby-identifier">m_name</span> = <span class="ruby-identifier">model</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">underscore</span>
262
- 73: <span class="ruby-identifier">content_tag</span>(<span class="ruby-identifier">:textarea</span>, {<span class="ruby-identifier">:name</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;#{m_name}[#{property}]&quot;</span>, <span class="ruby-identifier">:id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;#{m_name}_#{property}&quot;</span>, <span class="ruby-identifier">:cols</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">60</span>, <span class="ruby-identifier">:rows</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">20</span>}.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">options</span>), <span class="ruby-identifier">model</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">property</span>))
263
- 74: <span class="ruby-keyword kw">end</span>
141
+ <span class="ruby-comment cmt"># File lib/mack-data_mapper/helpers/orm_helpers.rb, line 23</span>
142
+ 23: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">error_messages_for</span>(<span class="ruby-identifier">object_names</span> = [], <span class="ruby-identifier">view_partial</span> = <span class="ruby-keyword kw">nil</span>)
143
+ 24: <span class="ruby-identifier">object_names</span> = [<span class="ruby-identifier">object_names</span>].<span class="ruby-identifier">flatten</span>
144
+ 25: <span class="ruby-identifier">app_errors</span> = []
145
+ 26: <span class="ruby-identifier">object_names</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
146
+ 27: <span class="ruby-identifier">object</span> = <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-node">&quot;@#{name}&quot;</span>)
147
+ 28: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">object</span>
148
+ 29: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">object</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:errors</span>)
149
+ 30: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">object</span>.<span class="ruby-identifier">errors</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:full_messages</span>)
150
+ 31: <span class="ruby-identifier">app_errors</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">object</span>.<span class="ruby-identifier">errors</span>.<span class="ruby-identifier">full_messages</span>.<span class="ruby-identifier">uniq</span>
151
+ 32: <span class="ruby-keyword kw">end</span>
152
+ 33: <span class="ruby-keyword kw">end</span>
153
+ 34: <span class="ruby-keyword kw">end</span>
154
+ 35: <span class="ruby-keyword kw">end</span>
155
+ 36: <span class="ruby-identifier">app_errors</span>.<span class="ruby-identifier">flatten!</span>
156
+ 37: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">app_errors</span>.<span class="ruby-identifier">empty?</span>
157
+ 38: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">view_partial</span>.<span class="ruby-identifier">nil?</span>
158
+ 39: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">Mack</span>.<span class="ruby-identifier">root</span>, <span class="ruby-value str">&quot;app&quot;</span>, <span class="ruby-value str">&quot;views&quot;</span>, <span class="ruby-value str">&quot;application&quot;</span>, <span class="ruby-value str">&quot;_error_messages.html.erb&quot;</span>))
159
+ 40: <span class="ruby-identifier">render</span>(<span class="ruby-identifier">:partial</span>, <span class="ruby-value str">&quot;application/error_messages&quot;</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">&gt;</span> {<span class="ruby-identifier">:errors</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">app_errors</span>})
160
+ 41: <span class="ruby-keyword kw">else</span>
161
+ 42: <span class="ruby-identifier">render</span>(<span class="ruby-identifier">:inline</span>, <span class="ruby-constant">DEFAULT_PARTIAL</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">&gt;</span> {<span class="ruby-identifier">:errors</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">app_errors</span>})
162
+ 43: <span class="ruby-keyword kw">end</span>
163
+ 44: <span class="ruby-keyword kw">else</span>
164
+ 45: <span class="ruby-identifier">render</span>(<span class="ruby-identifier">:partial</span>, <span class="ruby-identifier">view_partial</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">&gt;</span> {<span class="ruby-identifier">:errors</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">app_errors</span>})
165
+ 46: <span class="ruby-keyword kw">end</span>
166
+ 47: <span class="ruby-keyword kw">else</span>
167
+ 48: <span class="ruby-value str">&quot;&quot;</span>
168
+ 49: <span class="ruby-keyword kw">end</span>
169
+ 50: <span class="ruby-keyword kw">end</span>
264
170
  </pre>
265
171
  </div>
266
172
  </div>
@@ -1 +1 @@
1
- Fri, 29 Aug 2008 11:16:49 -0400
1
+ Mon, 25 Aug 2008 11:24:32 -0400
@@ -0,0 +1,115 @@
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_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>database_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/database_migrations.rb
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Mon Aug 25 10:11:28 -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
+ migration_runner&nbsp;&nbsp;
77
+ </div>
78
+ </div>
79
+
80
+ </div>
81
+
82
+
83
+ </div>
84
+
85
+
86
+ <!-- if includes -->
87
+ <div id="includes">
88
+ <h3 class="section-bar">Included Modules</h3>
89
+
90
+ <div id="includes-list">
91
+ <span class="include-name">DataMapper::Types</span>
92
+ </div>
93
+ </div>
94
+
95
+ <div id="section">
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+ <!-- if method_list -->
105
+
106
+
107
+ </div>
108
+
109
+
110
+ <div id="validator-badges">
111
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
112
+ </div>
113
+
114
+ </body>
115
+ </html>
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Fri Aug 29 11:14:25 -0400 2008</td>
59
+ <td>Mon Aug 25 10:11:28 -0400 2008</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Fri Aug 29 11:14:25 -0400 2008</td>
59
+ <td>Mon Aug 25 10:11:39 -0400 2008</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Fri Aug 29 11:14:25 -0400 2008</td>
59
+ <td>Mon Aug 25 10:11:28 -0400 2008</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -5,10 +5,10 @@
5
5
 
6
6
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
7
  <head>
8
- <title>File: genosaurus_helpers.rb</title>
8
+ <title>File: model.rb</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
12
12
  <script type="text/javascript">
13
13
  // <![CDATA[
14
14
 
@@ -47,16 +47,16 @@
47
47
 
48
48
 
49
49
  <div id="fileHeader">
50
- <h1>genosaurus_helpers.rb</h1>
50
+ <h1>model.rb</h1>
51
51
  <table class="header-table">
52
52
  <tr class="top-aligned-row">
53
53
  <td><strong>Path:</strong></td>
54
- <td>lib/mack-data_mapper/genosaurus_helpers.rb
54
+ <td>lib/mack-data_mapper/dm_patches/model.rb
55
55
  </td>
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Fri Aug 29 11:14:25 -0400 2008</td>
59
+ <td>Mon Aug 25 10:11:28 -0400 2008</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -5,7 +5,7 @@
5
5
 
6
6
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
7
  <head>
8
- <title>File: scaffold_generator.rb</title>
8
+ <title>File: property_set.rb</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
11
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
@@ -47,16 +47,16 @@
47
47
 
48
48
 
49
49
  <div id="fileHeader">
50
- <h1>scaffold_generator.rb</h1>
50
+ <h1>property_set.rb</h1>
51
51
  <table class="header-table">
52
52
  <tr class="top-aligned-row">
53
53
  <td><strong>Path:</strong></td>
54
- <td>lib/mack-data_mapper/scaffold_generator/scaffold_generator.rb
54
+ <td>lib/mack-data_mapper/dm_patches/property_set.rb
55
55
  </td>
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Fri Aug 29 11:14:25 -0400 2008</td>
59
+ <td>Mon Aug 25 10:11:28 -0400 2008</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -68,19 +68,6 @@
68
68
 
69
69
  <div id="contextContent">
70
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
71
 
85
72
 
86
73
  </div>
@@ -5,10 +5,10 @@
5
5
 
6
6
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
7
  <head>
8
- <title>Module: DataMapper::Timestamp</title>
8
+ <title>File: validations.rb</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
12
12
  <script type="text/javascript">
13
13
  // <![CDATA[
14
14
 
@@ -46,24 +46,20 @@
46
46
 
47
47
 
48
48
 
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Module</strong></td>
53
- <td class="class-name-in-header">DataMapper::Timestamp</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/mack-data_mapper/dm_patches/dm-timestamps_rb.html">
59
- lib/mack-data_mapper/dm_patches/dm-timestamps.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- </table>
66
- </div>
49
+ <div id="fileHeader">
50
+ <h1>validations.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/validations.rb
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Mon Aug 25 10:11:39 -0400 2008</td>
60
+ </tr>
61
+ </table>
62
+ </div>
67
63
  <!-- banner header -->
68
64
 
69
65
  <div id="bodyContent">