compony 0.7.0 → 0.7.1

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 (93) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +44 -1582
  5. data/VERSION +1 -1
  6. data/compony.gemspec +4 -4
  7. data/doc/ComponentGenerator.html +1 -1
  8. data/doc/Components.html +1 -1
  9. data/doc/ComponentsGenerator.html +1 -1
  10. data/doc/Compony/Component.html +1 -1
  11. data/doc/Compony/ComponentMixins/Default/Labelling.html +1 -1
  12. data/doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html +1 -1
  13. data/doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html +1 -1
  14. data/doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html +1 -1
  15. data/doc/Compony/ComponentMixins/Default/Standalone.html +1 -1
  16. data/doc/Compony/ComponentMixins/Default.html +1 -1
  17. data/doc/Compony/ComponentMixins/Resourceful.html +1 -1
  18. data/doc/Compony/ComponentMixins.html +1 -1
  19. data/doc/Compony/Components/Button.html +1 -1
  20. data/doc/Compony/Components/Destroy.html +1 -1
  21. data/doc/Compony/Components/Edit.html +1 -1
  22. data/doc/Compony/Components/Form.html +1 -1
  23. data/doc/Compony/Components/Index.html +1 -1
  24. data/doc/Compony/Components/List.html +1 -1
  25. data/doc/Compony/Components/New.html +1 -1
  26. data/doc/Compony/Components/Show.html +1 -1
  27. data/doc/Compony/Components/WithForm.html +1 -1
  28. data/doc/Compony/Components.html +1 -1
  29. data/doc/Compony/ControllerMixin.html +1 -1
  30. data/doc/Compony/Engine.html +1 -1
  31. data/doc/Compony/MethodAccessibleHash.html +1 -1
  32. data/doc/Compony/ModelFields/Anchormodel.html +1 -1
  33. data/doc/Compony/ModelFields/Association.html +1 -1
  34. data/doc/Compony/ModelFields/Attachment.html +1 -1
  35. data/doc/Compony/ModelFields/Base.html +1 -1
  36. data/doc/Compony/ModelFields/Boolean.html +1 -1
  37. data/doc/Compony/ModelFields/Color.html +1 -1
  38. data/doc/Compony/ModelFields/Currency.html +1 -1
  39. data/doc/Compony/ModelFields/Date.html +1 -1
  40. data/doc/Compony/ModelFields/Datetime.html +1 -1
  41. data/doc/Compony/ModelFields/Decimal.html +1 -1
  42. data/doc/Compony/ModelFields/Email.html +1 -1
  43. data/doc/Compony/ModelFields/Float.html +1 -1
  44. data/doc/Compony/ModelFields/Integer.html +1 -1
  45. data/doc/Compony/ModelFields/Percentage.html +1 -1
  46. data/doc/Compony/ModelFields/Phone.html +1 -1
  47. data/doc/Compony/ModelFields/RichText.html +1 -1
  48. data/doc/Compony/ModelFields/String.html +1 -1
  49. data/doc/Compony/ModelFields/Text.html +1 -1
  50. data/doc/Compony/ModelFields/Time.html +1 -1
  51. data/doc/Compony/ModelFields/Url.html +1 -1
  52. data/doc/Compony/ModelFields.html +1 -1
  53. data/doc/Compony/ModelMixin.html +6 -1
  54. data/doc/Compony/NaturalOrdering.html +1 -1
  55. data/doc/Compony/RequestContext.html +1 -1
  56. data/doc/Compony/Version.html +1 -1
  57. data/doc/Compony/ViewHelpers.html +1 -1
  58. data/doc/Compony/VirtualModel.html +152 -0
  59. data/doc/Compony.html +3 -3
  60. data/doc/ComponyController.html +1 -1
  61. data/doc/_index.html +8 -1
  62. data/doc/class_list.html +1 -1
  63. data/doc/file.README.html +40 -1619
  64. data/doc/guide/basic_component.md +259 -0
  65. data/doc/guide/example.md +228 -0
  66. data/doc/guide/feasibility.md +38 -0
  67. data/doc/guide/generators.md +13 -0
  68. data/doc/guide/helpers.md +156 -0
  69. data/doc/guide/inheritance.md +62 -0
  70. data/doc/guide/installation.md +45 -0
  71. data/doc/guide/internal_datastructures.md +45 -0
  72. data/doc/guide/model_fields.md +62 -0
  73. data/doc/guide/nesting.md +132 -0
  74. data/doc/guide/ownership.md +21 -0
  75. data/doc/guide/pre_built_components/button.md +8 -0
  76. data/doc/guide/pre_built_components/destroy.md +25 -0
  77. data/doc/guide/pre_built_components/edit.md +27 -0
  78. data/doc/guide/pre_built_components/form.md +117 -0
  79. data/doc/guide/pre_built_components/index.md +6 -0
  80. data/doc/guide/pre_built_components/list.md +14 -0
  81. data/doc/guide/pre_built_components/new.md +27 -0
  82. data/doc/guide/pre_built_components/show.md +8 -0
  83. data/doc/guide/pre_built_components/with_form.md +18 -0
  84. data/doc/guide/pre_built_components.md +19 -0
  85. data/doc/guide/resourceful.md +101 -0
  86. data/doc/guide/root_actions.md +67 -0
  87. data/doc/guide/standalone.md +136 -0
  88. data/doc/guide/virtual_models.md +29 -0
  89. data/doc/index.html +40 -1619
  90. data/doc/top-level-namespace.html +1 -1
  91. data/lib/compony/virtual_model.rb +10 -0
  92. data/lib/compony.rb +4 -0
  93. metadata +29 -2
