draper 0.17.0 → 1.0.0.beta2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. data/.gitignore +3 -0
  2. data/.travis.yml +5 -0
  3. data/CHANGELOG.markdown +49 -0
  4. data/Gemfile +4 -0
  5. data/Rakefile +50 -31
  6. data/Readme.markdown +63 -92
  7. data/draper.gemspec +6 -4
  8. data/lib/draper/collection_decorator.rb +88 -0
  9. data/lib/draper/decoratable.rb +44 -0
  10. data/lib/draper/decorated_association.rb +55 -0
  11. data/lib/draper/decorator.rb +260 -0
  12. data/lib/draper/finders.rb +34 -0
  13. data/lib/draper/helper_proxy.rb +16 -0
  14. data/lib/draper/railtie.rb +17 -21
  15. data/lib/draper/security.rb +48 -0
  16. data/lib/draper/tasks/tu.rake +5 -0
  17. data/lib/draper/test/minitest_integration.rb +5 -24
  18. data/lib/draper/test/rspec_integration.rb +0 -6
  19. data/lib/draper/test/test_unit_integration.rb +9 -0
  20. data/lib/draper/version.rb +1 -1
  21. data/lib/draper/view_context.rb +24 -6
  22. data/lib/draper/view_helpers.rb +36 -0
  23. data/lib/draper.rb +48 -7
  24. data/lib/generators/decorator/decorator_generator.rb +1 -1
  25. data/lib/generators/decorator/templates/decorator.rb +0 -1
  26. data/lib/generators/rspec/decorator_generator.rb +1 -1
  27. data/lib/generators/test_unit/decorator_generator.rb +1 -1
  28. data/lib/generators/test_unit/templates/decorator_test.rb +0 -3
  29. data/spec/draper/collection_decorator_spec.rb +240 -0
  30. data/spec/draper/decoratable_spec.rb +164 -0
  31. data/spec/draper/decorated_association_spec.rb +130 -0
  32. data/spec/draper/decorator_spec.rb +622 -0
  33. data/spec/draper/finders_spec.rb +145 -0
  34. data/spec/draper/helper_proxy_spec.rb +12 -0
  35. data/spec/draper/security_spec.rb +158 -0
  36. data/spec/draper/view_helpers_spec.rb +41 -0
  37. data/spec/dummy/.rspec +2 -0
  38. data/spec/dummy/README.rdoc +261 -0
  39. data/spec/dummy/Rakefile +7 -0
  40. data/spec/dummy/app/controllers/application_controller.rb +4 -0
  41. data/spec/dummy/app/controllers/localized_urls.rb +5 -0
  42. data/spec/dummy/app/controllers/posts_controller.rb +17 -0
  43. data/spec/dummy/app/decorators/post_decorator.rb +29 -0
  44. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  45. data/spec/dummy/app/mailers/application_mailer.rb +3 -0
  46. data/spec/dummy/app/mailers/post_mailer.rb +9 -0
  47. data/spec/dummy/app/models/post.rb +3 -0
  48. data/spec/dummy/app/views/layouts/application.html.erb +11 -0
  49. data/spec/dummy/app/views/post_mailer/decorated_email.html.erb +1 -0
  50. data/spec/dummy/app/views/posts/_post.html.erb +19 -0
  51. data/spec/dummy/app/views/posts/show.html.erb +1 -0
  52. data/spec/dummy/config/application.rb +64 -0
  53. data/spec/dummy/config/boot.rb +10 -0
  54. data/spec/dummy/config/database.yml +25 -0
  55. data/spec/dummy/config/environment.rb +5 -0
  56. data/spec/dummy/config/environments/development.rb +34 -0
  57. data/spec/dummy/config/environments/production.rb +55 -0
  58. data/spec/dummy/config/environments/test.rb +32 -0
  59. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  60. data/spec/dummy/config/initializers/inflections.rb +15 -0
  61. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  62. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  63. data/spec/dummy/config/initializers/session_store.rb +8 -0
  64. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  65. data/spec/dummy/config/locales/en.yml +5 -0
  66. data/spec/dummy/config/routes.rb +7 -0
  67. data/spec/dummy/config.ru +4 -0
  68. data/spec/dummy/db/migrate/20121019115657_create_posts.rb +8 -0
  69. data/spec/dummy/db/schema.rb +21 -0
  70. data/spec/dummy/db/seeds.rb +2 -0
  71. data/spec/dummy/lib/tasks/spec.rake +5 -0
  72. data/spec/dummy/log/.gitkeep +0 -0
  73. data/spec/dummy/public/404.html +26 -0
  74. data/spec/dummy/public/422.html +26 -0
  75. data/spec/dummy/public/500.html +25 -0
  76. data/spec/dummy/public/favicon.ico +0 -0
  77. data/spec/dummy/script/rails +6 -0
  78. data/spec/dummy/spec/decorators/post_decorator_spec.rb +26 -0
  79. data/spec/dummy/spec/mailers/post_mailer_spec.rb +29 -0
  80. data/spec/dummy/spec/spec_helper.rb +9 -0
  81. data/spec/generators/decorator/decorator_generator_spec.rb +25 -6
  82. data/spec/integration/integration_spec.rb +33 -0
  83. data/spec/minitest-rails/spec_type_spec.rb +63 -0
  84. data/{performance → spec/performance}/decorators.rb +2 -4
  85. data/spec/spec_helper.rb +23 -26
  86. data/spec/support/action_controller.rb +12 -0
  87. data/spec/support/active_model.rb +7 -0
  88. data/spec/support/{samples/active_record.rb → active_record.rb} +5 -0
  89. data/spec/support/{samples → decorators}/decorator_with_application_helper.rb +1 -1
  90. data/spec/support/decorators/namespaced_product_decorator.rb +5 -0
  91. data/spec/support/decorators/non_active_model_product_decorator.rb +2 -0
  92. data/spec/support/decorators/product_decorator.rb +23 -0
  93. data/spec/support/decorators/products_decorator.rb +10 -0
  94. data/spec/support/decorators/some_thing_decorator.rb +2 -0
  95. data/spec/support/{samples → decorators}/specific_product_decorator.rb +0 -2
  96. data/spec/support/dummy_app.rb +84 -0
  97. data/spec/support/matchers/have_text.rb +50 -0
  98. data/spec/support/{samples → models}/namespaced_product.rb +1 -3
  99. data/spec/support/{samples → models}/non_active_model_product.rb +1 -0
  100. data/spec/support/{samples → models}/product.rb +17 -2
  101. data/spec/support/models/some_thing.rb +5 -0
  102. data/spec/support/models/uninferrable_decorator_model.rb +3 -0
  103. metadata +211 -102
  104. data/doc/ApplicationDecorator.html +0 -147
  105. data/doc/Draper/AllHelpers.html +0 -256
  106. data/doc/Draper/Base.html +0 -1222
  107. data/doc/Draper/DecoratorGenerator.html +0 -216
  108. data/doc/Draper/LazyHelpers.html +0 -174
  109. data/doc/Draper/ModelSupport.html +0 -164
  110. data/doc/Draper/System.html +0 -179
  111. data/doc/Draper.html +0 -123
  112. data/doc/_index.html +0 -172
  113. data/doc/class_list.html +0 -47
  114. data/doc/css/common.css +0 -1
  115. data/doc/css/full_list.css +0 -53
  116. data/doc/css/style.css +0 -320
  117. data/doc/file_list.html +0 -46
  118. data/doc/frames.html +0 -13
  119. data/doc/index.html +0 -172
  120. data/doc/js/app.js +0 -205
  121. data/doc/js/full_list.js +0 -150
  122. data/doc/js/jquery.js +0 -16
  123. data/doc/method_list.html +0 -174
  124. data/doc/top-level-namespace.html +0 -103
  125. data/lib/draper/active_model_support.rb +0 -27
  126. data/lib/draper/base.rb +0 -312
  127. data/lib/draper/decorated_enumerable_proxy.rb +0 -57
  128. data/lib/draper/model_support.rb +0 -17
  129. data/lib/draper/rspec_integration.rb +0 -2
  130. data/lib/draper/system.rb +0 -10
  131. data/lib/draper/test/view_context.rb +0 -12
  132. data/spec/draper/base_spec.rb +0 -863
  133. data/spec/draper/helper_support_spec.rb +0 -18
  134. data/spec/draper/model_support_spec.rb +0 -48
  135. data/spec/draper/view_context_spec.rb +0 -30
  136. data/spec/support/samples/active_model.rb +0 -9
  137. data/spec/support/samples/application_controller.rb +0 -42
  138. data/spec/support/samples/application_helper.rb +0 -8
  139. data/spec/support/samples/decorator.rb +0 -5
  140. data/spec/support/samples/decorator_with_allows.rb +0 -3
  141. data/spec/support/samples/decorator_with_denies.rb +0 -3
  142. data/spec/support/samples/decorator_with_denies_all.rb +0 -3
  143. data/spec/support/samples/decorator_with_multiple_allows.rb +0 -4
  144. data/spec/support/samples/decorator_with_special_methods.rb +0 -13
  145. data/spec/support/samples/namespaced_product_decorator.rb +0 -7
  146. data/spec/support/samples/product_decorator.rb +0 -7
  147. data/spec/support/samples/sequel_product.rb +0 -13
  148. data/spec/support/samples/some_thing.rb +0 -2
  149. data/spec/support/samples/some_thing_decorator.rb +0 -3
  150. /data/{performance → spec/performance}/active_record.rb +0 -0
  151. /data/{performance/bechmark.rb → spec/performance/benchmark.rb} +0 -0
  152. /data/{performance → spec/performance}/models.rb +0 -0
  153. /data/spec/support/{samples → decorators}/widget_decorator.rb +0 -0
  154. /data/spec/support/{samples → models}/widget.rb +0 -0
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: draper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
5
- prerelease:
4
+ version: 1.0.0.beta2
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jeff Casimir
@@ -10,14 +10,14 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-08-21 00:00:00.000000000 Z
13
+ date: 2012-12-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
- - - ~>
20
+ - - ! '>='
21
21
  - !ruby/object:Gem::Version
