sections_rails 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +82 -92
- data/lib/sections_rails/section.rb +11 -174
- data/lib/sections_rails/section_asset_rendering.rb +92 -0
- data/lib/sections_rails/section_partial_rendering.rb +100 -0
- data/lib/sections_rails/version.rb +1 -1
- data/lib/sections_rails/view_finder.rb +10 -8
- data/lib/sections_rails.rb +1 -1
- data/spec/controllers/image_assets_controller_spec.rb +38 -0
- data/spec/controllers/partials_controller_spec.rb +25 -11
- data/spec/controllers/script_assets_controller_spec.rb +7 -7
- data/spec/controllers/style_assets_controller_spec.rb +10 -10
- data/spec/controllers/view_types_controller_spec.rb +3 -3
- data/spec/dummy/app/controllers/image_assets_controller.rb +14 -0
- data/spec/dummy/app/controllers/partials_controller.rb +6 -0
- data/spec/dummy/app/views/image_assets/gif.html.erb +1 -0
- data/spec/dummy/app/views/image_assets/jpeg.html.erb +1 -0
- data/spec/dummy/app/views/image_assets/jpg.html.erb +1 -0
- data/spec/dummy/app/views/image_assets/png.html.erb +1 -0
- data/spec/dummy/app/views/partials/custom_partial_with_block.html.erb +3 -0
- data/spec/dummy/app/views/partials/tag_option.html.erb +1 -0
- data/spec/dummy/config/application.rb +4 -3
- data/spec/dummy/config/boot.rb +7 -3
- data/spec/dummy/config/environments/test.rb +1 -4
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +3204 -16064
- data/spec/dummy/log/production.log +61 -0
- data/spec/dummy/log/test.log +2041 -0
- data/spec/sections_rails/config_spec.rb +31 -0
- data/spec/sections_rails/partial_parser_spec.rb +12 -12
- data/spec/sections_rails/section_spec.rb +16 -54
- data/spec/sections_rails/view_finder_spec.rb +4 -4
- data/spec/spec_helper.rb +3 -0
- metadata +73 -35
- data/spec/dummy/tmp/cache/assets/CB9/B60/sprockets%2Fe7b839a0806e5c20e5018197f56cd656 +0 -0
- data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/D76/4D0/sprockets%2F8a096b6dd59bfda3e461617a95524eaf +0 -0
- data/spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/DE1/6A0/sprockets%2Fcae9aba95894da8a28fa8a5387dc565f +0 -0
- data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- 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
|