sections_rails 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -8,7 +8,7 @@ This makes it easier to work on those pieces, makes them more reusable, and larg
8
8
  # Example
9
9
 
10
10
  Let's take the navigation menu within a web site as an example section.
11
- It consists of certain HTML, CSS, and JavaScript code as well as image resources.
11
+ It consists of certain HTML, CSS, and JavaScript code as well as image resources.
12
12
  These assets must be loaded on every page that this navigation menu is visible on,
13
13
  and should be removed when the navigation menu is removed from the site.
14
14
 
@@ -40,10 +40,10 @@ To embed this menu and all its assets into a page, simply do this in your view:
40
40
 
41
41
  This command inserts the partial as well as the JS and CSS files from _/app/sections/menu_ into the page.
42
42
 
43
- It does the right thing in all circumstances: In development mode it inserts the individual assets,
43
+ It does the right thing in all circumstances: In development mode it inserts the individual assets,
44
44
  in production mode the assets are included into the precompilation targets.
45
45
 
46
- The gem source comes with a bundled example Rails app in the _demo/_ directory.
46
+ The gem source comes with a bundled example Rails app in the _demo/_ directory.
47
47
  It provides several working examples of sections in action in _views/demos/index.html.erb_.
48
48
 
49
49
 
@@ -75,8 +75,8 @@ The generator does the following things:
75
75
 
76
76
  In it's current prototypical implementation, _Sections_rails_ also creates empty asset container files:
77
77
  __application_sections.js__ and __application_sections.css__.
78
- Make sure you require them from your main _application.js_ and _application.css_ files.
79
- They are used only when running _rake assets:precompile_ during deployment, and should be checked in and stay the way they are.
78
+ Make sure you require them from your main _application.js_ and _application.css_ files.
79
+ They are used only when running _rake assets:precompile_ during deployment, and should be checked in and stay the way they are.
80
80
 
81
81
 
82
82
  # Usage
@@ -96,7 +96,7 @@ In this case, the _sections_ helper creates an empty div in the view.
96
96
 
97
97
  ## Options
98
98
 
99
- By default, a section automatically includes partials, css, and js files with the section name if they exist.
99
+ By default, a section automatically includes partials, css, and js files with the section name if they exist.
100
100
  This convention can be overridden. The following example renders the _hello_world_ section with a different partial, with no stylesheet,
101
101
  and it uses the custom _foobar.js_ instead of _hello_world.js_.
102
102
 
@@ -110,6 +110,31 @@ It is also possible to provide parameters to the rendered partial.
110
110
  <%= section :hello_world, locals: { message: 'Greetings!' } %>