22
22
  version: '3.2'
23
23
  type: :runtime
@@ -25,7 +25,7 @@ dependencies:
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  none: false
27
27
  requirements:
28
- - - ~>
28
+ - - ! '>='
29
29
  - !ruby/object:Gem::Version
30
30
  version: '3.2'
31
31
  - !ruby/object:Gem::Dependency
@@ -33,7 +33,7 @@ dependencies:
33
33
  requirement: !ruby/object:Gem::Requirement
34
34
  none: false
35
35
  requirements:
36
- - - ~>
36
+ - - ! '>='
37
37
  - !ruby/object:Gem::Version
38
38
  version: '3.2'
39
39
  type: :runtime
@@ -41,7 +41,7 @@ dependencies:
41
41
  version_requirements: !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
- - - ~>
44
+ - - ! '>='
45
45
  - !ruby/object:Gem::Version
46
46
  version: '3.2'
47
47
  - !ruby/object:Gem::Dependency
@@ -49,17 +49,17 @@ dependencies:
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
- - - '='
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.2.2
54
+ version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
58
  none: false
59
59
  requirements:
60
- - - '='
60
+ - - ! '>='
61
61
  - !ruby/object:Gem::Version
62
- version: 0.2.2
62
+ version: '0'
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: rake
65
65
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +108,38 @@ dependencies:
108
108
  - - ! '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: minitest-rails
