sections_rails 0.7.1 → 0.7.2

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 (44) hide show
  1. data/README.md +82 -92
  2. data/lib/sections_rails/section.rb +11 -174
  3. data/lib/sections_rails/section_asset_rendering.rb +92 -0
  4. data/lib/sections_rails/section_partial_rendering.rb +100 -0
  5. data/lib/sections_rails/version.rb +1 -1
  6. data/lib/sections_rails/view_finder.rb +10 -8
  7. data/lib/sections_rails.rb +1 -1
  8. data/spec/controllers/image_assets_controller_spec.rb +38 -0
  9. data/spec/controllers/partials_controller_spec.rb +25 -11
  10. data/spec/controllers/script_assets_controller_spec.rb +7 -7
  11. data/spec/controllers/style_assets_controller_spec.rb +10 -10
  12. data/spec/controllers/view_types_controller_spec.rb +3 -3
  13. data/spec/dummy/app/controllers/image_assets_controller.rb +14 -0
  14. data/spec/dummy/app/controllers/partials_controller.rb +6 -0
  15. data/spec/dummy/app/views/image_assets/gif.html.erb +1 -0
  16. data/spec/dummy/app/views/image_assets/jpeg.html.erb +1 -0
  17. data/spec/dummy/app/views/image_assets/jpg.html.erb +1 -0
  18. data/spec/dummy/app/views/image_assets/png.html.erb +1 -0
  19. data/spec/dummy/app/views/partials/custom_partial_with_block.html.erb +3 -0
  20. data/spec/dummy/app/views/partials/tag_option.html.erb +1 -0
  21. data/spec/dummy/config/application.rb +4 -3
  22. data/spec/dummy/config/boot.rb +7 -3
  23. data/spec/dummy/config/environments/test.rb +1 -4
  24. data/spec/dummy/db/development.sqlite3 +0 -0
  25. data/spec/dummy/db/test.sqlite3 +0 -0
  26. data/spec/dummy/log/development.log +3204 -16064
  27. data/spec/dummy/log/production.log +61 -0
  28. data/spec/dummy/log/test.log +2041 -0
  29. data/spec/sections_rails/config_spec.rb +31 -0
  30. data/spec/sections_rails/partial_parser_spec.rb +12 -12
  31. data/spec/sections_rails/section_spec.rb +16 -54
  32. data/spec/sections_rails/view_finder_spec.rb +4 -4
  33. data/spec/spec_helper.rb +3 -0
  34. metadata +73 -35
  35. data/spec/dummy/tmp/cache/assets/CB9/B60/sprockets%2Fe7b839a0806e5c20e5018197f56cd656 +0 -0
  36. data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  37. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  38. data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  39. data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  40. data/spec/dummy/tmp/cache/assets/D76/4D0/sprockets%2F8a096b6dd59bfda3e461617a95524eaf +0 -0
  41. data/spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  42. data/spec/dummy/tmp/cache/assets/DE1/6A0/sprockets%2Fcae9aba95894da8a28fa8a5387dc565f +0 -0
  43. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  44. data/spec/dummy/tmp/cache/assets/E1D/010/sprockets%2Fdffad412d86bfdfbb1f307d711da21d3 +0 -0
@@ -0,0 +1,61 @@
1
+ Processing by ErrorsController#missing_section as HTML
2
+ Rendered errors/missing_section.html.erb within layouts/application (37.6ms)
3
+ Completed 500 Internal Server Error in 48ms
4
+ Processing by PartialsController#erb_section as HTML
5
+ Rendered /Users/kevin/sections_rails/app/sections/partials/erb_section/_erb_section.html.erb (0.6ms)
6
+ Completed 200 OK in 11ms (Views: 10.5ms)
7
+ Processing by PartialsController#haml_section as HTML
8
+ Completed 500 Internal Server Error in 6ms
9
+ Processing by PartialsController#no_options as HTML
10
+ Rendered /Users/kevin/sections_rails/app/sections/partials/no_options/_no_options.html.erb (0.3ms)
11
+ Completed 200 OK in 4ms (Views: 3.4ms)
12
+ Processing by PartialsController#custom_partial as HTML
13
+ Rendered /Users/kevin/sections_rails/app/sections/partials/custom_partial/_different_name.html.erb (0.4ms)
14
+ Completed 200 OK in 5ms (Views: 5.2ms)
15
+ Processing by PartialsController#custom_partial as HTML
16
+ Rendered /Users/kevin/sections_rails/app/sections/partials/custom_partial/_different_name.html.erb (0.1ms)
17
+ Completed 200 OK in 3ms (Views: 2.6ms)
18
+ Processing by PartialsController#disabled as HTML
19
+ Completed 200 OK in 4ms (Views: 4.1ms)
20
+ Processing by PartialsController#disabled as HTML
21
+ Completed 200 OK in 2ms (Views: 1.7ms)
22
+ Processing by PartialsController#production_mode as HTML
23
+ Rendered /Users/kevin/sections_rails/app/sections/partials/production_mode/_production_mode.html.erb (0.3ms)
24
+ Completed 200 OK in 4ms (Views: 3.3ms)
25
+ Processing by PartialsController#partial_with_block as HTML
26
+ Completed 500 Internal Server Error in 2ms
27
+ Processing by ScriptAssetsController#javascript as HTML
28
+ Completed 200 OK in 3ms (Views: 3.2ms)
29
+ Processing by ScriptAssetsController#coffeescript as HTML
30
+ Completed 200 OK in 3ms (Views: 2.6ms)
31
+ Processing by ScriptAssetsController#custom_script as HTML
32
+ Completed 200 OK in 3ms (Views: 2.9ms)
33
+ Processing by ScriptAssetsController#custom_script as HTML
34
+ Completed 200 OK in 2ms (Views: 2.2ms)
35
+ Processing by ScriptAssetsController#no_script as HTML
36
+ Completed 200 OK in 3ms (Views: 2.4ms)
37
+ Processing by ScriptAssetsController#production_mode as HTML
38
+ Completed 200 OK in 2ms (Views: 2.1ms)
39
+ Processing by StyleAssetsController#css as HTML
40
+ Completed 200 OK in 3ms (Views: 3.1ms)
41
+ Processing by StyleAssetsController#sass as HTML
42
+ Completed 200 OK in 3ms (Views: 2.6ms)
43
+ Processing by StyleAssetsController#css_sass as HTML
44
+ Completed 200 OK in 3ms (Views: 2.8ms)
45
+ Processing by StyleAssetsController#scss as HTML
46
+ Completed 200 OK in 3ms (Views: 2.8ms)
47
+ Processing by StyleAssetsController#css_scss as HTML
48
+ Completed 200 OK in 3ms (Views: 2.6ms)
49
+ Processing by StyleAssetsController#custom_style as HTML
50
+ Completed 200 OK in 39ms (Views: 3.1ms)
51
+ Processing by StyleAssetsController#custom_style as HTML
52
+ Completed 200 OK in 3ms (Views: 2.4ms)
53
+ Processing by StyleAssetsController#no_style as HTML
54
+ Completed 200 OK in 3ms (Views: 2.6ms)
55
+ Processing by StyleAssetsController#production_mode as HTML
56
+ Completed 200 OK in 3ms (Views: 2.3ms)
57
+ Processing by ViewTypesController#erb as HTML
58
+ Rendered /Users/kevin/sections_rails/app/sections/view_types/foo/_foo.html.erb (0.3ms)
59
+ Completed 200 OK in 4ms (Views: 3.6ms)
60
+ Processing by ViewTypesController#haml as HTML
61
+ Completed 500 Internal Server Error in 1ms