111
111
  ```
112
112
 
113
+ You can also provide a block to the section, which can be included into the partial by saying
114
+
115
+
116
+ ## Inline blocks for sections.
117
+
118
+ You can provide a block to the section, like so:
119
+
120
+ ```erb
121
+ <%= section :section_with_block do %>
122
+ <h1> Elaborate </h1>
123
+ <div> Block </div>
124
+ <p> content </p>
125
+ <% end %>
126
+ ```
127
+
128
+ This block can be included into the partial:
129
+ ```erb
130
+ Partial content...
131
+ <%= yield %>
132
+ Partial content...
133
+ ```
134
+
135
+ This allows to define the content of parts of the section dynamically in the calling view, using view helper methods.
136
+
137
+
113
138
  ## Creating new sections.
114
139
 
115
140
  To create a new section, simply create a new folder under _/app/sections_ and add the partials, css, js, jst, and test files for this section.
@@ -4,13 +4,9 @@ module SectionsRails
4
4
 
5
5
  class Section
6
6
 
7
- def initialize section_name, view = nil, options = {}, block = nil
7
+ def initialize section_name, view = nil, options = {}
8
8
  @section_name = section_name.to_s
9
9
  @options = options
10
- if block
11
- @options[:locals] ||= {}
12
- @options[:locals][:block] = block
13
- end
14
10
 
15
11
  # This is necessary for running view helper methods.
16
12
  @view = view
@@ -162,7 +158,7 @@ module SectionsRails
162
158
  result.sort!
163
159
  end
164
160
 
165
- def render
161
+ def render &block
166
162
  result = []
167
163
 
168
164
  # Check if section exists.
@@ -206,7 +202,11 @@ module SectionsRails
206
202
  result << @view.content_tag(:div, '', :class => filename)
207
203
  elsif @options[:partial]
208
204
  # Custom partial name given --> render that partial.
209
- result << @view.render(find_partial_renderpath(@options[:partial]), @options[:locals])
205
+ if block_given?
206
+ result << @view.render({:layout => find_partial_renderpath(@options[:partial])}, @options[:locals], &block)
207
+ else
208
+ result << @view.render(find_partial_renderpath(@options[:partial]), @options[:locals])
209
+ end
210
210
  else
211
211
  # :partial => (false|nil) given --> render nothing.
212
212
  end
@@ -214,7 +214,12 @@ module SectionsRails
214
214
  # No :partial option given --> render the default partial.
215
215
  partial_filepath = find_partial_filepath
216
216
  if partial_filepath
217
- result << @view.render(:partial => partial_includepath, :locals => @options[:locals])
217
+
218
+ if block_given?
219
+ result << @view.render(:layout => partial_includepath, :locals => @options[:locals], &block)
220
+ else
221
+ result << @view.render(:partial => partial_includepath, :locals => @options[:locals])
222
+ end
218
223
  else
219
224
  result << @view.content_tag(:div, '', :class => filename)
220
225
  end
@@ -1,3 +1,3 @@
1
1
  module SectionsRails
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
@@ -4,7 +4,7 @@ module SectionsRails
4
4
  require "sections_rails/railtie" if defined?(Rails)
5
5
 
6
6
  def section name, options = {}, &block
7
- SectionsRails::Section.new(name, self, options, block).render
7
+ SectionsRails::Section.new(name, self, options).render &block
8
8
  end
9
9
  end
10
10
 
@@ -17541,3 +17541,386 @@ Completed 200 OK in 2ms (Views: 2.3ms)
17541
17541
  Processing by ViewTypesController#haml as HTML
17542
17542
  Rendered /Users/kevin/sections_rails/app/sections/view_types/foo/_foo.html.erb (0.0ms)
17543
17543
  Completed 200 OK in 3ms (Views: 2.5ms)
17544
+ Processing by ErrorsController#missing_section as HTML
17545
+ Rendered errors/missing_section.html.erb within layouts/application (0.9ms)
17546
+ Completed 500 Internal Server Error in 9ms
17547
+ Processing by PartialsController#erb_section as HTML
17548
+ Rendered /Users/kevin/sections_rails/app/sections/partials/erb_section/_erb_section.html.erb (0.3ms)
17549
+ Completed 200 OK in 6ms (Views: 5.7ms)
17550
+ Processing by PartialsController#haml_section as HTML
17551
+ Rendered /Users/kevin/sections_rails/app/sections/partials/haml_section/_haml_section.html.haml (0.7ms)
17552
+ Completed 200 OK in 5ms (Views: 4.4ms)
17553
+ Processing by PartialsController#no_options as HTML
17554
+ Rendered /Users/kevin/sections_rails/app/sections/partials/no_options/_no_options.html.erb (0.2ms)
17555
+ Completed 200 OK in 3ms (Views: 3.0ms)
17556
+ Processing by PartialsController#custom_partial as HTML
17557
+ Rendered /Users/kevin/sections_rails/app/sections/partials/custom_partial/_different_name.html.erb (0.3ms)
17558
+ Completed 200 OK in 4ms (Views: 3.7ms)
17559
+ Processing by PartialsController#custom_partial as HTML
17560
+ Rendered /Users/kevin/sections_rails/app/sections/partials/custom_partial/_different_name.html.erb (0.0ms)
17561
+ Completed 200 OK in 2ms (Views: 1.8ms)
17562
+ Processing by PartialsController#disabled as HTML
17563
+ Completed 200 OK in 2ms (Views: 2.0ms)
17564
+ Processing by PartialsController#disabled as HTML
17565
+ Completed 200 OK in 1ms (Views: 1.2ms)
17566
+ Processing by PartialsController#production_mode as HTML
17567
+ Rendered /Users/kevin/sections_rails/app/sections/partials/production_mode/_production_mode.html.erb (0.3ms)
17568
+ Completed 200 OK in 4ms (Views: 3.7ms)
17569
+ Processing by PartialsController#partial_with_block as HTML
17570
+ Rendered /Users/kevin/sections_rails/app/sections/partials/partial_with_block/_partial_with_block.html.haml (0.8ms)
17571
+ Completed 200 OK in 4ms (Views: 3.9ms)
17572
+ Processing by ScriptAssetsController#javascript as HTML
17573
+ Completed 200 OK in 8ms (Views: 8.3ms)
17574
+ Processing by ScriptAssetsController#coffeescript as HTML
17575
+ Completed 200 OK in 10ms (Views: 9.5ms)
17576
+ Processing by ScriptAssetsController#custom_script as HTML
17577
+ Completed 200 OK in 6ms (Views: 5.9ms)
17578
+ Processing by ScriptAssetsController#custom_script as HTML
17579
+ Completed 200 OK in 3ms (Views: 3.4ms)
17580
+ Processing by ScriptAssetsController#no_script as HTML
17581
+ Completed 200 OK in 3ms (Views: 2.5ms)
17582
+ Processing by ScriptAssetsController#production_mode as HTML
17583
+ Completed 200 OK in 2ms (Views: 1.8ms)
17584
+ Processing by StyleAssetsController#css as HTML
17585
+ Completed 200 OK in 5ms (Views: 4.5ms)
17586
+ Processing by StyleAssetsController#sass as HTML
17587
+ Completed 200 OK in 4ms (Views: 4.2ms)
17588
+ Processing by StyleAssetsController#css_sass as HTML
17589
+ Completed 200 OK in 5ms (Views: 4.4ms)
17590
+ Processing by StyleAssetsController#scss as HTML
17591
+ Completed 200 OK in 4ms (Views: 4.2ms)
17592
+ Processing by StyleAssetsController#css_scss as HTML
17593
+ Completed 200 OK in 5ms (Views: 4.5ms)
17594
+ Processing by StyleAssetsController#custom_style as HTML
17595
+ Completed 200 OK in 5ms (Views: 4.8ms)
17596
+ Processing by StyleAssetsController#custom_style as HTML
17597
+ Completed 200 OK in 3ms (Views: 3.2ms)
17598
+ Processing by StyleAssetsController#no_style as HTML
17599
+ Completed 200 OK in 2ms (Views: 2.2ms)
17600
+ Processing by StyleAssetsController#production_mode as HTML
17601
+ Completed 200 OK in 2ms (Views: 1.9ms)
17602
+ Processing by ViewTypesController#erb as HTML
17603
+ Rendered /Users/kevin/sections_rails/app/sections/view_types/foo/_foo.html.erb (0.3ms)
17604
+ Completed 200 OK in 4ms (Views: 3.8ms)
17605
+ Processing by ViewTypesController#haml as HTML
17606
+ Rendered /Users/kevin/sections_rails/app/sections/view_types/foo/_foo.html.erb (0.0ms)
17607
+ Completed 200 OK in 3ms (Views: 3.0ms)
17608
+ Processing by ErrorsController#missing_section as HTML
17609
+ Rendered errors/missing_section.html.erb within layouts/application (0.7ms)
17610
+ Completed 500 Internal Server Error in 6ms
17611
+ Processing by PartialsController#erb_section as HTML
17612
+ Rendered /Users/kevin/sections_rails/app/sections/partials/erb_section/_erb_section.html.erb (0.2ms)
17613
+ Completed 200 OK in 4ms (Views: 3.9ms)
17614
+ Processing by PartialsController#haml_section as HTML
17615
+ Rendered /Users/kevin/sections_rails/app/sections/partials/haml_section/_haml_section.html.haml (0.6ms)
17616
+ Completed 200 OK in 3ms (Views: 2.6ms)
17617
+ Processing by PartialsController#no_options as HTML
17618
+ Rendered /Users/kevin/sections_rails/app/sections/partials/no_options/_no_options.html.erb (0.2ms)
17619
+ Completed 200 OK in 2ms (Views: 2.0ms)
17620
+ Processing by PartialsController#custom_partial as HTML
17621
+ Rendered /Users/kevin/sections_rails/app/sections/partials/custom_partial/_different_name.html.erb (0.2ms)
17622
+ Completed 200 OK in 2ms (Views: 2.2ms)
17623
+ Processing by PartialsController#custom_partial as HTML
17624
+ Rendered /Users/kevin/sections_rails/app/sections/partials/custom_partial/_different_name.html.erb (0.0ms)
17625
+ Completed 200 OK in 2ms (Views: 1.6ms)
17626
+ Processing by PartialsController#disabled as HTML
17627
+ Completed 200 OK in 2ms (Views: 1.4ms)
17628
+ Processing by PartialsController#disabled as HTML
17629
+ Completed 200 OK in 1ms (Views: 1.1ms)
17630
+ Processing by PartialsController#production_mode as HTML
17631
+ Rendered /Users/kevin/sections_rails/app/sections/partials/production_mode/_production_mode.html.erb (0.2ms)
17632
+ Completed 200 OK in 2ms (Views: 2.0ms)
17633
+ Processing by PartialsController#partial_with_block as HTML
17634
+ Completed 500 Internal Server Error in 4ms
17635
+ Processing by ScriptAssetsController#javascript as HTML
17636
+ Completed 200 OK in 4ms (Views: 4.1ms)
17637
+ Processing by ScriptAssetsController#coffeescript as HTML
17638
+ Completed 200 OK in 4ms (Views: 3.7ms)
17639
+ Processing by ScriptAssetsController#custom_script as HTML
17640
+ Completed 200 OK in 4ms (Views: 3.6ms)
17641
+ Processing by ScriptAssetsController#custom_script as HTML
17642
+ Completed 200 OK in 3ms (Views: 3.2ms)
17643
+ Processing by ScriptAssetsController#no_script as HTML
17644
+ Completed 200 OK in 2ms (Views: 1.5ms)
17645
+ Processing by ScriptAssetsController#production_mode as HTML
17646
+ Completed 200 OK in 2ms (Views: 1.4ms)
17647
+ Processing by StyleAssetsController#css as HTML
17648
+ Completed 200 OK in 4ms (Views: 3.8ms)
17649
+ Processing by StyleAssetsController#sass as HTML
17650
+ Completed 200 OK in 22ms (Views: 21.6ms)
17651
+ Processing by StyleAssetsController#css_sass as HTML
17652
+ Completed 200 OK in 4ms (Views: 3.8ms)
17653
+ Processing by StyleAssetsController#scss as HTML
17654
+ Completed 200 OK in 4ms (Views: 3.4ms)
17655
+ Processing by StyleAssetsController#css_scss as HTML
17656
+ Completed 200 OK in 3ms (Views: 3.2ms)
17657
+ Processing by StyleAssetsController#custom_style as HTML
17658
+ Completed 200 OK in 3ms (Views: 3.2ms)
17659
+ Processing by StyleAssetsController#custom_style as HTML
17660
+ Completed 200 OK in 3ms (Views: 3.3ms)
17661
+ Processing by StyleAssetsController#no_style as HTML
17662
+ Completed 200 OK in 2ms (Views: 1.5ms)
17663
+ Processing by StyleAssetsController#production_mode as HTML
17664
+ Completed 200 OK in 1ms (Views: 1.3ms)
17665
+ Processing by ViewTypesController#erb as HTML
17666
+ Rendered /Users/kevin/sections_rails/app/sections/view_types/foo/_foo.html.erb (0.2ms)
17667
+ Completed 200 OK in 3ms (Views: 2.4ms)
17668
+ Processing by ViewTypesController#haml as HTML
17669
+ Rendered /Users/kevin/sections_rails/app/sections/view_types/foo/_foo.html.erb (0.0ms)
17670
+ Completed 200 OK in 2ms (Views: 2.3ms)
17671
+ Processing by ErrorsController#missing_section as HTML
17672
+ Rendered errors/missing_section.html.erb within layouts/application (0.7ms)
17673
+ Completed 500 Internal Server Error in 6ms
17674
+ Processing by PartialsController#erb_section as HTML
17675
+ Rendered /Users/kevin/sections_rails/app/sections/partials/erb_section/_erb_section.html.erb (0.2ms)
17676
+ Completed 200 OK in 4ms (Views: 4.0ms)
17677
+ Processing by PartialsController#haml_section as HTML
17678
+ Rendered /Users/kevin/sections_rails/app/sections/partials/haml_section/_haml_section.html.haml (0.5ms)
17679
+ Completed 200 OK in 3ms (Views: 2.6ms)
17680
+ Processing by PartialsController#no_options as HTML
17681
+ Rendered /Users/kevin/sections_rails/app/sections/partials/no_options/_no_options.html.erb (0.2ms)
17682
+ Completed 200 OK in 2ms (Views: 2.0ms)
17683
+ Processing by PartialsController#custom_partial as HTML
17684
+ Rendered /Users/kevin/sections_rails/app/sections/partials/custom_partial/_different_name.html.erb (0.2ms)
17685
+ Completed 200 OK in 3ms (Views: 2.4ms)
17686
+ Processing by PartialsController#custom_partial as HTML
17687
+ Rendered /Users/kevin/sections_rails/app/sections/partials/custom_partial/_different_name.html.erb (0.0ms)
17688
+ Completed 200 OK in 2ms (Views: 1.6ms)
17689
+ Processing by PartialsController#disabled as HTML
17690
+ Completed 200 OK in 2ms (Views: 1.4ms)
17691
+ Processing by PartialsController#disabled as HTML
17692
+ Completed 200 OK in 1ms (Views: 1.2ms)
17693
+ Processing by PartialsController#production_mode as HTML
17694
+ Rendered /Users/kevin/sections_rails/app/sections/partials/production_mode/_production_mode.html.erb (0.2ms)
17695
+ Completed 200 OK in 2ms (Views: 2.1ms)
17696
+ Processing by PartialsController#partial_with_block as HTML
17697
+ Rendered /Users/kevin/sections_rails/app/sections/partials/partial_with_block/_partial_with_block.html.haml (0.7ms)
17698
+ Completed 200 OK in 3ms (Views: 3.2ms)
17699
+ Processing by ScriptAssetsController#javascript as HTML
17700
+ Completed 200 OK in 4ms (Views: 3.9ms)
17701
+ Processing by ScriptAssetsController#coffeescript as HTML
17702
+ Completed 200 OK in 4ms (Views: 3.4ms)
17703
+ Processing by ScriptAssetsController#custom_script as HTML
17704
+ Completed 200 OK in 4ms (Views: 3.6ms)
17705
+ Processing by ScriptAssetsController#custom_script as HTML
17706
+ Completed 200 OK in 3ms (Views: 3.3ms)
17707
+ Processing by ScriptAssetsController#no_script as HTML
17708
+ Completed 200 OK in 2ms (Views: 1.6ms)
17709
+ Processing by ScriptAssetsController#production_mode as HTML
17710
+ Completed 200 OK in 2ms (Views: 1.4ms)
17711
+ Processing by StyleAssetsController#css as HTML
17712
+ Completed 200 OK in 4ms (Views: 3.6ms)
17713
+ Processing by StyleAssetsController#sass as HTML
17714
+ Completed 200 OK in 3ms (Views: 3.3ms)
17715
+ Processing by StyleAssetsController#css_sass as HTML
17716
+ Completed 200 OK in 4ms (Views: 3.9ms)
17717
+ Processing by StyleAssetsController#scss as HTML
17718
+ Completed 200 OK in 4ms (Views: 3.4ms)
17719
+ Processing by StyleAssetsController#css_scss as HTML
17720
+ Completed 200 OK in 3ms (Views: 3.2ms)
17721
+ Processing by StyleAssetsController#custom_style as HTML
17722
+ Completed 200 OK in 4ms (Views: 3.5ms)
17723
+ Processing by StyleAssetsController#custom_style as HTML
17724
+ Completed 200 OK in 3ms (Views: 3.1ms)
17725
+ Processing by StyleAssetsController#no_style as HTML
17726
+ Completed 200 OK in 2ms (Views: 1.4ms)
17727
+ Processing by StyleAssetsController#production_mode as HTML
17728
+ Completed 200 OK in 1ms (Views: 1.3ms)
17729
+ Processing by ViewTypesController#erb as HTML
17730
+ Rendered /Users/kevin/sections_rails/app/sections/view_types/foo/_foo.html.erb (0.2ms)
17731
+ Completed 200 OK in 2ms (Views: 2.2ms)
17732
+ Processing by ViewTypesController#haml as HTML
17733
+ Rendered /Users/kevin/sections_rails/app/sections/view_types/foo/_foo.html.erb (0.0ms)
17734
+ Completed 200 OK in 3ms (Views: 2.4ms)
17735
+ Processing by ErrorsController#missing_section as HTML
17736
+ Rendered errors/missing_section.html.erb within layouts/application (0.8ms)
17737
+ Completed 500 Internal Server Error in 6ms
17738
+ Processing by PartialsController#erb_section as HTML
17739
+ Rendered /Users/kevin/sections_rails/app/sections/partials/erb_section/_erb_section.html.erb (0.2ms)
17740
+ Completed 200 OK in 4ms (Views: 3.9ms)
17741
+ Processing by PartialsController#haml_section as HTML
17742
+ Rendered /Users/kevin/sections_rails/app/sections/partials/haml_section/_haml_section.html.haml (0.5ms)
17743
+ Completed 200 OK in 3ms (Views: 2.5ms)
17744
+ Processing by PartialsController#no_options as HTML
17745
+ Rendered /Users/kevin/sections_rails/app/sections/partials/no_options/_no_options.html.erb (0.2ms)
17746
+ Completed 200 OK in 2ms (Views: 2.0ms)
17747
+ Processing by PartialsController#custom_partial as HTML
17748
+ Rendered /Users/kevin/sections_rails/app/sections/partials/custom_partial/_different_name.html.erb (0.2ms)
17749
+ Completed 200 OK in 2ms (Views: 2.3ms)
17750
+ Processing by PartialsController#custom_partial as HTML
17751
+ Rendered /Users/kevin/sections_rails/app/sections/partials/custom_partial/_different_name.html.erb (0.0ms)
17752
+ Completed 200 OK in 2ms (Views: 1.7ms)
17753
+ Processing by PartialsController#disabled as HTML
17754
+ Completed 200 OK in 2ms (Views: 1.3ms)
17755
+ Processing by PartialsController#disabled as HTML
17756
+ Completed 200 OK in 1ms (Views: 1.1ms)
17757
+ Processing by PartialsController#production_mode as HTML
17758
+ Rendered /Users/kevin/sections_rails/app/sections/partials/production_mode/_production_mode.html.erb (0.2ms)
17759
+ Completed 200 OK in 2ms (Views: 2.2ms)
17760
+ Processing by PartialsController#partial_with_block as HTML
17761
+ Rendered /Users/kevin/sections_rails/app/sections/partials/partial_with_block/_partial_with_block.html.haml (0.7ms)
17762
+ Completed 200 OK in 4ms (Views: 3.4ms)
17763
+ Processing by ScriptAssetsController#javascript as HTML
17764
+ Completed 200 OK in 4ms (Views: 3.7ms)
17765
+ Processing by ScriptAssetsController#coffeescript as HTML
17766
+ Completed 200 OK in 3ms (Views: 3.3ms)
17767
+ Processing by ScriptAssetsController#custom_script as HTML
17768
+ Completed 200 OK in 4ms (Views: 3.4ms)
17769
+ Processing by ScriptAssetsController#custom_script as HTML
17770
+ Completed 200 OK in 3ms (Views: 3.4ms)
17771
+ Processing by ScriptAssetsController#no_script as HTML
17772
+ Completed 200 OK in 2ms (Views: 1.6ms)
17773
+ Processing by ScriptAssetsController#production_mode as HTML
17774
+ Completed 200 OK in 2ms (Views: 1.4ms)
17775
+ Processing by StyleAssetsController#css as HTML
17776
+ Completed 200 OK in 4ms (Views: 3.7ms)
17777
+ Processing by StyleAssetsController#sass as HTML
17778
+ Completed 200 OK in 3ms (Views: 3.2ms)
17779
+ Processing by StyleAssetsController#css_sass as HTML
17780
+ Completed 200 OK in 4ms (Views: 3.6ms)
17781
+ Processing by StyleAssetsController#scss as HTML
17782
+ Completed 200 OK in 4ms (Views: 3.6ms)
17783
+ Processing by StyleAssetsController#css_scss as HTML
17784
+ Completed 200 OK in 3ms (Views: 3.1ms)
17785
+ Processing by StyleAssetsController#custom_style as HTML
17786
+ Completed 200 OK in 4ms (Views: 3.6ms)
17787
+ Processing by StyleAssetsController#custom_style as HTML
17788
+ Completed 200 OK in 3ms (Views: 3.2ms)
17789
+ Processing by StyleAssetsController#no_style as HTML
17790
+ Completed 200 OK in 2ms (Views: 1.6ms)
17791
+ Processing by StyleAssetsController#production_mode as HTML
17792
+ Completed 200 OK in 1ms (Views: 1.3ms)
17793
+ Processing by ViewTypesController#erb as HTML
17794
+ Rendered /Users/kevin/sections_rails/app/sections/view_types/foo/_foo.html.erb (0.2ms)
17795
+ Completed 200 OK in 2ms (Views: 2.2ms)
17796
+ Processing by ViewTypesController#haml as HTML
17797
+ Rendered /Users/kevin/sections_rails/app/sections/view_types/foo/_foo.html.erb (0.0ms)
17798
+ Completed 200 OK in 3ms (Views: 2.4ms)
17799
+ Processing by ErrorsController#missing_section as HTML
17800
+ Rendered errors/missing_section.html.erb within layouts/application (0.8ms)
17801
+ Completed 500 Internal Server Error in 6ms
17802
+ Processing by PartialsController#erb_section as HTML
17803
+ Rendered /Users/kevin/sections_rails/app/sections/partials/erb_section/_erb_section.html.erb (0.2ms)
17804
+ Completed 200 OK in 4ms (Views: 3.9ms)
17805
+ Processing by PartialsController#haml_section as HTML
17806
+ Rendered /Users/kevin/sections_rails/app/sections/partials/haml_section/_haml_section.html.haml (0.5ms)
17807
+ Completed 200 OK in 3ms (Views: 2.7ms)
17808
+ Processing by PartialsController#no_options as HTML
17809
+ Rendered /Users/kevin/sections_rails/app/sections/partials/no_options/_no_options.html.erb (0.2ms)
17810
+ Completed 200 OK in 2ms (Views: 2.0ms)
17811
+ Processing by PartialsController#custom_partial as HTML
17812
+ Rendered /Users/kevin/sections_rails/app/sections/partials/custom_partial/_different_name.html.erb (0.2ms)
17813
+ Completed 200 OK in 2ms (Views: 2.3ms)
17814
+ Processing by PartialsController#custom_partial as HTML
17815
+ Rendered /Users/kevin/sections_rails/app/sections/partials/custom_partial/_different_name.html.erb (0.0ms)
17816
+ Completed 200 OK in 2ms (Views: 1.7ms)
17817
+ Processing by PartialsController#disabled as HTML
17818
+ Completed 200 OK in 1ms (Views: 1.3ms)
17819
+ Processing by PartialsController#disabled as HTML
17820
+ Completed 200 OK in 1ms (Views: 1.1ms)
17821
+ Processing by PartialsController#production_mode as HTML
17822
+ Rendered /Users/kevin/sections_rails/app/sections/partials/production_mode/_production_mode.html.erb (0.2ms)
17823
+ Completed 200 OK in 2ms (Views: 2.2ms)
17824
+ Processing by PartialsController#partial_with_block as HTML
17825
+ Rendered /Users/kevin/sections_rails/app/sections/partials/partial_with_block/_partial_with_block.html.haml (0.6ms)
17826
+ Completed 200 OK in 3ms (Views: 2.9ms)
17827
+ Processing by ScriptAssetsController#javascript as HTML
17828
+ Completed 200 OK in 4ms (Views: 3.8ms)
17829
+ Processing by ScriptAssetsController#coffeescript as HTML
17830
+ Completed 200 OK in 4ms (Views: 3.4ms)
17831
+ Processing by ScriptAssetsController#custom_script as HTML
17832
+ Completed 200 OK in 4ms (Views: 3.4ms)
17833
+ Processing by ScriptAssetsController#custom_script as HTML
17834
+ Completed 200 OK in 4ms (Views: 3.4ms)
17835
+ Processing by ScriptAssetsController#no_script as HTML
17836
+ Completed 200 OK in 2ms (Views: 1.6ms)
17837
+ Processing by ScriptAssetsController#production_mode as HTML
17838
+ Completed 200 OK in 2ms (Views: 1.5ms)
17839
+ Processing by StyleAssetsController#css as HTML
17840
+ Completed 200 OK in 4ms (Views: 3.7ms)
17841
+ Processing by StyleAssetsController#sass as HTML
17842
+ Completed 200 OK in 3ms (Views: 3.3ms)
17843
+ Processing by StyleAssetsController#css_sass as HTML
17844
+ Completed 200 OK in 4ms (Views: 3.8ms)
17845
+ Processing by StyleAssetsController#scss as HTML
17846
+ Completed 200 OK in 4ms (Views: 3.3ms)
17847
+ Processing by StyleAssetsController#css_scss as HTML
17848
+ Completed 200 OK in 3ms (Views: 3.3ms)
17849
+ Processing by StyleAssetsController#custom_style as HTML
17850
+ Completed 200 OK in 3ms (Views: 3.3ms)
17851
+ Processing by StyleAssetsController#custom_style as HTML
17852
+ Completed 200 OK in 3ms (Views: 2.9ms)
17853
+ Processing by StyleAssetsController#no_style as HTML
17854
+ Completed 200 OK in 2ms (Views: 1.5ms)
17855
+ Processing by StyleAssetsController#production_mode as HTML
17856
+ Completed 200 OK in 2ms (Views: 1.4ms)
17857
+ Processing by ViewTypesController#erb as HTML
17858
+ Rendered /Users/kevin/sections_rails/app/sections/view_types/foo/_foo.html.erb (0.2ms)
17859
+ Completed 200 OK in 3ms (Views: 2.5ms)
17860
+ Processing by ViewTypesController#haml as HTML
17861
+ Rendered /Users/kevin/sections_rails/app/sections/view_types/foo/_foo.html.erb (0.0ms)
17862
+ Completed 200 OK in 2ms (Views: 2.2ms)
17863
+ Processing by ErrorsController#missing_section as HTML
17864
+ Rendered errors/missing_section.html.erb within layouts/application (0.7ms)
17865
+ Completed 500 Internal Server Error in 6ms
17866
+ Processing by PartialsController#erb_section as HTML
17867
+ Rendered /Users/kevin/sections_rails/app/sections/partials/erb_section/_erb_section.html.erb (0.2ms)
17868
+ Completed 200 OK in 4ms (Views: 4.0ms)
17869
+ Processing by PartialsController#haml_section as HTML
17870
+ Rendered /Users/kevin/sections_rails/app/sections/partials/haml_section/_haml_section.html.haml (0.5ms)
17871
+ Completed 200 OK in 3ms (Views: 2.6ms)
17872
+ Processing by PartialsController#no_options as HTML
17873
+ Rendered /Users/kevin/sections_rails/app/sections/partials/no_options/_no_options.html.erb (0.2ms)
17874
+ Completed 200 OK in 2ms (Views: 2.1ms)
17875
+ Processing by PartialsController#custom_partial as HTML
17876
+ Rendered /Users/kevin/sections_rails/app/sections/partials/custom_partial/_different_name.html.erb (0.2ms)
17877
+ Completed 200 OK in 2ms (Views: 2.1ms)
17878
+ Processing by PartialsController#custom_partial as HTML
17879
+ Rendered /Users/kevin/sections_rails/app/sections/partials/custom_partial/_different_name.html.erb (0.0ms)
17880
+ Completed 200 OK in 2ms (Views: 1.7ms)
17881
+ Processing by PartialsController#disabled as HTML
17882
+ Completed 200 OK in 2ms (Views: 1.4ms)
17883
+ Processing by PartialsController#disabled as HTML
17884
+ Completed 200 OK in 1ms (Views: 1.2ms)
17885
+ Processing by PartialsController#production_mode as HTML
17886
+ Rendered /Users/kevin/sections_rails/app/sections/partials/production_mode/_production_mode.html.erb (0.2ms)
17887
+ Completed 200 OK in 2ms (Views: 2.1ms)
17888
+ Processing by PartialsController#partial_with_block as HTML
17889
+ Rendered /Users/kevin/sections_rails/app/sections/partials/partial_with_block/_partial_with_block.html.haml (0.7ms)
17890
+ Completed 200 OK in 3ms (Views: 3.2ms)
17891
+ Processing by ScriptAssetsController#javascript as HTML
17892
+ Completed 200 OK in 4ms (Views: 3.8ms)
17893
+ Processing by ScriptAssetsController#coffeescript as HTML
17894
+ Completed 200 OK in 4ms (Views: 3.4ms)
17895
+ Processing by ScriptAssetsController#custom_script as HTML
17896
+ Completed 200 OK in 4ms (Views: 3.5ms)
17897
+ Processing by ScriptAssetsController#custom_script as HTML
17898
+ Completed 200 OK in 4ms (Views: 3.5ms)
17899
+ Processing by ScriptAssetsController#no_script as HTML
17900
+ Completed 200 OK in 2ms (Views: 1.5ms)
17901
+ Processing by ScriptAssetsController#production_mode as HTML
17902
+ Completed 200 OK in 1ms (Views: 1.3ms)
17903
+ Processing by StyleAssetsController#css as HTML
17904
+ Completed 200 OK in 4ms (Views: 3.8ms)
17905
+ Processing by StyleAssetsController#sass as HTML
17906
+ Completed 200 OK in 4ms (Views: 3.5ms)
17907
+ Processing by StyleAssetsController#css_sass as HTML
17908
+ Completed 200 OK in 4ms (Views: 3.8ms)
17909
+ Processing by StyleAssetsController#scss as HTML
17910
+ Completed 200 OK in 4ms (Views: 3.4ms)
17911
+ Processing by StyleAssetsController#css_scss as HTML
17912
+ Completed 200 OK in 3ms (Views: 3.3ms)
17913
+ Processing by StyleAssetsController#custom_style as HTML
17914
+ Completed 200 OK in 4ms (Views: 3.5ms)
17915
+ Processing by StyleAssetsController#custom_style as HTML
17916
+ Completed 200 OK in 3ms (Views: 3.1ms)
17917
+ Processing by StyleAssetsController#no_style as HTML
17918
+ Completed 200 OK in 2ms (Views: 1.5ms)
17919
+ Processing by StyleAssetsController#production_mode as HTML
17920
+ Completed 200 OK in 2ms (Views: 1.4ms)
17921
+ Processing by ViewTypesController#erb as HTML
17922
+ Rendered /Users/kevin/sections_rails/app/sections/view_types/foo/_foo.html.erb (0.2ms)
17923
+ Completed 200 OK in 3ms (Views: 2.4ms)
17924
+ Processing by ViewTypesController#haml as HTML
17925
+ Rendered /Users/kevin/sections_rails/app/sections/view_types/foo/_foo.html.erb (0.0ms)
17926
+ Completed 200 OK in 3ms (Views: 2.4ms)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sections_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-07-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70129737667180 !ruby/object:Gem::Requirement
16
+ requirement: &70231684611020 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70129737667180
24
+ version_requirements: *70231684611020
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: haml
27
- requirement: &70129737666760 !ruby/object:Gem::Requirement
27
+ requirement: &70231684610600 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70129737666760
35
+ version_requirements: *70231684610600
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec-rails
38
- requirement: &70129737666300 !ruby/object:Gem::Requirement
38
+ requirement: &70231684610140 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70129737666300
46
+ version_requirements: *70231684610140
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: guard-rspec
49
- requirement: &70129737665880 !ruby/object:Gem::Requirement
49
+ requirement: &70231684609720 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70129737665880
57
+ version_requirements: *70231684609720
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rb-fsevent
60
- requirement: &70129737665460 !ruby/object:Gem::Requirement
60
+ requirement: &70231684609300 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70129737665460
68
+ version_requirements: *70231684609300
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sqlite3
71
- requirement: &70129737665040 !ruby/object:Gem::Requirement
71
+ requirement: &70231684608880 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70129737665040
79
+ version_requirements: *70231684608880
80
80
  description: Sections_rails adds infrastructure to the view layer of Ruby on Rails.
81
81
  It allows to define and use the HTML, CSS, and JavaScript code of dedicated sections
82
82
  of pages together in one place.