113
+ requirement: !ruby/object:Gem::Requirement
114
+ none: false
115
+ requirements:
116
+ - - ~>
117
+ - !ruby/object:Gem::Version
118
+ version: '0.2'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ~>
125
+ - !ruby/object:Gem::Version
126
+ version: '0.2'
127
+ - !ruby/object:Gem::Dependency
128
+ name: capybara
129
+ requirement: !ruby/object:Gem::Requirement
130
+ none: false
131
+ requirements:
132
+ - - ! '>='
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ type: :development
136
+ prerelease: false
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
111
143
  description: Draper implements a decorator or presenter pattern for Rails applications.
112
144
  email:
113
145
  - jeff@casimircreative.com
@@ -125,43 +157,25 @@ files:
125
157
  - Guardfile
126
158
  - Rakefile
127
159
  - Readme.markdown
128
- - doc/ApplicationDecorator.html
129
- - doc/Draper.html
130
- - doc/Draper/AllHelpers.html
131
- - doc/Draper/Base.html
132
- - doc/Draper/DecoratorGenerator.html
133
- - doc/Draper/LazyHelpers.html
134
- - doc/Draper/ModelSupport.html
135
- - doc/Draper/System.html
136
- - doc/_index.html
137
- - doc/class_list.html
138
- - doc/css/common.css
139
- - doc/css/full_list.css
140
- - doc/css/style.css
141
- - doc/file_list.html
142
- - doc/frames.html
143
- - doc/index.html
144
- - doc/js/app.js
145
- - doc/js/full_list.js
146
- - doc/js/jquery.js
147
- - doc/method_list.html
148
- - doc/top-level-namespace.html
149
160
  - draper.gemspec
