express_templates 0.4.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/lib/core_extensions/string.rb +25 -0
  3. data/lib/express_templates/components/capabilities/resourceful.rb +135 -0
  4. data/lib/express_templates/components/forms/express_form.rb +2 -15
  5. data/lib/express_templates/components/forms/form_component.rb +2 -6
  6. data/lib/express_templates/components/forms/form_support.rb +13 -0
  7. data/lib/express_templates/components/forms/option_support.rb +19 -5
  8. data/lib/express_templates/components/forms/select.rb +47 -9
  9. data/lib/express_templates/components/forms/select_collection.rb +57 -0
  10. data/lib/express_templates/components/forms.rb +3 -1
  11. data/lib/express_templates/components/tree_for.rb +9 -5
  12. data/lib/express_templates/version.rb +1 -1
  13. data/lib/express_templates.rb +1 -0
  14. data/test/components/capabilities/resourceful_test.rb +63 -0
  15. data/test/components/forms/express_form_test.rb +9 -9
  16. data/test/components/forms/select_test.rb +50 -3
  17. data/test/core_extensions/string_test.rb +20 -0
  18. data/test/dummy/log/test.log +9268 -63499
  19. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/-1ax0k6FO5drSUN6jbogg4G0JliUHLffvQUvzSePKxA.cache +1 -0
  20. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/28LzLLDYjhr3jmu0GxjZ-ms5Bol6JilDRXpg8Zgbjqs.cache +1 -0
  21. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/5AeGDyXQbv_BTj3PD4MJpNnGVwUxLsA8H1VcwB69_wE.cache +0 -0
  22. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/B0RgtiEmqwrCQuw4AnDa3fdENtJeBtO_TqtGJuWOeNs.cache +3 -0
  23. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/D-tMNp19G2zWOPPhnQRUm4K8DPa8SpKPfGALkkofTeE.cache +0 -0
  24. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Pd5YOD1DAL7QtTnwETZYBCabg5DkCFgbjt4iuBOcSoY.cache +1 -0
  25. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/bSfZQxeyghTF4WIVnzGavxlg9afmSNuqcW6bA1Bm1OA.cache +0 -0
  26. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/fvD_ZNFRzd8Sc4PoTjyHPnkg4f7WMietFunnKqNjlvc.cache +2 -0
  27. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/hKbgrf5CbMO8pe9fCHc-rI5mp1ejAhivBfvfDxBNhQA.cache +0 -0
  28. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/kpvKX5UlhhoLJv-faeq7Ibv2KQh4ROjTiarh13gHuWI.cache +2 -0
  29. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/lfyrNtbNtwuTXAWlmPCKTS-D3FHoPTY6h53wnUN36-A.cache +0 -0
  30. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/lyDRhWNhfDw_YCCSbxQw_iOIV3eTfeAoX6mTREuVZSA.cache +3 -0
  31. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/p17lC0HAHCtk1ds_NHl9xhEyMtRjfQInw1c6fmFWguc.cache +0 -0
  32. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/qzU7DVwQZ7z6i6pYUpssYsAj0y33GN83B4O1bLvkW_4.cache +1 -0
  33. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/r56eI1z7iFKeySym_9zw5hVOPjb0d6IQPn5pAYTKk04.cache +2 -0
  34. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/rGWvoeLyiyqb813IXgfDpDxks23JQoLLZOa69bzKPE8.cache +1 -0
  35. metadata +42 -14
  36. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  37. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  38. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  39. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  40. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  41. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
