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.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +44 -1576
  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 +247 -156
  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 +2 -2
  20. data/doc/Compony/Components/Destroy.html +2 -2
  21. data/doc/Compony/Components/Edit.html +2 -2
  22. data/doc/Compony/Components/Form.html +2 -2
  23. data/doc/Compony/Components/Index.html +2 -2
  24. data/doc/Compony/Components/List.html +2 -2
  25. data/doc/Compony/Components/New.html +2 -2
  26. data/doc/Compony/Components/Show.html +2 -2
  27. data/doc/Compony/Components/WithForm.html +19 -21
  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 +46 -44
  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 -1613
  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 -1613
  90. data/doc/method_list.html +109 -101
  91. data/doc/top-level-namespace.html +1 -1
  92. data/lib/compony/component.rb +30 -8
  93. data/lib/compony/components/with_form.rb +1 -2
  94. data/lib/compony/virtual_model.rb +10 -0
  95. data/lib/compony.rb +13 -8
  96. metadata +29 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1cab18c62a3fb017fcd38d1395ee42cc17ef70e6d198be09b2a777d43d3ad477
4
- data.tar.gz: 65d1001d7548c596a397e8cb5b187a6784bbceca843d27135c9c270ca94cdbb7
3
+ metadata.gz: f370d3509af479647cefb4889e4b8ae5214f9279a581ba4bf8254ab38b85ffad
4
+ data.tar.gz: ec3e94f9a7b73b4fbd6219e1d74ad287870d86b3ac2bc808713ac40f790f0714
5
5
  SHA512:
6
- metadata.gz: d046b11849a74221e930fd09d3f152ae68541712a128bad628fc6b8ada5c9cbb75a469fa4cdf4054d1edafad6ce2d9545ce82a62cd6cb57823c3c617689062c0
7
- data.tar.gz: 895675d7080bd67b36b6ec69d3415950ae543335292656f29f0f44fedac204091ffda678d9fb74d9cbcc3230f14ccf3500027cdd2a16e2cd8b8377b855c24304
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
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- compony (0.6.4.edge)
4
+ compony (0.7.1.edge)
5
5
  anchormodel (~> 0.2.1)
6
6
  cancancan (~> 3.6.1)
7
7
  dslblend (>= 0.0.3)