compony 0.3.1 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/VERSION +1 -1
  4. data/compony.gemspec +4 -4
  5. data/doc/ComponentGenerator.html +3 -3
  6. data/doc/Components.html +3 -3
  7. data/doc/ComponentsGenerator.html +3 -3
  8. data/doc/Compony/Component.html +138 -45
  9. data/doc/Compony/ComponentMixins/Default/Labelling.html +3 -3
  10. data/doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html +3 -3
  11. data/doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html +3 -3
  12. data/doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html +3 -3
  13. data/doc/Compony/ComponentMixins/Default/Standalone.html +3 -3
  14. data/doc/Compony/ComponentMixins/Default.html +3 -3
  15. data/doc/Compony/ComponentMixins/Resourceful.html +3 -3
  16. data/doc/Compony/ComponentMixins.html +3 -3
  17. data/doc/Compony/Components/Button.html +4 -4
  18. data/doc/Compony/Components/Destroy.html +4 -4
  19. data/doc/Compony/Components/Edit.html +20 -20
  20. data/doc/Compony/Components/Form.html +4 -4
  21. data/doc/Compony/Components/New.html +4 -4
  22. data/doc/Compony/Components/WithForm.html +4 -4
  23. data/doc/Compony/Components.html +3 -3
  24. data/doc/Compony/ControllerMixin.html +3 -3
  25. data/doc/Compony/Engine.html +3 -3
  26. data/doc/Compony/MethodAccessibleHash.html +3 -3
  27. data/doc/Compony/ModelFields/Anchormodel.html +3 -3
  28. data/doc/Compony/ModelFields/Association.html +3 -3
  29. data/doc/Compony/ModelFields/Attachment.html +3 -3
  30. data/doc/Compony/ModelFields/Base.html +3 -3
  31. data/doc/Compony/ModelFields/Boolean.html +3 -3
  32. data/doc/Compony/ModelFields/Color.html +3 -3
  33. data/doc/Compony/ModelFields/Currency.html +3 -3
  34. data/doc/Compony/ModelFields/Date.html +3 -3
  35. data/doc/Compony/ModelFields/Datetime.html +3 -3
  36. data/doc/Compony/ModelFields/Decimal.html +3 -3
  37. data/doc/Compony/ModelFields/Email.html +3 -3
  38. data/doc/Compony/ModelFields/Float.html +3 -3
  39. data/doc/Compony/ModelFields/Integer.html +3 -3
  40. data/doc/Compony/ModelFields/Percentage.html +3 -3
  41. data/doc/Compony/ModelFields/Phone.html +3 -3
  42. data/doc/Compony/ModelFields/RichText.html +3 -3
  43. data/doc/Compony/ModelFields/String.html +3 -3
  44. data/doc/Compony/ModelFields/Text.html +3 -3
  45. data/doc/Compony/ModelFields/Time.html +3 -3
  46. data/doc/Compony/ModelFields/Url.html +3 -3
  47. data/doc/Compony/ModelFields.html +3 -3
  48. data/doc/Compony/ModelMixin.html +3 -3
  49. data/doc/Compony/NaturalOrdering.html +3 -3
  50. data/doc/Compony/RequestContext.html +72 -5
  51. data/doc/Compony/Version.html +3 -3
  52. data/doc/Compony/ViewHelpers.html +3 -3
  53. data/doc/Compony.html +3 -3
  54. data/doc/ComponyController.html +3 -3
  55. data/doc/_index.html +4 -4
  56. data/doc/file.README.html +3 -3
  57. data/doc/frames.html +10 -5
  58. data/doc/index.html +3 -3
  59. data/doc/method_list.html +96 -80
  60. data/doc/top-level-namespace.html +3 -3
  61. data/lib/compony/component.rb +14 -3
  62. data/lib/compony/components/edit.rb +4 -0
  63. data/lib/compony/request_context.rb +8 -1
  64. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa5e387b3fb9934fdd3f2ca05845c1111c56fe914c5958be155369f055dd2c6e
4
- data.tar.gz: eee2133e1c90eee2ef1751a047ece98c6516690595453534d2d84f7be6ab92a4
3
+ metadata.gz: d053e50a0e25b4dd5ae267c33e892e891e5f9ef810277fa510dea09023cb2697
4
+ data.tar.gz: 56e13f55fdeb718f2a0d5ee7574f74d19e4a80ffeb379a275abc998753eb4f62
5
5
  SHA512:
6
- metadata.gz: 21419bf366a0aa334ff4a66bd20a4f52e47d0d3e3802bcd6755d7214a1c3d11328c2e3728f5e5be4249fd4f506db24ccaab1e4e59d870023a74a305d40d01ba3
7
- data.tar.gz: 8f4ccd7d2f40ac2b45367f6090ba52c13c9f4e8c49b1e3df1c0f38aeb216e2d3a786714ae5f843e68e23dd888c1143aecddf7453a65fc0244bb1f28cd0d2282e
6
+ metadata.gz: 8fff8e56a5c516958ad163413c4dd1214383c64eaa828058b48e4402a6bf1a6c93f261a5031f39e2e3899d2470cfd1f63d538d97db0246a49b697db0506e8539
7
+ data.tar.gz: 3b36c0dc73b26cc6ec0d3d511c88e7ca961689c57ba227345bf4fdaae4c91442d453a3151215af72c801c654afa3df5fb1df1e57df57223c17c087c6fbb71841
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # 0.3.3
2
+
3
+ - In `RequestContext`, distinguish between `content` and `content!`, where the first allows for missing content blocks.
4
+
5
+ # 0.3.2
6
+
7
+ - Add label content block to edit component
8
+ - Introduce `remove_content!` and make its non-bang pendant tolerate missing blocks
9
+
1
10
  # 0.3.1
2
11
 
3
12
  - In `NaturalOrdering`, tolerate omitting payload only if it's an override
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.3
data/compony.gemspec CHANGED
@@ -2,19 +2,19 @@
2
2
  # This file is auto-generated via: 'rake gemspec'.