@@ -0,0 +1 @@
1
+ I"file:///Users/steve/Projects/appexpress/appexpress-io2/vendor/gems/express_cms/vendor/gems/express_admin/vendor/gems/express_templates/test/dummy/app/assets/javascripts/application.js?type=application/javascript&id=242b2c3e0c3a75b34f7229ec07ed0ddf1abba21dc3552916cc0ded1631ddcae8:ET
@@ -0,0 +1 @@
1
+ "%��Rm�v�S3.��O�L���ڹc�ƕq�=_j�
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash{
3
+ I"environment-version:ETTI"environment-paths;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"�file-digest:///Users/steve/Projects/appexpress/appexpress-io2/vendor/gems/express_cms/vendor/gems/express_admin/vendor/gems/express_templates/test/dummy/app/assets/stylesheets/application.css;TTI"�file-digest:///Users/steve/Projects/appexpress/appexpress-io2/vendor/gems/express_cms/vendor/gems/express_admin/vendor/gems/express_templates/test/dummy/app/assets/stylesheets;TT
@@ -0,0 +1 @@
1
+ I"file:///Users/steve/Projects/appexpress/appexpress-io2/vendor/gems/express_cms/vendor/gems/express_admin/vendor/gems/express_templates/test/dummy/app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=d7a3fa036825e4923f5fd98f7b32ea60a5b85ce6e01de6a012c141696ebe4f76:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"�file-digest:///Users/steve/Projects/appexpress/appexpress-io2/vendor/gems/express_cms/vendor/gems/express_admin/vendor/gems/express_templates/test/dummy/app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"�file-digest:///Users/steve/Projects/appexpress/appexpress-io2/vendor/gems/express_cms/vendor/gems/express_admin/vendor/gems/express_templates/test/dummy/app/assets/javascripts;TT
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"0processors:type=text/css&file_type=text/css;TTI"�file-digest:///Users/steve/Projects/appexpress/appexpress-io2/vendor/gems/express_cms/vendor/gems/express_admin/vendor/gems/express_templates/test/dummy/app/assets/stylesheets/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"�file-digest:///Users/steve/Projects/appexpress/appexpress-io2/vendor/gems/express_cms/vendor/gems/express_admin/vendor/gems/express_templates/test/dummy/app/assets/stylesheets;TT
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash{
3
+ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"�file-digest:///Users/steve/Projects/appexpress/appexpress-io2/vendor/gems/express_cms/vendor/gems/express_admin/vendor/gems/express_templates/test/dummy/app/assets/javascripts/application.js;TTI"�file-digest:///Users/steve/Projects/appexpress/appexpress-io2/vendor/gems/express_cms/vendor/gems/express_admin/vendor/gems/express_templates/test/dummy/app/assets/javascripts;TT
@@ -0,0 +1 @@
1
+ "%]!�K��X�K�֓�ޖ���';�����4x��
@@ -0,0 +1,2 @@
1
+ I"
2
+ file:///Users/steve/Projects/appexpress/appexpress-io2/vendor/gems/express_cms/vendor/gems/express_admin/vendor/gems/express_templates/test/dummy/app/assets/stylesheets/application.css?type=text/css&id=eb7079ffc449a32f6056524256e6204e3d46f80380c722c0eeae9d45b99f2c34:ET
@@ -0,0 +1 @@
1
+ I"%file:///Users/steve/Projects/appexpress/appexpress-io2/vendor/gems/express_cms/vendor/gems/express_admin/vendor/gems/express_templates/test/dummy/app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=2ae2786198d06b88b66a188765d6ec77bb7b149096cd70758c8baa073d7586fc:ET
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: express_templates
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Talcott Smith
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-28 00:00:00.000000000 Z
12
+ date: 2015-06-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -151,6 +151,7 @@ files:
151
151
  - README.md
152
152
  - Rakefile
153
153
  - lib/core_extensions/proc.rb
154
+ - lib/core_extensions/string.rb
154
155
  - lib/express_templates.rb
155
156
  - lib/express_templates/compiler.rb
156
157
  - lib/express_templates/components.rb
@@ -162,6 +163,7 @@ files:
162
163
  - lib/express_templates/components/capabilities/iterating.rb
163
164
  - lib/express_templates/components/capabilities/parenting.rb
164
165
  - lib/express_templates/components/capabilities/rendering.rb
166
+ - lib/express_templates/components/capabilities/resourceful.rb
165
167
  - lib/express_templates/components/capabilities/templating.rb
166
168
  - lib/express_templates/components/capabilities/wrapping.rb
167
169
  - lib/express_templates/components/column.rb
@@ -174,9 +176,11 @@ files:
174
176
  - lib/express_templates/components/forms/checkbox.rb
175
177
  - lib/express_templates/components/forms/express_form.rb
176
178
  - lib/express_templates/components/forms/form_component.rb
179
+ - lib/express_templates/components/forms/form_support.rb
177
180
  - lib/express_templates/components/forms/option_support.rb
178
181
  - lib/express_templates/components/forms/radio.rb
179
182
  - lib/express_templates/components/forms/select.rb
183
+ - lib/express_templates/components/forms/select_collection.rb
180
184
  - lib/express_templates/components/forms/submit.rb
181
185
  - lib/express_templates/components/null_wrap.rb
182
186
  - lib/express_templates/components/row.rb
@@ -198,6 +202,7 @@ files:
198
202
  - lib/tasks/express_templates.rake
199
203
  - test/compiler_test.rb
200
204
  - test/components/base_test.rb
205
+ - test/components/capabilities/resourceful_test.rb
201
206
  - test/components/column_test.rb
202
207
  - test/components/conditionality_test.rb
203
208
  - test/components/configurable_test.rb
@@ -215,6 +220,7 @@ files:
215
220
  - test/components/table_for_test.rb
216
221
  - test/components/tree_for_test.rb
217
222
  - test/core_extensions/proc_test.rb
223
+ - test/core_extensions/string_test.rb
218
224
  - test/dummy/Rakefile
219
225
  - test/dummy/app/assets/javascripts/application.js
220
226
  - test/dummy/app/assets/stylesheets/application.css
@@ -251,12 +257,22 @@ files:
251
257
  - test/dummy/public/favicon.ico
252
258
  - test/dummy/test/controllers/hello_controller_test.rb
253
259
  - test/dummy/test/helpers/hello_helper_test.rb
254
- - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
255
- - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
256
- - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
257
- - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
258
- - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
259
- - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
260
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/-1ax0k6FO5drSUN6jbogg4G0JliUHLffvQUvzSePKxA.cache
261
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/28LzLLDYjhr3jmu0GxjZ-ms5Bol6JilDRXpg8Zgbjqs.cache
262
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/5AeGDyXQbv_BTj3PD4MJpNnGVwUxLsA8H1VcwB69_wE.cache
263
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/B0RgtiEmqwrCQuw4AnDa3fdENtJeBtO_TqtGJuWOeNs.cache
264
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/D-tMNp19G2zWOPPhnQRUm4K8DPa8SpKPfGALkkofTeE.cache
265
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/Pd5YOD1DAL7QtTnwETZYBCabg5DkCFgbjt4iuBOcSoY.cache
266
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/bSfZQxeyghTF4WIVnzGavxlg9afmSNuqcW6bA1Bm1OA.cache
267
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/fvD_ZNFRzd8Sc4PoTjyHPnkg4f7WMietFunnKqNjlvc.cache
268
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/hKbgrf5CbMO8pe9fCHc-rI5mp1ejAhivBfvfDxBNhQA.cache
269
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/kpvKX5UlhhoLJv-faeq7Ibv2KQh4ROjTiarh13gHuWI.cache
270
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/lfyrNtbNtwuTXAWlmPCKTS-D3FHoPTY6h53wnUN36-A.cache
271
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/lyDRhWNhfDw_YCCSbxQw_iOIV3eTfeAoX6mTREuVZSA.cache
272
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/p17lC0HAHCtk1ds_NHl9xhEyMtRjfQInw1c6fmFWguc.cache
273
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/qzU7DVwQZ7z6i6pYUpssYsAj0y33GN83B4O1bLvkW_4.cache
274
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/r56eI1z7iFKeySym_9zw5hVOPjb0d6IQPn5pAYTKk04.cache
275
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/rGWvoeLyiyqb813IXgfDpDxks23JQoLLZOa69bzKPE8.cache
260
276
  - test/expander_stack_test.rb
261
277
  - test/expander_test.rb
262
278
  - test/express_templates_test.rb
@@ -295,6 +311,7 @@ summary: Write HTML templates in declarative Ruby. Create reusable view compone
295
311
  test_files:
296
312
  - test/compiler_test.rb
297
313
  - test/components/base_test.rb
314
+ - test/components/capabilities/resourceful_test.rb
298
315
  - test/components/column_test.rb
299
316
  - test/components/conditionality_test.rb
300
317
  - test/components/configurable_test.rb
@@ -312,6 +329,7 @@ test_files:
312
329
  - test/components/table_for_test.rb
313
330
  - test/components/tree_for_test.rb
314
331
  - test/core_extensions/proc_test.rb
332
+ - test/core_extensions/string_test.rb
315
333
  - test/dummy/app/assets/javascripts/application.js
316
334
  - test/dummy/app/assets/stylesheets/application.css
317
335
  - test/dummy/app/controllers/application_controller.rb
@@ -348,12 +366,22 @@ test_files:
348
366
  - test/dummy/Rakefile
349
367
  - test/dummy/test/controllers/hello_controller_test.rb
350
368
  - test/dummy/test/helpers/hello_helper_test.rb
351
- - test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
352
- - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
353
- - test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
354
- - test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
355
- - test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
356
- - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
369
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/-1ax0k6FO5drSUN6jbogg4G0JliUHLffvQUvzSePKxA.cache
370
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/28LzLLDYjhr3jmu0GxjZ-ms5Bol6JilDRXpg8Zgbjqs.cache
371
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/5AeGDyXQbv_BTj3PD4MJpNnGVwUxLsA8H1VcwB69_wE.cache
372
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/B0RgtiEmqwrCQuw4AnDa3fdENtJeBtO_TqtGJuWOeNs.cache
373
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/bSfZQxeyghTF4WIVnzGavxlg9afmSNuqcW6bA1Bm1OA.cache
374
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/D-tMNp19G2zWOPPhnQRUm4K8DPa8SpKPfGALkkofTeE.cache
375
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/fvD_ZNFRzd8Sc4PoTjyHPnkg4f7WMietFunnKqNjlvc.cache
376
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/hKbgrf5CbMO8pe9fCHc-rI5mp1ejAhivBfvfDxBNhQA.cache
377
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/kpvKX5UlhhoLJv-faeq7Ibv2KQh4ROjTiarh13gHuWI.cache
378
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/lfyrNtbNtwuTXAWlmPCKTS-D3FHoPTY6h53wnUN36-A.cache
379
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/lyDRhWNhfDw_YCCSbxQw_iOIV3eTfeAoX6mTREuVZSA.cache
380
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/p17lC0HAHCtk1ds_NHl9xhEyMtRjfQInw1c6fmFWguc.cache
381
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/Pd5YOD1DAL7QtTnwETZYBCabg5DkCFgbjt4iuBOcSoY.cache
382
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/qzU7DVwQZ7z6i6pYUpssYsAj0y33GN83B4O1bLvkW_4.cache
383
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/r56eI1z7iFKeySym_9zw5hVOPjb0d6IQPn5pAYTKk04.cache
384
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/rGWvoeLyiyqb813IXgfDpDxks23JQoLLZOa69bzKPE8.cache
357
385
  - test/expander_stack_test.rb
358
386
  - test/expander_test.rb
359
387
  - test/express_templates_test.rb