compony 0.6.4 → 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 +17 -0
- data/Gemfile.lock +1 -1
- data/README.md +44 -1576
- 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 +247 -156
- 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 +2 -2
- data/doc/Compony/Components/Destroy.html +2 -2
- data/doc/Compony/Components/Edit.html +2 -2
- data/doc/Compony/Components/Form.html +2 -2
- data/doc/Compony/Components/Index.html +2 -2
- data/doc/Compony/Components/List.html +2 -2
- data/doc/Compony/Components/New.html +2 -2
- data/doc/Compony/Components/Show.html +2 -2
- data/doc/Compony/Components/WithForm.html +19 -21
- 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 +46 -44
- 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 -1613
- 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 -1613
- data/doc/method_list.html +109 -101
- data/doc/top-level-namespace.html +1 -1
- data/lib/compony/component.rb +30 -8
- data/lib/compony/components/with_form.rb +1 -2
- data/lib/compony/virtual_model.rb +10 -0
- data/lib/compony.rb +13 -8
- metadata +29 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f370d3509af479647cefb4889e4b8ae5214f9279a581ba4bf8254ab38b85ffad
|
|
4
|
+
data.tar.gz: ec3e94f9a7b73b4fbd6219e1d74ad287870d86b3ac2bc808713ac40f790f0714
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6056562bf46feed464208dcd97989e52ab5bd577162bcd220d6295b7d8201127cec3874b7cc69ecd92ec954e3d817c0aec77f5bc9d56e798f9b0c6d4b5346e8f
|
|
7
|
+
data.tar.gz: fea9be679b4e245e85fe6e6c5a5e1fb9c2ac2ad73360c5a8806efe347014f7687f099482cb9b89488dd572a091eaca90c49a89acaed414bcf6876838c8cc11bb
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# 0.7.1
|
|
2
|
+
|
|
3
|
+
- Implement `Compony::VirtualModel` and document it in the Readme file
|
|
4
|
+
- Break up documentation into separate files
|
|
5
|
+
|
|
6
|
+
# 0.7.0
|
|
7
|
+
|
|
8
|
+
- Rename Component's internal `path` to `id_path` to distinguish it from Rails paths, as well as `path_hash` to `id_path_hash`
|
|
9
|
+
- (internal change): switch `WithForm`'s default `submit_path` block to `Compony.path` logic
|
|
10
|
+
- Implement new component DSL method `path`, closes #13
|
|
11
|
+
- The method allows components to define the path pointing towards them (the default behavior corresponds to that of `Compony.path` of previous versions)
|
|
12
|
+
- Adjust `Compony.path` to instanciate the target component and use the `path` block rather than come up with the path on its own
|
|
13
|
+
|
|
14
|
+
## Steps to take
|
|
15
|
+
|
|
16
|
+
- If using the methods formerly called `path` or `path_hash`, rename them to `id_path` respectively `id_path_hash`.
|
|
17
|
+
|
|
1
18
|
# 0.6.4
|
|
2
19
|
|
|
3
20
|
- Replace Feasibility's error message generation in case of dependent errors by a logic that fits fastgettext's modern pluralization
|