3
3
 
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: compony 0.3.1 ruby lib
5
+ # stub: compony 0.3.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "compony".freeze
9
- s.version = "0.3.1".freeze
9
+ s.version = "0.3.3".freeze
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Sandro Kalbermatter".freeze, "contributors".freeze]
14
- s.date = "2024-05-31"
14
+ s.date = "2024-06-03"
15
15
  s.files = [".gitignore".freeze, ".ruby-version".freeze, ".yardopts".freeze, "CHANGELOG.md".freeze, "Gemfile".freeze, "Gemfile.lock".freeze, "LICENSE".freeze, "README.md".freeze, "Rakefile".freeze, "TODO.md".freeze, "VERSION".freeze, "app/controllers/compony_controller.rb".freeze, "compony.gemspec".freeze, "config/locales/de.yml".freeze, "config/locales/en.yml".freeze, "config/locales/fr.yml".freeze, "config/routes.rb".freeze, "doc/ComponentGenerator.html".freeze, "doc/Components.html".freeze, "doc/ComponentsGenerator.html".freeze, "doc/Compony.html".freeze, "doc/Compony/Component.html".freeze, "doc/Compony/ComponentMixins.html".freeze, "doc/Compony/ComponentMixins/Default.html".freeze, "doc/Compony/ComponentMixins/Default/Labelling.html".freeze, "doc/Compony/ComponentMixins/Default/Standalone.html".freeze, "doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html".freeze, "doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html".freeze, "doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html".freeze, "doc/Compony/ComponentMixins/Resourceful.html".freeze, "doc/Compony/Components.html".freeze, "doc/Compony/Components/Button.html".freeze, "doc/Compony/Components/Destroy.html".freeze, "doc/Compony/Components/Edit.html".freeze, "doc/Compony/Components/Form.html".freeze, "doc/Compony/Components/New.html".freeze, "doc/Compony/Components/WithForm.html".freeze, "doc/Compony/ControllerMixin.html".freeze, "doc/Compony/Engine.html".freeze, "doc/Compony/MethodAccessibleHash.html".freeze, "doc/Compony/ModelFields.html".freeze, "doc/Compony/ModelFields/Anchormodel.html".freeze, "doc/Compony/ModelFields/Association.html".freeze, "doc/Compony/ModelFields/Attachment.html".freeze, "doc/Compony/ModelFields/Base.html".freeze, "doc/Compony/ModelFields/Boolean.html".freeze, "doc/Compony/ModelFields/Color.html".freeze, "doc/Compony/ModelFields/Currency.html".freeze, "doc/Compony/ModelFields/Date.html".freeze, "doc/Compony/ModelFields/Datetime.html".freeze, "doc/Compony/ModelFields/Decimal.html".freeze, "doc/Compony/ModelFields/Email.html".freeze, "doc/Compony/ModelFields/Float.html".freeze, "doc/Compony/ModelFields/Integer.html".freeze, "doc/Compony/ModelFields/Percentage.html".freeze, "doc/Compony/ModelFields/Phone.html".freeze, "doc/Compony/ModelFields/RichText.html".freeze, "doc/Compony/ModelFields/String.html".freeze, "doc/Compony/ModelFields/Text.html".freeze, "doc/Compony/ModelFields/Time.html".freeze, "doc/Compony/ModelFields/Url.html".freeze, "doc/Compony/ModelMixin.html".freeze, "doc/Compony/NaturalOrdering.html".freeze, "doc/Compony/RequestContext.html".freeze, "doc/Compony/Version.html".freeze, "doc/Compony/ViewHelpers.html".freeze, "doc/ComponyController.html".freeze, "doc/_index.html".freeze, "doc/class_list.html".freeze, "doc/css/common.css".freeze, "doc/css/full_list.css".freeze, "doc/css/style.css".freeze, "doc/file.README.html".freeze, "doc/file_list.html".freeze, "doc/frames.html".freeze, "doc/imgs/intro-example-destroy.png".freeze, "doc/imgs/intro-example-edit.png".freeze, "doc/imgs/intro-example-index.png".freeze, "doc/imgs/intro-example-new.png".freeze, "doc/imgs/intro-example-show.png".freeze, "doc/index.html".freeze, "doc/js/app.js".freeze, "doc/js/full_list.js".freeze, "doc/js/jquery.js".freeze, "doc/method_list.html".freeze, "doc/resourceful_lifecycle.graphml".freeze, "doc/resourceful_lifecycle.pdf".freeze, "doc/resourceful_lifecycle.png".freeze, "doc/top-level-namespace.html".freeze, "lib/compony.rb".freeze, "lib/compony/component.rb".freeze, "lib/compony/component_mixins/default/labelling.rb".freeze, "lib/compony/component_mixins/default/standalone.rb".freeze, "lib/compony/component_mixins/default/standalone/resourceful_verb_dsl.rb".freeze, "lib/compony/component_mixins/default/standalone/standalone_dsl.rb".freeze, "lib/compony/component_mixins/default/standalone/verb_dsl.rb".freeze, "lib/compony/component_mixins/resourceful.rb".freeze, "lib/compony/components/button.rb".freeze, "lib/compony/components/destroy.rb".freeze, "lib/compony/components/edit.rb".freeze, "lib/compony/components/form.rb".freeze, "lib/compony/components/new.rb".freeze, "lib/compony/components/with_form.rb".freeze, "lib/compony/controller_mixin.rb".freeze, "lib/compony/engine.rb".freeze, "lib/compony/method_accessible_hash.rb".freeze, "lib/compony/model_fields/anchormodel.rb".freeze, "lib/compony/model_fields/association.rb".freeze, "lib/compony/model_fields/attachment.rb".freeze, "lib/compony/model_fields/base.rb".freeze, "lib/compony/model_fields/boolean.rb".freeze, "lib/compony/model_fields/color.rb".freeze, "lib/compony/model_fields/currency.rb".freeze, "lib/compony/model_fields/date.rb".freeze, "lib/compony/model_fields/datetime.rb".freeze, "lib/compony/model_fields/decimal.rb".freeze, "lib/compony/model_fields/email.rb".freeze, "lib/compony/model_fields/float.rb".freeze, "lib/compony/model_fields/integer.rb".freeze, "lib/compony/model_fields/percentage.rb".freeze, "lib/compony/model_fields/phone.rb".freeze, "lib/compony/model_fields/rich_text.rb".freeze, "lib/compony/model_fields/string.rb".freeze, "lib/compony/model_fields/text.rb".freeze, "lib/compony/model_fields/time.rb".freeze, "lib/compony/model_fields/url.rb".freeze, "lib/compony/model_mixin.rb".freeze, "lib/compony/natural_ordering.rb".freeze, "lib/compony/request_context.rb".freeze, "lib/compony/version.rb".freeze, "lib/compony/view_helpers.rb".freeze, "lib/generators/component/USAGE".freeze, "lib/generators/component/component_generator.rb".freeze, "lib/generators/component/templates/component.rb.erb".freeze, "lib/generators/component/templates/destroy.rb.erb".freeze, "lib/generators/component/templates/edit.rb.erb".freeze, "lib/generators/component/templates/form.rb.erb".freeze, "lib/generators/component/templates/new.rb.erb".freeze, "lib/generators/components/USAGE".freeze, "lib/generators/components/components_generator.rb".freeze, "logo.svg".freeze]
16
16
  s.required_ruby_version = Gem::Requirement.new(">= 3.0.0".freeze)
