compony 0.2.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/Gemfile.lock +3 -3
  4. data/README.md +1397 -33
  5. data/Rakefile +6 -2
  6. data/TODO.md +1 -0
  7. data/VERSION +1 -0
  8. data/app/controllers/compony_controller.rb +3 -1
  9. data/compony.gemspec +7 -7
  10. data/config/locales/fr.yml +33 -0
  11. data/doc/ComponentGenerator.html +231 -0
  12. data/doc/Components.html +105 -0
  13. data/doc/ComponentsGenerator.html +203 -0
  14. data/doc/Compony/Component.html +2098 -0
  15. data/doc/Compony/ComponentMixins/Default/Labelling.html +406 -0
  16. data/doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html +539 -0
  17. data/doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html +588 -0
  18. data/doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html +577 -0
  19. data/doc/Compony/ComponentMixins/Default/Standalone.html +692 -0
  20. data/doc/Compony/ComponentMixins/Default.html +126 -0
  21. data/doc/Compony/ComponentMixins/Resourceful.html +1193 -0
  22. data/doc/Compony/ComponentMixins.html +126 -0
  23. data/doc/Compony/Components/Button.html +293 -0
  24. data/doc/Compony/Components/Destroy.html +384 -0
  25. data/doc/Compony/Components/Edit.html +462 -0
  26. data/doc/Compony/Components/Form.html +1112 -0
  27. data/doc/Compony/Components/New.html +462 -0
  28. data/doc/Compony/Components/WithForm.html +528 -0
  29. data/doc/Compony/Components.html +126 -0
  30. data/doc/Compony/ControllerMixin.html +136 -0
  31. data/doc/Compony/Engine.html +133 -0
  32. data/doc/Compony/MethodAccessibleHash.html +453 -0
  33. data/doc/Compony/ModelFields/Anchormodel.html +383 -0
  34. data/doc/Compony/ModelFields/Association.html +613 -0
  35. data/doc/Compony/ModelFields/Attachment.html +305 -0
  36. data/doc/Compony/ModelFields/Base.html +1066 -0
  37. data/doc/Compony/ModelFields/Boolean.html +232 -0
  38. data/doc/Compony/ModelFields/Color.html +299 -0
  39. data/doc/Compony/ModelFields/Currency.html +232 -0
  40. data/doc/Compony/ModelFields/Date.html +232 -0
  41. data/doc/Compony/ModelFields/Datetime.html +232 -0
  42. data/doc/Compony/ModelFields/Decimal.html +154 -0
  43. data/doc/Compony/ModelFields/Email.html +240 -0
  44. data/doc/Compony/ModelFields/Float.html +154 -0
  45. data/doc/Compony/ModelFields/Integer.html +154 -0
  46. data/doc/Compony/ModelFields/Percentage.html +232 -0
  47. data/doc/Compony/ModelFields/Phone.html +301 -0
  48. data/doc/Compony/ModelFields/RichText.html +232 -0
  49. data/doc/Compony/ModelFields/String.html +154 -0
  50. data/doc/Compony/ModelFields/Text.html +154 -0
  51. data/doc/Compony/ModelFields/Time.html +154 -0
  52. data/doc/Compony/ModelFields/Url.html +240 -0
  53. data/doc/Compony/ModelFields.html +126 -0
  54. data/doc/Compony/ModelMixin.html +524 -0
  55. data/doc/Compony/RequestContext.html +791 -0
  56. data/doc/Compony/Version.html +139 -0
  57. data/doc/Compony/ViewHelpers.html +443 -0
  58. data/doc/Compony.html +2156 -0
  59. data/doc/ComponyController.html +124 -0
  60. data/doc/_index.html +569 -0
  61. data/doc/class_list.html +51 -0
  62. data/doc/css/common.css +1 -0
  63. data/doc/css/full_list.css +58 -0
  64. data/doc/css/style.css +497 -0
  65. data/doc/file.README.html +1565 -0
  66. data/doc/file_list.html +56 -0
  67. data/doc/frames.html +17 -0
  68. data/doc/imgs/intro-example-destroy.png +0 -0
  69. data/doc/imgs/intro-example-edit.png +0 -0
  70. data/doc/imgs/intro-example-index.png +0 -0
  71. data/doc/imgs/intro-example-new.png +0 -0
  72. data/doc/imgs/intro-example-show.png +0 -0
  73. data/doc/index.html +1565 -0
  74. data/doc/js/app.js +314 -0
  75. data/doc/js/full_list.js +216 -0
  76. data/doc/js/jquery.js +4 -0
  77. data/doc/method_list.html +1435 -0
  78. data/doc/resourceful_lifecycle.png +0 -0
  79. data/doc/top-level-namespace.html +112 -0
  80. data/lib/compony/component.rb +2 -1
  81. data/lib/compony/component_mixins/default/standalone/resourceful_verb_dsl.rb +1 -1
  82. data/lib/compony/component_mixins/default/standalone/standalone_dsl.rb +14 -3
  83. data/lib/compony/component_mixins/default/standalone/verb_dsl.rb +14 -5
  84. data/lib/compony/component_mixins/default/standalone.rb +10 -3
  85. data/lib/compony/components/form.rb +6 -1
  86. data/lib/compony/components/with_form.rb +14 -1
  87. data/lib/compony/model_fields/anchormodel.rb +0 -22
  88. data/lib/compony/model_mixin.rb +12 -2
  89. data/lib/compony/version.rb +1 -7
  90. data/logo.svg +133 -0
  91. metadata +83 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f23cc54f00a7ceb09e6e5ce344ac957dfd22863ae54fbb8bfee47663aface5a9