150
161
  - lib/draper.rb
151
- - lib/draper/active_model_support.rb
152
- - lib/draper/base.rb
153
- - lib/draper/decorated_enumerable_proxy.rb
162
+ - lib/draper/collection_decorator.rb
163
+ - lib/draper/decoratable.rb
164
+ - lib/draper/decorated_association.rb
165
+ - lib/draper/decorator.rb
166
+ - lib/draper/finders.rb
167
+ - lib/draper/helper_proxy.rb
154
168
  - lib/draper/helper_support.rb
155
169
  - lib/draper/lazy_helpers.rb
156
- - lib/draper/model_support.rb
157
170
  - lib/draper/railtie.rb
158
- - lib/draper/rspec_integration.rb
159
- - lib/draper/system.rb
171
+ - lib/draper/security.rb
172
+ - lib/draper/tasks/tu.rake
160
173
  - lib/draper/test/minitest_integration.rb
161
174
  - lib/draper/test/rspec_integration.rb
162
- - lib/draper/test/view_context.rb
175
+ - lib/draper/test/test_unit_integration.rb
163
176
  - lib/draper/version.rb
164
177
  - lib/draper/view_context.rb
178
+ - lib/draper/view_helpers.rb
165
179
  - lib/generators/decorator/decorator_generator.rb
166
180
  - lib/generators/decorator/templates/decorator.rb
167
181
  - lib/generators/resource_override.rb
@@ -169,39 +183,86 @@ files:
169
183
  - lib/generators/rspec/templates/decorator_spec.rb
170
184
  - lib/generators/test_unit/decorator_generator.rb
171
185
  - lib/generators/test_unit/templates/decorator_test.rb
172
- - performance/active_record.rb
173
- - performance/bechmark.rb
174
- - performance/decorators.rb
175
- - performance/models.rb
176
- - spec/draper/base_spec.rb
177
- - spec/draper/helper_support_spec.rb
178
- - spec/draper/model_support_spec.rb
179
- - spec/draper/view_context_spec.rb
186
+ - spec/draper/collection_decorator_spec.rb
187
+ - spec/draper/decoratable_spec.rb
188
+ - spec/draper/decorated_association_spec.rb
189
+ - spec/draper/decorator_spec.rb
190
+ - spec/draper/finders_spec.rb
191
+ - spec/draper/helper_proxy_spec.rb
192
+ - spec/draper/security_spec.rb
193
+ - spec/draper/view_helpers_spec.rb
194
+ - spec/dummy/.rspec
195
+ - spec/dummy/README.rdoc
196
+ - spec/dummy/Rakefile
197
+ - spec/dummy/app/controllers/application_controller.rb
198
+ - spec/dummy/app/controllers/localized_urls.rb
199
+ - spec/dummy/app/controllers/posts_controller.rb
200
+ - spec/dummy/app/decorators/post_decorator.rb
201
+ - spec/dummy/app/helpers/application_helper.rb
202
+ - spec/dummy/app/mailers/application_mailer.rb
203
+ - spec/dummy/app/mailers/post_mailer.rb
204
+ - spec/dummy/app/models/post.rb
205
+ - spec/dummy/app/views/layouts/application.html.erb
206
+ - spec/dummy/app/views/post_mailer/decorated_email.html.erb
207
+ - spec/dummy/app/views/posts/_post.html.erb
208
+ - spec/dummy/app/views/posts/show.html.erb
209
+ - spec/dummy/config.ru
210
+ - spec/dummy/config/application.rb
211
+ - spec/dummy/config/boot.rb
212
+ - spec/dummy/config/database.yml
213
+ - spec/dummy/config/environment.rb
214
+ - spec/dummy/config/environments/development.rb
215
+ - spec/dummy/config/environments/production.rb
216
+ - spec/dummy/config/environments/test.rb
217
+ - spec/dummy/config/initializers/backtrace_silencers.rb
218
+ - spec/dummy/config/initializers/inflections.rb
219
+ - spec/dummy/config/initializers/mime_types.rb
220
+ - spec/dummy/config/initializers/secret_token.rb
221
+ - spec/dummy/config/initializers/session_store.rb
222
+ - spec/dummy/config/initializers/wrap_parameters.rb
223
+ - spec/dummy/config/locales/en.yml
224
+ - spec/dummy/config/routes.rb
225
+ - spec/dummy/db/migrate/20121019115657_create_posts.rb
226
+ - spec/dummy/db/schema.rb
227
+ - spec/dummy/db/seeds.rb
228
+ - spec/dummy/lib/tasks/spec.rake
229
+ - spec/dummy/log/.gitkeep
230
+ - spec/dummy/public/404.html
231
+ - spec/dummy/public/422.html
232
+ - spec/dummy/public/500.html
233
+ - spec/dummy/public/favicon.ico
234
+ - spec/dummy/script/rails
235
+ - spec/dummy/spec/decorators/post_decorator_spec.rb
236
+ - spec/dummy/spec/mailers/post_mailer_spec.rb
237
+ - spec/dummy/spec/spec_helper.rb
180
238
  - spec/generators/decorator/decorator_generator_spec.rb
