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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +44 -1582
- data/VERSION +1 -1
- data/compony.gemspec +4 -4
- data/doc/ComponentGenerator.html +1 -1
- data/doc/Components.html +1 -1
- data/doc/ComponentsGenerator.html +1 -1
- data/doc/Compony/Component.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Labelling.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Standalone.html +1 -1
- data/doc/Compony/ComponentMixins/Default.html +1 -1
- data/doc/Compony/ComponentMixins/Resourceful.html +1 -1
- data/doc/Compony/ComponentMixins.html +1 -1
- data/doc/Compony/Components/Button.html +1 -1
- data/doc/Compony/Components/Destroy.html +1 -1
- data/doc/Compony/Components/Edit.html +1 -1
- data/doc/Compony/Components/Form.html +1 -1
- data/doc/Compony/Components/Index.html +1 -1
- data/doc/Compony/Components/List.html +1 -1
- data/doc/Compony/Components/New.html +1 -1
- data/doc/Compony/Components/Show.html +1 -1
- data/doc/Compony/Components/WithForm.html +1 -1
- data/doc/Compony/Components.html +1 -1
- data/doc/Compony/ControllerMixin.html +1 -1
- data/doc/Compony/Engine.html +1 -1
- data/doc/Compony/MethodAccessibleHash.html +1 -1
- data/doc/Compony/ModelFields/Anchormodel.html +1 -1
- data/doc/Compony/ModelFields/Association.html +1 -1
- data/doc/Compony/ModelFields/Attachment.html +1 -1
- data/doc/Compony/ModelFields/Base.html +1 -1
- data/doc/Compony/ModelFields/Boolean.html +1 -1
- data/doc/Compony/ModelFields/Color.html +1 -1
- data/doc/Compony/ModelFields/Currency.html +1 -1
- data/doc/Compony/ModelFields/Date.html +1 -1
- data/doc/Compony/ModelFields/Datetime.html +1 -1
- data/doc/Compony/ModelFields/Decimal.html +1 -1
- data/doc/Compony/ModelFields/Email.html +1 -1
- data/doc/Compony/ModelFields/Float.html +1 -1
- data/doc/Compony/ModelFields/Integer.html +1 -1
- data/doc/Compony/ModelFields/Percentage.html +1 -1
- data/doc/Compony/ModelFields/Phone.html +1 -1
- data/doc/Compony/ModelFields/RichText.html +1 -1
- data/doc/Compony/ModelFields/String.html +1 -1
- data/doc/Compony/ModelFields/Text.html +1 -1
- data/doc/Compony/ModelFields/Time.html +1 -1
- data/doc/Compony/ModelFields/Url.html +1 -1
- data/doc/Compony/ModelFields.html +1 -1
- data/doc/Compony/ModelMixin.html +6 -1
- data/doc/Compony/NaturalOrdering.html +1 -1
- data/doc/Compony/RequestContext.html +1 -1
- data/doc/Compony/Version.html +1 -1
- data/doc/Compony/ViewHelpers.html +1 -1
- data/doc/Compony/VirtualModel.html +152 -0
- data/doc/Compony.html +3 -3
- data/doc/ComponyController.html +1 -1
- data/doc/_index.html +8 -1
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +40 -1619
- data/doc/guide/basic_component.md +259 -0
- data/doc/guide/example.md +228 -0
- data/doc/guide/feasibility.md +38 -0
- data/doc/guide/generators.md +13 -0
- data/doc/guide/helpers.md +156 -0
- data/doc/guide/inheritance.md +62 -0
- data/doc/guide/installation.md +45 -0
- data/doc/guide/internal_datastructures.md +45 -0
- data/doc/guide/model_fields.md +62 -0
- data/doc/guide/nesting.md +132 -0
- data/doc/guide/ownership.md +21 -0
- data/doc/guide/pre_built_components/button.md +8 -0
- data/doc/guide/pre_built_components/destroy.md +25 -0
- data/doc/guide/pre_built_components/edit.md +27 -0
- data/doc/guide/pre_built_components/form.md +117 -0
- data/doc/guide/pre_built_components/index.md +6 -0
- data/doc/guide/pre_built_components/list.md +14 -0
- data/doc/guide/pre_built_components/new.md +27 -0
- data/doc/guide/pre_built_components/show.md +8 -0
- data/doc/guide/pre_built_components/with_form.md +18 -0
- data/doc/guide/pre_built_components.md +19 -0
- data/doc/guide/resourceful.md +101 -0
- data/doc/guide/root_actions.md +67 -0
- data/doc/guide/standalone.md +136 -0
- data/doc/guide/virtual_models.md +29 -0
- data/doc/index.html +40 -1619
- data/doc/top-level-namespace.html +1 -1
- data/lib/compony/virtual_model.rb +10 -0
- data/lib/compony.rb +4 -0
- metadata +29 -2
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
</div>
|
|
103
103
|
|
|
104
104
|
<div id="footer">
|
|
105
|
-
Generated on
|
|
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
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.
|
|
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-
|
|
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
|