17
- s.rubygems_version = "3.5.9".freeze
17
+ s.rubygems_version = "3.5.11".freeze
18
18
  s.summary = "Compony is a Gem that allows you to write your Rails application in component-style fashion. It combines a controller action and route along \\ with its view into a single Ruby class. This allows writing much DRYer code, using inheritance even in views and much easier refactoring for your Rails \\ applications, helping you to keep the code clean as the application evolves.".freeze
19
19
 
20
20
  s.specification_version = 4
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: ComponentGenerator
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -221,9 +221,9 @@
221
221
  </div>
222
222
 
223
223
  <div id="footer">
224
- Generated on Fri May 31 14:28:30 2024 by
224
+ Generated on Mon Jun 3 15:20:40 2024 by
225
225
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
226
- 0.9.34 (ruby-3.2.2).
226
+ 0.9.36 (ruby-3.2.2).
227
227
  </div>
228
228
 
229
229
  </div>
data/doc/Components.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Components
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -95,9 +95,9 @@
95
95
  </div>
96
96
 
97
97
  <div id="footer">
98
- Generated on Fri May 31 14:28:29 2024 by
98
+ Generated on Mon Jun 3 15:20:40 2024 by
99
99
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
100
- 0.9.34 (ruby-3.2.2).
100
+ 0.9.36 (ruby-3.2.2).
101
101
  </div>
102
102
 
103
103
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: ComponentsGenerator
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -193,9 +193,9 @@
193
193
  </div>
194
194
 
195
195
  <div id="footer">
196
- Generated on Fri May 31 14:28:30 2024 by
196
+ Generated on Mon Jun 3 15:20:40 2024 by
197
197
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
198
- 0.9.34 (ruby-3.2.2).
198
+ 0.9.36 (ruby-3.2.2).
199
199
  </div>
200
200
 
201
201
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::Component
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -581,6 +581,30 @@
581
581
  <p>DSL method Removes a content block.</p>
582
582
  </div></span>
583
583
 
584
+ </li>
585
+
586
+
587
+ <li class="public ">
588
+ <span class="summary_signature">
589
+
590
+ <a href="#remove_content!-instance_method" title="#remove_content! (instance method)">#<strong>remove_content!</strong>(name) &#x21d2; Object </a>
591
+
592
+
593
+
594
+ </span>
595
+
596
+
597
+
598
+
599
+
600
+
601
+
602
+
603
+
604
+ <span class="summary_desc"><div class='inline'>
605
+ <p>DSL method Removes a content block and fails if the content block was not found.</p>
606
+ </div></span>
607
+
584
608
  </li>
585
609
 
586
610
 
@@ -1047,12 +1071,12 @@
1047
1071
  <pre class="lines">
1048
1072
 
1049
1073
 
1050
- 187
1051
- 188
1052
- 189</pre>
1074
+ 198
1075
+ 199
1076
+ 200</pre>
1053
1077
  </td>
1054
1078
  <td>
1055
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 187</span>
1079
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 198</span>
1056
1080
 