239
+ - spec/integration/integration_spec.rb
240
+ - spec/minitest-rails/spec_type_spec.rb
241
+ - spec/performance/active_record.rb
242
+ - spec/performance/benchmark.rb
243
+ - spec/performance/decorators.rb
244
+ - spec/performance/models.rb
181
245
  - spec/spec_helper.rb
182
- - spec/support/samples/active_model.rb
183
- - spec/support/samples/active_record.rb
184
- - spec/support/samples/application_controller.rb
185
- - spec/support/samples/application_helper.rb
186
- - spec/support/samples/decorator.rb
187
- - spec/support/samples/decorator_with_allows.rb
188
- - spec/support/samples/decorator_with_application_helper.rb
189
- - spec/support/samples/decorator_with_denies.rb
190
- - spec/support/samples/decorator_with_denies_all.rb
191
- - spec/support/samples/decorator_with_multiple_allows.rb
192
- - spec/support/samples/decorator_with_special_methods.rb
193
- - spec/support/samples/namespaced_product.rb
194
- - spec/support/samples/namespaced_product_decorator.rb
195
- - spec/support/samples/non_active_model_product.rb
196
- - spec/support/samples/product.rb
197
- - spec/support/samples/product_decorator.rb
198
- - spec/support/samples/sequel_product.rb
199
- - spec/support/samples/some_thing.rb
200
- - spec/support/samples/some_thing_decorator.rb
201
- - spec/support/samples/specific_product_decorator.rb
202
- - spec/support/samples/widget.rb
203
- - spec/support/samples/widget_decorator.rb
204
- homepage: http://github.com/jcasimir/draper
246
+ - spec/support/action_controller.rb
247
+ - spec/support/active_model.rb
248
+ - spec/support/active_record.rb
249
+ - spec/support/decorators/decorator_with_application_helper.rb
250
+ - spec/support/decorators/namespaced_product_decorator.rb
251
+ - spec/support/decorators/non_active_model_product_decorator.rb
252
+ - spec/support/decorators/product_decorator.rb
253
+ - spec/support/decorators/products_decorator.rb
254
+ - spec/support/decorators/some_thing_decorator.rb
255
+ - spec/support/decorators/specific_product_decorator.rb
256
+ - spec/support/decorators/widget_decorator.rb
257
+ - spec/support/dummy_app.rb
258
+ - spec/support/matchers/have_text.rb
259
+ - spec/support/models/namespaced_product.rb
260
+ - spec/support/models/non_active_model_product.rb
261
+ - spec/support/models/product.rb
262
+ - spec/support/models/some_thing.rb
263
+ - spec/support/models/uninferrable_decorator_model.rb
264
+ - spec/support/models/widget.rb
265
+ homepage: http://github.com/drapergem/draper
205
266
  licenses: []