4
- data.tar.gz: 78ab3342c2ab352d18e841696324497b0c7891f06d74dda0ad28e8998c5e18ac
3
+ metadata.gz: fde6d013ecb5bcf1288608cbbb4cc1ea29c78a9fcd69a49662d39b3e7a80aff2
4
+ data.tar.gz: 05f28621fddc7c0bdd016f0215466f0907a8d605507994b15bbad1ac727e52e7
5
5
  SHA512:
6
- metadata.gz: 6e2d696881f150e9f6b3c43522412670eecd87aae908a9bcd4be9184de74cc4e444df32c4b0965623c61065a38f483e4a9db5e4d26920cb54d8aaeaf393ad714
7
- data.tar.gz: 79bdb5b40c32265f2c6ab6eb2ab421ad0ca48b13d1eb6dd5b64d8217e60e7b9fb9a424fe34c33896f8cc32ce6d1cd88d2ad0d532f40422370f40e0cd0440256f
6
+ metadata.gz: a44257229475cf5c9a2c139484c85de9882f88f952835069d8918eca0e827651158a51952c4140cbbb8f559d293e243244f64261e873f9aa8a5fdf19566c4832
7
+ data.tar.gz: 99ce464810f661e5dc19610d0c70c64a178854edc3d6c8e1ef055e0eeb48d64a6aadd2396d5c50f94ad6a5cc64b110a6b6e93056de500522dbea1152e6ac9bee
data/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
1
+ # 0.2.2
2
+
3
+ - Adjust gemspec
4
+ - Generate documentation
5
+ - Add VERSION file
6
+ - Replace custom anchormodel field implementation by Anchormodel's new implementation of SimpleForm Input
7
+
8
+ # 0.2.1
9
+
10
+ - Fix a bug where the app crashed on HEAD verb
11
+ - Show more details about failing authorization block
12
+ - Implement `submit_path` DSL call for WithForm
13
+ - Add French translation
14
+ - Implement `skip_autofocus` in Form
15
+ - Allow partial override of standalone verb configs. Example:
16
+ ```ruby
17
+ verb :get do
18
+ authorize { true }
19
+ end
20
+ verb :post do
21
+ authorize { true }
22
+ # Parent class implements more logic here, which will no longer be overwritten by calling `verb :post`.
23
+ end
24
+ ```
25
+
1
26
  # 0.2.0
2
27
 
3
28
  - Cleanup old code
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- compony (0.1.2.edge)
5
- anchormodel (~> 0.1.2)
4
+ compony (0.2.2.edge)
5
+ anchormodel (~> 0.1.5)
6
6
  cancancan (~> 3.4.0)
7
7
  dslblend (>= 0.0.3)
8
8
  dyny (>= 0.0.3)
@@ -88,7 +88,7 @@ GEM
88
88
  minitest (>= 5.1)
89
89
  mutex_m
90
90
  tzinfo (~> 2.0)
91
- anchormodel (0.1.3)
91
+ anchormodel (0.1.5)
92
92
  rails (~> 7.0)
93
93
  ast (2.4.2)
94
94
  base64 (0.2.0)