@@ -102,7 +102,7 @@
102
102
  </div>
103
103
 
104
104
  <div id="footer">
105
- Generated on Fri Nov 14 15:08:15 2025 by
105
+ Generated on Thu Nov 20 12:44:23 2025 by
106
106
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
107
107
  0.9.34 (ruby-3.3.5).
108
108
  </div>
@@ -0,0 +1,10 @@
1
+ module Compony
2
+ class VirtualModel < ActiveType::Object
3
+ # Use this as a base class whenever you would be inheriting from ActiveType::Object
4
+ # Note: this class is only available in applications that have `active_type` in their Gemfile
5
+
6
+ include Compony::ModelMixin
7
+ include Anchormodel::ModelMixin
8
+ include ActiveModel::Attributes
9
+ end
10
+ end
data/lib/compony.rb CHANGED
@@ -323,3 +323,7 @@ require 'compony/request_context'
323
323
  require 'compony/version'
324
324
  require 'compony/view_helpers'
325
325
  require 'compony/controller_mixin'
326
+
327
+ if defined?(ActiveType::Object)
328
+ require 'compony/virtual_model'
329
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compony
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Kalbermatter
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-11-14 00:00:00.000000000 Z
12
+ date: 2025-11-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yard
@@ -240,6 +240,7 @@ files:
240
240
  - doc/Compony/RequestContext.html
241
241
  - doc/Compony/Version.html
242
242
  - doc/Compony/ViewHelpers.html
243
+ - doc/Compony/VirtualModel.html
243
244
  - doc/ComponyController.html
244
245
  - doc/_index.html
245
246
  - doc/class_list.html
@@ -249,6 +250,31 @@ files:
249
250
  - doc/file.README.html
250
251
  - doc/file_list.html
251
252
  - doc/frames.html
253
+ - doc/guide/basic_component.md
254
+ - doc/guide/example.md
255
+ - doc/guide/feasibility.md
256
+ - doc/guide/generators.md
257
+ - doc/guide/helpers.md
258
+ - doc/guide/inheritance.md
259
+ - doc/guide/installation.md
260
+ - doc/guide/internal_datastructures.md
261
+ - doc/guide/model_fields.md
262
+ - doc/guide/nesting.md
263
+ - doc/guide/ownership.md
264
+ - doc/guide/pre_built_components.md
265
+ - doc/guide/pre_built_components/button.md
266
+ - doc/guide/pre_built_components/destroy.md
267
+ - doc/guide/pre_built_components/edit.md
268
+ - doc/guide/pre_built_components/form.md
269
+ - doc/guide/pre_built_components/index.md
270
+ - doc/guide/pre_built_components/list.md
271
+ - doc/guide/pre_built_components/new.md
272
+ - doc/guide/pre_built_components/show.md
273
+ - doc/guide/pre_built_components/with_form.md
274
+ - doc/guide/resourceful.md
275
+ - doc/guide/root_actions.md
276
+ - doc/guide/standalone.md
277
+ - doc/guide/virtual_models.md
252
278
  - doc/imgs/intro-example-destroy.png
253
279
  - doc/imgs/intro-example-edit.png
254
280
  - doc/imgs/intro-example-index.png
@@ -308,6 +334,7 @@ files:
308
334
  - lib/compony/request_context.rb
309
335
  - lib/compony/version.rb
310
336
  - lib/compony/view_helpers.rb
337
+ - lib/compony/virtual_model.rb
311
338
  - lib/generators/component/USAGE
312
339
  - lib/generators/component/component_generator.rb
313
340
  - lib/generators/component/templates/component.rb.erb