206
267
  post_install_message:
207
268
  rdoc_options: []
@@ -215,16 +276,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
215
276
  version: '0'
216
277
  segments:
217
278
  - 0
218
- hash: 26927068821793701
279
+ hash: 3275361325961868093
219
280
  required_rubygems_version: !ruby/object:Gem::Requirement
220
281
  none: false
221
282
  requirements:
222
- - - ! '>='
283
+ - - ! '>'
223
284
  - !ruby/object:Gem::Version
224
- version: '0'
225
- segments:
226
- - 0
227
- hash: 26927068821793701
285
+ version: 1.3.1
228
286
  requirements: []
229
287
  rubyforge_project: draper
230
288
  rubygems_version: 1.8.24
@@ -232,32 +290,83 @@ signing_key:
232
290
  specification_version: 3
233
291
  summary: Decorator pattern implementation for Rails.
234
292
  test_files:
235
- - spec/draper/base_spec.rb
236
- - spec/draper/helper_support_spec.rb
237
- - spec/draper/model_support_spec.rb
238
- - spec/draper/view_context_spec.rb
293
+ - spec/draper/collection_decorator_spec.rb
294
+ - spec/draper/decoratable_spec.rb
295
+ - spec/draper/decorated_association_spec.rb
296
+ - spec/draper/decorator_spec.rb
297
+ - spec/draper/finders_spec.rb
298
+ - spec/draper/helper_proxy_spec.rb
299
+ - spec/draper/security_spec.rb
300
+ - spec/draper/view_helpers_spec.rb
301
+ - spec/dummy/.rspec
302
+ - spec/dummy/README.rdoc
303
+ - spec/dummy/Rakefile
304
+ - spec/dummy/app/controllers/application_controller.rb
305
+ - spec/dummy/app/controllers/localized_urls.rb
306
+ - spec/dummy/app/controllers/posts_controller.rb
307
+ - spec/dummy/app/decorators/post_decorator.rb
308
+ - spec/dummy/app/helpers/application_helper.rb
309
+ - spec/dummy/app/mailers/application_mailer.rb
310
+ - spec/dummy/app/mailers/post_mailer.rb
311
+ - spec/dummy/app/models/post.rb
312
+ - spec/dummy/app/views/layouts/application.html.erb
313
+ - spec/dummy/app/views/post_mailer/decorated_email.html.erb
314
+ - spec/dummy/app/views/posts/_post.html.erb
315
+ - spec/dummy/app/views/posts/show.html.erb
316
+ - spec/dummy/config.ru
317
+ - spec/dummy/config/application.rb
318
+ - spec/dummy/config/boot.rb
319
+ - spec/dummy/config/database.yml
320
+ - spec/dummy/config/environment.rb
321
+ - spec/dummy/config/environments/development.rb
322
+ - spec/dummy/config/environments/production.rb
323
+ - spec/dummy/config/environments/test.rb
324
+ - spec/dummy/config/initializers/backtrace_silencers.rb
325
+ - spec/dummy/config/initializers/inflections.rb
326
+ - spec/dummy/config/initializers/mime_types.rb
327
+ - spec/dummy/config/initializers/secret_token.rb
328
+ - spec/dummy/config/initializers/session_store.rb
329
+ - spec/dummy/config/initializers/wrap_parameters.rb
330
+ - spec/dummy/config/locales/en.yml
331
+ - spec/dummy/config/routes.rb
332
+ - spec/dummy/db/migrate/20121019115657_create_posts.rb
333
+ - spec/dummy/db/schema.rb
334
+ - spec/dummy/db/seeds.rb
335
+ - spec/dummy/lib/tasks/spec.rake
336
+ - spec/dummy/log/.gitkeep
337
+ - spec/dummy/public/404.html
338
+ - spec/dummy/public/422.html
339
+ - spec/dummy/public/500.html
340
+ - spec/dummy/public/favicon.ico
341
+ - spec/dummy/script/rails
342
+ - spec/dummy/spec/decorators/post_decorator_spec.rb
343
+ - spec/dummy/spec/mailers/post_mailer_spec.rb
344
+ - spec/dummy/spec/spec_helper.rb
239
345
  - spec/generators/decorator/decorator_generator_spec.rb