1057
1081
  <span class='kw'>def</span> <span class='id identifier rubyid_action'>action</span><span class='lparen'>(</span><span class='id identifier rubyid_action_name'>action_name</span><span class='comma'>,</span> <span class='label'>before:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1058
1082
  <span class='ivar'>@actions</span><span class='period'>.</span><span class='id identifier rubyid_natural_push'>natural_push</span><span class='lparen'>(</span><span class='id identifier rubyid_action_name'>action_name</span><span class='comma'>,</span> <span class='id identifier rubyid_block'>block</span><span class='comma'>,</span> <span class='label'>before:</span><span class='rparen'>)</span>
@@ -1707,15 +1731,84 @@
1707
1731
  144
1708
1732
  145
1709
1733
  146
1710
- 147</pre>
1734
+ 147
1735
+ 148
1736
+ 149
1737
+ 150
1738
+ 151</pre>
1711
1739
  </td>
1712
1740
  <td>
1713
1741
  <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 143</span>
1714
1742
 
1715
1743
  <span class='kw'>def</span> <span class='id identifier rubyid_remove_content'>remove_content</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
1716
- <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
1717
- <span class='id identifier rubyid_existing_index'>existing_index</span> <span class='op'>=</span> <span class='ivar'>@content_blocks</span><span class='period'>.</span><span class='id identifier rubyid_find_index'>find_index</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_el'>el</span><span class='op'>|</span> <span class='id identifier rubyid_el'>el</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='op'>==</span> <span class='id identifier rubyid_name'>name</span> <span class='rbrace'>}</span> <span class='op'>||</span> <span class='id identifier rubyid_fail'>fail</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Content block </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'> not found for removal in </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1718
- <span class='ivar'>@content_blocks</span><span class='period'>.</span><span class='id identifier rubyid_delete_at'>delete_at</span><span class='lparen'>(</span><span class='id identifier rubyid_existing_index'>existing_index</span><span class='rparen'>)</span>
1744
+ <span class='id identifier rubyid_existing_index'>existing_index</span> <span class='op'>=</span> <span class='ivar'>@content_blocks</span><span class='period'>.</span><span class='id identifier rubyid_find_index'>find_index</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_el'>el</span><span class='op'>|</span> <span class='id identifier rubyid_el'>el</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='op'>==</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span> <span class='rbrace'>}</span>
1745
+ <span class='kw'>if</span> <span class='id identifier rubyid_existing_index'>existing_index</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1746
+ <span class='kw'>return</span> <span class='kw'>false</span>
1747
+ <span class='kw'>else</span>
1748
+ <span class='ivar'>@content_blocks</span><span class='period'>.</span><span class='id identifier rubyid_delete_at'>delete_at</span><span class='lparen'>(</span><span class='id identifier rubyid_existing_index'>existing_index</span><span class='rparen'>)</span>
1749
+ <span class='kw'>return</span> <span class='kw'>true</span>
1750
+ <span class='kw'>end</span>
1751
+ <span class='kw'>end</span></pre>
1752
+ </td>
1753
+ </tr>
1754
+ </table>
1755
+ </div>
1756
+
1757
+ <div class="method_details ">
1758
+ <h3 class="signature " id="remove_content!-instance_method">
1759
+
1760
+ #<strong>remove_content!</strong>(name) &#x21d2; <tt>Object</tt>
1761
+
1762
+
1763
+
1764
+
1765
+
1766
+ </h3><div class="docstring">
1767
+ <div class="discussion">
1768
+
1769
+ <p>DSL method Removes a content block and fails if the content block was not found.</p>
1770
+
1771
+
1772
+ </div>
1773
+ </div>
1774
+ <div class="tags">
1775
+ <p class="tag_title">Parameters:</p>
1776
+ <ul class="param">
1777
+
1778
+ <li>
1779
+
1780
+ <span class='name'>name</span>
1781
+
1782
+
1783
+ <span class='type'>(<tt>Symbol</tt>, <tt>String</tt>)</span>
1784
+
1785
+
1786
+
1787
+ &mdash;
1788
+ <div class='inline'>
1789
+ <p>Name of the content block that should be removed</p>
1790
+ </div>
1791
+
1792
+ </li>
1793
+
1794
+ </ul>
1795
+
1796
+
1797
+ </div><table class="source_code">
1798
+ <tr>
1799
+ <td>
1800
+ <pre class="lines">
1801
+
1802
+
1803
+ 156
1804
+ 157
1805
+ 158</pre>
1806
+ </td>
1807
+ <td>
1808
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 156</span>
1809
+
1810
+ <span class='kw'>def</span> <span class='id identifier rubyid_remove_content!'>remove_content!</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
1811
+ <span class='id identifier rubyid_remove_content'>remove_content</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_fail'>fail</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Content block </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'> not found for removal in </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1719
1812
  <span class='kw'>end</span></pre>
1720
1813
  </td>
1721
1814
  </tr>
@@ -1770,17 +1863,6 @@
1770
1863
  <pre class="lines">
1771
1864
 
1772
1865
 
1773
- 152
1774
- 153
1775
- 154
1776
- 155
1777
- 156
1778
- 157
1779
- 158
1780
- 159
1781
- 160
1782
- 161
1783
- 162
1784
1866
  163
1785
1867
  164
1786
1868
  165
@@ -1800,10 +1882,21 @@
1800
1882
  179
1801
1883
  180
1802
1884
  181
1803
- 182</pre>
1885
+ 182
1886
+ 183
1887
+ 184
1888
+ 185
1889
+ 186
1890
+ 187
1891
+ 188
1892
+ 189
1893
+ 190
1894
+ 191
1895
+ 192
1896
+ 193</pre>
1804
1897
  </td>
1805
1898
  <td>
1806
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 152</span>
1899
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 163</span>
1807
1900
 
1808
1901
  <span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_controller'>controller</span><span class='comma'>,</span> <span class='label'>standalone:</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_locals'>locals</span><span class='rparen'>)</span>