346
+ - spec/integration/integration_spec.rb
347
+ - spec/minitest-rails/spec_type_spec.rb
348
+ - spec/performance/active_record.rb
349
+ - spec/performance/benchmark.rb
350
+ - spec/performance/decorators.rb
351
+ - spec/performance/models.rb
240
352
  - spec/spec_helper.rb
241
- - spec/support/samples/active_model.rb
242
- - spec/support/samples/active_record.rb
243
- - spec/support/samples/application_controller.rb
244
- - spec/support/samples/application_helper.rb
245
- - spec/support/samples/decorator.rb
246
- - spec/support/samples/decorator_with_allows.rb
247
- - spec/support/samples/decorator_with_application_helper.rb
248
- - spec/support/samples/decorator_with_denies.rb
249
- - spec/support/samples/decorator_with_denies_all.rb
250
- - spec/support/samples/decorator_with_multiple_allows.rb
251
- - spec/support/samples/decorator_with_special_methods.rb
252
- - spec/support/samples/namespaced_product.rb
253
- - spec/support/samples/namespaced_product_decorator.rb
254
- - spec/support/samples/non_active_model_product.rb
255
- - spec/support/samples/product.rb
256
- - spec/support/samples/product_decorator.rb
257
- - spec/support/samples/sequel_product.rb
258
- - spec/support/samples/some_thing.rb
259
- - spec/support/samples/some_thing_decorator.rb
260
- - spec/support/samples/specific_product_decorator.rb
261
- - spec/support/samples/widget.rb
262
- - spec/support/samples/widget_decorator.rb
353
+ - spec/support/action_controller.rb
354
+ - spec/support/active_model.rb
355
+ - spec/support/active_record.rb
356
+ - spec/support/decorators/decorator_with_application_helper.rb
357
+ - spec/support/decorators/namespaced_product_decorator.rb
358
+ - spec/support/decorators/non_active_model_product_decorator.rb
359
+ - spec/support/decorators/product_decorator.rb
360
+ - spec/support/decorators/products_decorator.rb
361
+ - spec/support/decorators/some_thing_decorator.rb
362
+ - spec/support/decorators/specific_product_decorator.rb
363
+ - spec/support/decorators/widget_decorator.rb
364
+ - spec/support/dummy_app.rb
365
+ - spec/support/matchers/have_text.rb
366
+ - spec/support/models/namespaced_product.rb
367
+ - spec/support/models/non_active_model_product.rb
368
+ - spec/support/models/product.rb
369
+ - spec/support/models/some_thing.rb
370
+ - spec/support/models/uninferrable_decorator_model.rb
371
+ - spec/support/models/widget.rb
263
372
  has_rdoc:
@@ -1,147 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Class: ApplicationDecorator
8
-
9
- &mdash; Documentation by YARD 0.7.2
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- relpath = '';
19
- if (relpath != '') relpath += '/';
20
- </script>
21
-
22
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
23
-
24
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
25
-
26
-
27
- </head>
28
- <body>
29
- <script type="text/javascript" charset="utf-8">
30
- if (window.top.frames.main) document.body.className = 'frames';
31
- </script>
32
-
33
- <div id="header">
34
- <div id="menu">
35
-
36
- <a href="_index.html">Index (A)</a> &raquo;
37
-
38
-
39
- <span class="title">ApplicationDecorator</span>
40
-
41
-
42
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
- </div>
44
-
45
- <div id="search">
46
-
47
- <a id="class_list_link" href="#">Class List</a>
48
-
49
- <a id="method_list_link" href="#">Method List</a>
50
-
51
- <a id="file_list_link" href="#">File List</a>
52
-
53
- </div>
54
- <div class="clear"></div>
55
- </div>
56
-
57
- <iframe id="search_frame"></iframe>
58
-
59
- <div id="content"><h1>Class: ApplicationDecorator
60
-
61
-
62
-
63
- </h1>
64
-
65
- <dl class="box">
66
-
67
- <dt class="r1">Inherits:</dt>
68
- <dd class="r1">
69
- <span class="inheritName"><span class='object_link'><a href="Draper/Base.html" title="Draper::Base (class)">Draper::Base</a></span></span>
70
-
71
- <ul class="fullTree">
72
- <li>Object</li>
73
-
74
- <li class="next"><span class='object_link'><a href="Draper/Base.html" title="Draper::Base (class)">Draper::Base</a></span></li>
75
-
76
- <li class="next">ApplicationDecorator</li>
77
-
78
- </ul>
79
- <a href="#" class="inheritanceTree">show all</a>
80
-
81
- </dd>
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
- <dt class="r2 last">Defined in:</dt>
92
- <dd class="r2 last">lib/generators/draper/decorator/templates/application_decorator.rb</dd>
93
-
94
- </dl>
95
- <div class="clear"></div>
96
-
97
-
98
- <h2>Constant Summary</h2>
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
- <h3 class="inherited">Constants inherited from <span class='object_link'><a href="Draper/Base.html" title="Draper::Base (class)">Draper::Base</a></span></h3>
107
- <p class="inherited"><span class='object_link'><a href="Draper/Base.html#DEFAULT_DENIED-constant" title="Draper::Base::DEFAULT_DENIED (constant)">DEFAULT_DENIED</a></span>, <span class='object_link'><a href="Draper/Base.html#FORCED_PROXY-constant" title="Draper::Base::FORCED_PROXY (constant)">FORCED_PROXY</a></span></p>
108
-
109
-
110
-
111
-
112
-
113
-
114
- <h2>Instance Attribute Summary</h2>
115
-
116
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Draper/Base.html" title="Draper::Base (class)">Draper::Base</a></span></h3>
117
- <p class="inherited"><span class='object_link'><a href="Draper/Base.html#context-instance_method" title="Draper::Base#context (method)">context</a></span>, <span class='object_link'><a href="Draper/Base.html#model-instance_method" title="Draper::Base#model (method)">model</a></span></p>
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
- <h2>Method Summary</h2>
127
-
128
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Draper/Base.html" title="Draper::Base (class)">Draper::Base</a></span></h3>
129
- <p class="inherited"><span class='object_link'><a href="Draper/Base.html#allows-class_method" title="Draper::Base.allows (method)">allows</a></span>, <span class='object_link'><a href="Draper/Base.html#decorate-class_method" title="Draper::Base.decorate (method)">decorate</a></span>, <span class='object_link'><a href="Draper/Base.html#decorates-class_method" title="Draper::Base.decorates (method)">decorates</a></span>, <span class='object_link'><a href="Draper/Base.html#denies-class_method" title="Draper::Base.denies (method)">denies</a></span>, <span class='object_link'><a href="Draper/Base.html#find-class_method" title="Draper::Base.find (method)">find</a></span>, <span class='object_link'><a href="Draper/Base.html#helpers-instance_method" title="Draper::Base#helpers (method)">#helpers</a></span>, <span class='object_link'><a href="Draper/Base.html#initialize-instance_method" title="Draper::Base#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Draper/Base.html#lazy_helpers-class_method" title="Draper::Base.lazy_helpers (method)">lazy_helpers</a></span>, <span class='object_link'><a href="Draper/Base.html#model_name-class_method" title="Draper::Base.model_name (method)">model_name</a></span>, <span class='object_link'><a href="Draper/Base.html#to_model-instance_method" title="Draper::Base#to_model (method)">#to_model</a></span></p>
130
- <div id="constructor_details" class="method_details_list">
131
- <h2>Constructor Details</h2>
132
-
133
- <p class="notice">This class inherits a constructor from <span class='object_link'><a href="Draper/Base.html#initialize-instance_method" title="Draper::Base#initialize (method)">Draper::Base</a></span></p>
134
-
135
- </div>
136
-
137
-
138
- </div>
139
-
140
- <div id="footer">
141
- Generated on Wed Aug 31 23:53:09 2011 by
142
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
143
- 0.7.2 (ruby-1.8.7).
144
- </div>
145
-
146
- </body>
147
- </html>