1809
1902
  <span class='comment'># Call before_render hooks (if any) and backfire instance variables back to the component
@@ -1867,25 +1960,25 @@
1867
1960
  <pre class="lines">
1868
1961
 
1869
1962
 
1870
- 198
1871
- 199
1872
- 200
1873
- 201
1874
- 202
1875
- 203
1876
- 204
1877
- 205
1878
- 206
1879
- 207
1880
- 208
1881
1963
  209
1882
1964
  210
1883
1965
  211
1884
1966
  212
1885
- 213</pre>
1967
+ 213
1968
+ 214
1969
+ 215
1970
+ 216
1971
+ 217
1972
+ 218
1973
+ 219
1974
+ 220
1975
+ 221
1976
+ 222
1977
+ 223
1978
+ 224</pre>
1886
1979
  </td>
1887
1980
  <td>
1888
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 198</span>
1981
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 209</span>
1889
1982
 
1890
1983
  <span class='kw'>def</span> <span class='id identifier rubyid_render_actions'>render_actions</span><span class='lparen'>(</span><span class='id identifier rubyid_controller'>controller</span><span class='comma'>,</span> <span class='label'>wrapper_class:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='label'>action_class:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
1891
1984
  <span class='id identifier rubyid_h'>h</span> <span class='op'>=</span> <span class='id identifier rubyid_controller'>controller</span><span class='period'>.</span><span class='id identifier rubyid_helpers'>helpers</span>
@@ -1947,12 +2040,12 @@
1947
2040
  <pre class="lines">
1948
2041
 
1949
2042
 
1950
- 216
1951
- 217
1952
- 218</pre>
2043
+ 227
2044
+ 228
2045
+ 229</pre>
1953
2046
  </td>
1954
2047
  <td>
1955
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 216</span>
2048
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 227</span>
1956
2049
 
1957
2050
  <span class='kw'>def</span> <span class='id identifier rubyid_resourceful?'>resourceful?</span>
1958
2051
  <span class='kw'>return</span> <span class='kw'>false</span>
@@ -2085,12 +2178,12 @@
2085
2178
  <pre class="lines">
2086
2179
 
2087
2180
 
2088
- 193
2089
- 194
2090
- 195</pre>
2181
+ 204
2182
+ 205
2183
+ 206</pre>
2091
2184
  </td>
2092
2185
  <td>
2093
- <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 193</span>
2186
+ <pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 204</span>
2094
2187
 
2095
2188
  <span class='kw'>def</span> <span class='id identifier rubyid_skip_action'>skip_action</span><span class='lparen'>(</span><span class='id identifier rubyid_action_name'>action_name</span><span class='rparen'>)</span>
2096
2189
  <span class='ivar'>@skipped_actions</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_action_name'>action_name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
@@ -2150,9 +2243,9 @@
2150
2243
  </div>
2151
2244
 
2152
2245
  <div id="footer">
2153
- Generated on Fri May 31 14:28:30 2024 by
2246
+ Generated on Mon Jun 3 15:20:40 2024 by
2154
2247
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2155
- 0.9.34 (ruby-3.2.2).
2248
+ 0.9.36 (ruby-3.2.2).
2156
2249
  </div>
2157
2250
 
2158
2251
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Compony::ComponentMixins::Default::Labelling
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -396,9 +396,9 @@
396
396
  </div>
397
397
 
398
398
  <div id="footer">
399
- Generated on Fri May 31 14:28:30 2024 by
399
+ Generated on Mon Jun 3 15:20:40 2024 by
400
400
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
401
- 0.9.34 (ruby-3.2.2).
401
+ 0.9.36 (ruby-3.2.2).
402
402
  </div>
403
403
 
404
404
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::ComponentMixins::Default::Standalone::ResourcefulVerbDsl
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -529,9 +529,9 @@
529
529
  </div>
530
530
 
531
531
  <div id="footer">
532
- Generated on Fri May 31 14:28:30 2024 by
532
+ Generated on Mon Jun 3 15:20:41 2024 by
533
533
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
534
- 0.9.34 (ruby-3.2.2).
534
+ 0.9.36 (ruby-3.2.2).
535
535
  </div>
536
536
 
537
537
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::ComponentMixins::Default::Standalone::StandaloneDsl
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -578,9 +578,9 @@
578
578
  </div>
579
579
 
580
580
  <div id="footer">
581
- Generated on Fri May 31 14:28:30 2024 by
581
+ Generated on Mon Jun 3 15:20:41 2024 by
582
582
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
583
- 0.9.34 (ruby-3.2.2).
583
+ 0.9.36 (ruby-3.2.2).
584
584
  </div>
585
585
 
586
586
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::ComponentMixins::Default::Standalone::VerbDsl
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -567,9 +567,9 @@
567
567
  </div>
568
568
 
569
569
  <div id="footer">
570
- Generated on Fri May 31 14:28:30 2024 by
570
+ Generated on Mon Jun 3 15:20:41 2024 by
571
571
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
572
- 0.9.34 (ruby-3.2.2).
572
+ 0.9.36 (ruby-3.2.2).
573
573
  </div>
574
574
 
575
575
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Compony::ComponentMixins::Default::Standalone
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -682,9 +682,9 @@
682
682
  </div>
683
683
 
684
684
  <div id="footer">
685
- Generated on Fri May 31 14:28:30 2024 by
685
+ Generated on Mon Jun 3 15:20:40 2024 by
686
686
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
687
- 0.9.34 (ruby-3.2.2).
687
+ 0.9.36 (ruby-3.2.2).
688
688
  </div>
689
689
 
690
690
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Compony::ComponentMixins::Default
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -116,9 +116,9 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Fri May 31 14:28:29 2024 by
119
+ Generated on Mon Jun 3 15:20:40 2024 by
120
120
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
- 0.9.34 (ruby-3.2.2).
121
+ 0.9.36 (ruby-3.2.2).
122
122
  </div>
123
123
 
124
124
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Compony::ComponentMixins::Resourceful
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -1183,9 +1183,9 @@
1183
1183
  </div>
1184
1184
 
1185
1185
  <div id="footer">
1186
- Generated on Fri May 31 14:28:29 2024 by
1186
+ Generated on Mon Jun 3 15:20:40 2024 by
1187
1187
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1188
- 0.9.34 (ruby-3.2.2).
1188
+ 0.9.36 (ruby-3.2.2).
1189
1189
  </div>
1190
1190
 
1191
1191
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Compony::ComponentMixins
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -116,9 +116,9 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Fri May 31 14:28:29 2024 by
119
+ Generated on Mon Jun 3 15:20:40 2024 by
120
120
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
- 0.9.34 (ruby-3.2.2).
121
+ 0.9.36 (ruby-3.2.2).
122
122
  </div>
123
123
 
124
124
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Compony::Components::Button
8
8
 
9
- &mdash; Documentation by YARD 0.9.34
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -196,7 +196,7 @@
196
196
 
197
197
 
198
198
  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Component.html" title="Compony::Component (class)">Compony::Component</a></span></h3>
199
- <p class="inherited"><span class='object_link'><a href="../Component.html#action-instance_method" title="Compony::Component#action (method)">#action</a></span>, <span class='object_link'><a href="../Component.html#before_render-instance_method" title="Compony::Component#before_render (method)">#before_render</a></span>, <span class='object_link'><a href="../Component.html#comp_cst-instance_method" title="Compony::Component#comp_cst (method)">#comp_cst</a></span>, <span class='object_link'><a href="../Component.html#comp_name-instance_method" title="Compony::Component#comp_name (method)">#comp_name</a></span>, <span class='object_link'><a href="../Component.html#content-instance_method" title="Compony::Component#content (method)">#content</a></span>, <span class='object_link'><a href="../Component.html#family_cst-instance_method" title="Compony::Component#family_cst (method)">#family_cst</a></span>, <span class='object_link'><a href="../Component.html#family_name-instance_method" title="Compony::Component#family_name (method)">#family_name</a></span>, <span class='object_link'><a href="../Component.html#id-instance_method" title="Compony::Component#id (method)">#id</a></span>, <span class='object_link'><a href="../Component.html#inspect-instance_method" title="Compony::Component#inspect (method)">#inspect</a></span>, <span class='object_link'><a href="../Component.html#param_name-instance_method" title="Compony::Component#param_name (method)">#param_name</a></span>, <span class='object_link'><a href="../Component.html#path-instance_method" title="Compony::Component#path (method)">#path</a></span>, <span class='object_link'><a href="../Component.html#path_hash-instance_method" title="Compony::Component#path_hash (method)">#path_hash</a></span>, <span class='object_link'><a href="../Component.html#remove_content-instance_method" title="Compony::Component#remove_content (method)">#remove_content</a></span>, <span class='object_link'><a href="../Component.html#render-instance_method" title="Compony::Component#render (method)">#render</a></span>, <span class='object_link'><a href="../Component.html#render_actions-instance_method" title="Compony::Component#render_actions (method)">#render_actions</a></span>, <span class='object_link'><a href="../Component.html#resourceful%3F-instance_method" title="Compony::Component#resourceful? (method)">#resourceful?</a></span>, <span class='object_link'><a href="../Component.html#root_comp-instance_method" title="Compony::Component#root_comp (method)">#root_comp</a></span>, <span class='object_link'><a href="../Component.html#root_comp%3F-instance_method" title="Compony::Component#root_comp? (method)">#root_comp?</a></span>, <span class='object_link'><a href="../Component.html#setup-class_method" title="Compony::Component.setup (method)">setup</a></span>, <span class='object_link'><a href="../Component.html#skip_action-instance_method" title="Compony::Component#skip_action (method)">#skip_action</a></span>, <span class='object_link'><a href="../Component.html#sub_comp-instance_method" title="Compony::Component#sub_comp (method)">#sub_comp</a></span></p>
199
+ <p class="inherited"><span class='object_link'><a href="../Component.html#action-instance_method" title="Compony::Component#action (method)">#action</a></span>, <span class='object_link'><a href="../Component.html#before_render-instance_method" title="Compony::Component#before_render (method)">#before_render</a></span>, <span class='object_link'><a href="../Component.html#comp_cst-instance_method" title="Compony::Component#comp_cst (method)">#comp_cst</a></span>, <span class='object_link'><a href="../Component.html#comp_name-instance_method" title="Compony::Component#comp_name (method)">#comp_name</a></span>, <span class='object_link'><a href="../Component.html#content-instance_method" title="Compony::Component#content (method)">#content</a></span>, <span class='object_link'><a href="../Component.html#family_cst-instance_method" title="Compony::Component#family_cst (method)">#family_cst</a></span>, <span class='object_link'><a href="../Component.html#family_name-instance_method" title="Compony::Component#family_name (method)">#family_name</a></span>, <span class='object_link'><a href="../Component.html#id-instance_method" title="Compony::Component#id (method)">#id</a></span>, <span class='object_link'><a href="../Component.html#inspect-instance_method" title="Compony::Component#inspect (method)">#inspect</a></span>, <span class='object_link'><a href="../Component.html#param_name-instance_method" title="Compony::Component#param_name (method)">#param_name</a></span>, <span class='object_link'><a href="../Component.html#path-instance_method" title="Compony::Component#path (method)">#path</a></span>, <span class='object_link'><a href="../Component.html#path_hash-instance_method" title="Compony::Component#path_hash (method)">#path_hash</a></span>, <span class='object_link'><a href="../Component.html#remove_content-instance_method" title="Compony::Component#remove_content (method)">#remove_content</a></span>, <span class='object_link'><a href="../Component.html#remove_content!-instance_method" title="Compony::Component#remove_content! (method)">#remove_content!</a></span>, <span class='object_link'><a href="../Component.html#render-instance_method" title="Compony::Component#render (method)">#render</a></span>, <span class='object_link'><a href="../Component.html#render_actions-instance_method" title="Compony::Component#render_actions (method)">#render_actions</a></span>, <span class='object_link'><a href="../Component.html#resourceful%3F-instance_method" title="Compony::Component#resourceful? (method)">#resourceful?</a></span>, <span class='object_link'><a href="../Component.html#root_comp-instance_method" title="Compony::Component#root_comp (method)">#root_comp</a></span>, <span class='object_link'><a href="../Component.html#root_comp%3F-instance_method" title="Compony::Component#root_comp? (method)">#root_comp?</a></span>, <span class='object_link'><a href="../Component.html#setup-class_method" title="Compony::Component.setup (method)">setup</a></span>, <span class='object_link'><a href="../Component.html#skip_action-instance_method" title="Compony::Component#skip_action (method)">#skip_action</a></span>, <span class='object_link'><a href="../Component.html#sub_comp-instance_method" title="Compony::Component#sub_comp (method)">#sub_comp</a></span></p>
200
200
  <div id="constructor_details" class="method_details_list">
201
201
  <h2>Constructor Details</h2>
202
202
 
@@ -283,9 +283,9 @@
283
283
  </div>
284
284
 
285
285
  <div id="footer">
286
- Generated on Fri May 31 14:28:30 2024 by
286
+ Generated on Mon Jun 3 15:20:40 2024 by
287
287
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
288
- 0.9.34 (ruby-3.2.2).
288
+ 0.9.36 (ruby-3.2.2).
289
289
  </div>
290
290
 
291
291
  </div>