compony 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/VERSION +1 -1
  4. data/compony.gemspec +3 -3
  5. data/doc/ComponentGenerator.html +1 -1
  6. data/doc/Components.html +1 -1
  7. data/doc/ComponentsGenerator.html +1 -1
  8. data/doc/Compony/Component.html +419 -159
  9. data/doc/Compony/ComponentMixins/Default/Labelling.html +1 -1
  10. data/doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html +1 -1
  11. data/doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html +1 -1
  12. data/doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html +1 -1
  13. data/doc/Compony/ComponentMixins/Default/Standalone.html +6 -6
  14. data/doc/Compony/ComponentMixins/Default.html +1 -1
  15. data/doc/Compony/ComponentMixins/Resourceful.html +5 -5
  16. data/doc/Compony/ComponentMixins.html +1 -1
  17. data/doc/Compony/Components/Button.html +6 -6
  18. data/doc/Compony/Components/Destroy.html +2 -2
  19. data/doc/Compony/Components/Edit.html +2 -2
  20. data/doc/Compony/Components/Form.html +2 -2
  21. data/doc/Compony/Components/New.html +2 -2
  22. data/doc/Compony/Components/WithForm.html +2 -2
  23. data/doc/Compony/Components.html +1 -1
  24. data/doc/Compony/ControllerMixin.html +1 -1
  25. data/doc/Compony/Engine.html +1 -1
  26. data/doc/Compony/MethodAccessibleHash.html +1 -1
  27. data/doc/Compony/ModelFields/Anchormodel.html +1 -1
  28. data/doc/Compony/ModelFields/Association.html +1 -1
  29. data/doc/Compony/ModelFields/Attachment.html +2 -2
  30. data/doc/Compony/ModelFields/Base.html +1 -1
  31. data/doc/Compony/ModelFields/Boolean.html +1 -1
  32. data/doc/Compony/ModelFields/Color.html +1 -1
  33. data/doc/Compony/ModelFields/Currency.html +1 -1
  34. data/doc/Compony/ModelFields/Date.html +1 -1
  35. data/doc/Compony/ModelFields/Datetime.html +1 -1
  36. data/doc/Compony/ModelFields/Decimal.html +1 -1
  37. data/doc/Compony/ModelFields/Email.html +1 -1
  38. data/doc/Compony/ModelFields/Float.html +1 -1
  39. data/doc/Compony/ModelFields/Integer.html +1 -1
  40. data/doc/Compony/ModelFields/Percentage.html +1 -1
  41. data/doc/Compony/ModelFields/Phone.html +1 -1
  42. data/doc/Compony/ModelFields/RichText.html +1 -1
  43. data/doc/Compony/ModelFields/String.html +1 -1
  44. data/doc/Compony/ModelFields/Text.html +1 -1
  45. data/doc/Compony/ModelFields/Time.html +1 -1
  46. data/doc/Compony/ModelFields/Url.html +1 -1
  47. data/doc/Compony/ModelFields.html +1 -1
  48. data/doc/Compony/ModelMixin.html +1 -1
  49. data/doc/Compony/NaturalOrdering.html +1 -1
  50. data/doc/Compony/RequestContext.html +1 -1
  51. data/doc/Compony/Version.html +1 -1
  52. data/doc/Compony/ViewHelpers.html +1 -1
  53. data/doc/Compony.html +152 -92
  54. data/doc/ComponyController.html +1 -1
  55. data/doc/_index.html +1 -1
  56. data/doc/file.README.html +1 -1
  57. data/doc/index.html +1 -1
  58. data/doc/method_list.html +32 -0
  59. data/doc/top-level-namespace.html +1 -1
  60. data/lib/compony/component.rb +24 -4
  61. data/lib/compony/component_mixins/default/standalone.rb +3 -3
  62. data/lib/compony/component_mixins/resourceful.rb +2 -2
  63. data/lib/compony/components/button.rb +2 -2
  64. data/lib/compony/model_fields/attachment.rb +1 -1
  65. data/lib/compony.rb +24 -11
  66. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 284687f68aedb913ed18269036ecac33270b9134c8d68b5550c7c550cffa0f47
4
- data.tar.gz: 764c77b44877c8d9fb2f758bbc3f755a45b91ed8f0bc61418f8da903f100a32c
3
+ metadata.gz: 54d8e9360e0571c8c3f5f7f0a869e1e8cd39eb5d3a180200bba9c3c71713f741
4
+ data.tar.gz: c46aee666c7bc79a417d714ce3cbc315c72e357802d86c0fb4b44158718282d2
5
5
  SHA512:
6
- metadata.gz: d4a694e1628e12abdc788ae30bb27ad6d1107f1edd01190f9a79b158abaf9a5aac7ba07a86b24b29362e0c8022d1e4f2072150aae268c286b86b5cff0887de35
7
- data.tar.gz: 5e52a76eb1df4fcc8299b2ab59f1a1134ef23509a426877ad64ab9ac3918cd131f540406a073c1afbf063924d25afcecbe429dcd1d0765e1ab8b2c7b0367a43d
6
+ metadata.gz: 69417887c92f93f17faadeb825f6f3c70056a21cd38af2493fb9e09639d992b51c9479fc1274b767082642f887f83b8380d1499e1c29b5688cc1341e4ee4cf9d
7
+ data.tar.gz: 043b6ae2a4b4cc152b1c0d8f89023b36d3bcc31525de307c56076865758da8a5a813ee0df629d8b5b068eeacf26069f67bede3241a5861f589f18a82ac7a236d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 0.4.1
2
+
3
+ - Allow the argument `standalone_name` in button and path helper
4
+ - Provide family and comp name accessors in the static context as well for convenience
5
+ - Make `Compony.path` accept a component class as well
6
+ - Make Compony.button accept a component as well. Works in combination with passing a model.
7
+ - Fix a bug that caused an override of input option arguments if the `accept` parameter is present
8
+
1
9
  # 0.4.0
2
10
 
3
11
  - Support Cancancan's `accessible_attributes`
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
data/compony.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # This file is auto-generated via: 'rake gemspec'.
3
3
 
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: compony 0.4.0 ruby lib
5
+ # stub: compony 0.4.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "compony".freeze
9
- s.version = "0.4.0".freeze
9
+ s.version = "0.4.1".freeze
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Sandro Kalbermatter".freeze, "contributors".freeze]
14
- s.date = "2024-06-11"
14
+ s.date = "2024-09-12"
15
15
  s.files = [".gitignore".freeze, ".ruby-version".freeze, ".yardopts".freeze, "CHANGELOG.md".freeze, "Gemfile".freeze, "Gemfile.lock".freeze, "LICENSE".freeze, "README.md".freeze, "Rakefile".freeze, "TODO.md".freeze, "VERSION".freeze, "app/controllers/compony_controller.rb".freeze, "compony.gemspec".freeze, "config/locales/de.yml".freeze, "config/locales/en.yml".freeze, "config/locales/fr.yml".freeze, "config/routes.rb".freeze, "doc/ComponentGenerator.html".freeze, "doc/Components.html".freeze, "doc/ComponentsGenerator.html".freeze, "doc/Compony.html".freeze, "doc/Compony/Component.html".freeze, "doc/Compony/ComponentMixins.html".freeze, "doc/Compony/ComponentMixins/Default.html".freeze, "doc/Compony/ComponentMixins/Default/Labelling.html".freeze, "doc/Compony/ComponentMixins/Default/Standalone.html".freeze, "doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html".freeze, "doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html".freeze, "doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html".freeze, "doc/Compony/ComponentMixins/Resourceful.html".freeze, "doc/Compony/Components.html".freeze, "doc/Compony/Components/Button.html".freeze, "doc/Compony/Components/Destroy.html".freeze, "doc/Compony/Components/Edit.html".freeze, "doc/Compony/Components/Form.html".freeze, "doc/Compony/Components/New.html".freeze, "doc/Compony/Components/WithForm.html".freeze, "doc/Compony/ControllerMixin.html".freeze, "doc/Compony/Engine.html".freeze, "doc/Compony/MethodAccessibleHash.html".freeze, "doc/Compony/ModelFields.html".freeze, "doc/Compony/ModelFields/Anchormodel.html".freeze, "doc/Compony/ModelFields/Association.html".freeze, "doc/Compony/ModelFields/Attachment.html".freeze, "doc/Compony/ModelFields/Base.html".freeze, "doc/Compony/ModelFields/Boolean.html".freeze, "doc/Compony/ModelFields/Color.html".freeze, "doc/Compony/ModelFields/Currency.html".freeze, "doc/Compony/ModelFields/Date.html".freeze, "doc/Compony/ModelFields/Datetime.html".freeze, "doc/Compony/ModelFields/Decimal.html".freeze, "doc/Compony/ModelFields/Email.html".freeze, "doc/Compony/ModelFields/Float.html".freeze, "doc/Compony/ModelFields/Integer.html".freeze, "doc/Compony/ModelFields/Percentage.html".freeze, "doc/Compony/ModelFields/Phone.html".freeze, "doc/Compony/ModelFields/RichText.html".freeze, "doc/Compony/ModelFields/String.html".freeze, "doc/Compony/ModelFields/Text.html".freeze, "doc/Compony/ModelFields/Time.html".freeze, "doc/Compony/ModelFields/Url.html".freeze, "doc/Compony/ModelMixin.html".freeze, "doc/Compony/NaturalOrdering.html".freeze, "doc/Compony/RequestContext.html".freeze, "doc/Compony/Version.html".freeze, "doc/Compony/ViewHelpers.html".freeze, "doc/ComponyController.html".freeze, "doc/_index.html".freeze, "doc/class_list.html".freeze, "doc/css/common.css".freeze, "doc/css/full_list.css".freeze, "doc/css/style.css".freeze, "doc/file.README.html".freeze, "doc/file_list.html".freeze, "doc/frames.html".freeze, "doc/imgs/intro-example-destroy.png".freeze, "doc/imgs/intro-example-edit.png".freeze, "doc/imgs/intro-example-index.png".freeze, "doc/imgs/intro-example-new.png".freeze, "doc/imgs/intro-example-show.png".freeze, "doc/index.html".freeze, "doc/js/app.js".freeze, "doc/js/full_list.js".freeze, "doc/js/jquery.js".freeze, "doc/method_list.html".freeze, "doc/resourceful_lifecycle.graphml".freeze, "doc/resourceful_lifecycle.pdf".freeze, "doc/resourceful_lifecycle.png".freeze, "doc/top-level-namespace.html".freeze, "lib/compony.rb".freeze, "lib/compony/component.rb".freeze, "lib/compony/component_mixins/default/labelling.rb".freeze, "lib/compony/component_mixins/default/standalone.rb".freeze, "lib/compony/component_mixins/default/standalone/resourceful_verb_dsl.rb".freeze, "lib/compony/component_mixins/default/standalone/standalone_dsl.rb".freeze, "lib/compony/component_mixins/default/standalone/verb_dsl.rb".freeze, "lib/compony/component_mixins/resourceful.rb".freeze, "lib/compony/components/button.rb".freeze, "lib/compony/components/destroy.rb".freeze, "lib/compony/components/edit.rb".freeze, "lib/compony/components/form.rb".freeze, "lib/compony/components/new.rb".freeze, "lib/compony/components/with_form.rb".freeze, "lib/compony/controller_mixin.rb".freeze, "lib/compony/engine.rb".freeze, "lib/compony/method_accessible_hash.rb".freeze, "lib/compony/model_fields/anchormodel.rb".freeze, "lib/compony/model_fields/association.rb".freeze, "lib/compony/model_fields/attachment.rb".freeze, "lib/compony/model_fields/base.rb".freeze, "lib/compony/model_fields/boolean.rb".freeze, "lib/compony/model_fields/color.rb".freeze, "lib/compony/model_fields/currency.rb".freeze, "lib/compony/model_fields/date.rb".freeze, "lib/compony/model_fields/datetime.rb".freeze, "lib/compony/model_fields/decimal.rb".freeze, "lib/compony/model_fields/email.rb".freeze, "lib/compony/model_fields/float.rb".freeze, "lib/compony/model_fields/integer.rb".freeze, "lib/compony/model_fields/percentage.rb".freeze, "lib/compony/model_fields/phone.rb".freeze, "lib/compony/model_fields/rich_text.rb".freeze, "lib/compony/model_fields/string.rb".freeze, "lib/compony/model_fields/text.rb".freeze, "lib/compony/model_fields/time.rb".freeze, "lib/compony/model_fields/url.rb".freeze, "lib/compony/model_mixin.rb".freeze, "lib/compony/natural_ordering.rb".freeze, "lib/compony/request_context.rb".freeze, "lib/compony/version.rb".freeze, "lib/compony/view_helpers.rb".freeze, "lib/generators/component/USAGE".freeze, "lib/generators/component/component_generator.rb".freeze, "lib/generators/component/templates/component.rb.erb".freeze, "lib/generators/component/templates/destroy.rb.erb".freeze, "lib/generators/component/templates/edit.rb.erb".freeze, "lib/generators/component/templates/form.rb.erb".freeze, "lib/generators/component/templates/new.rb.erb".freeze, "lib/generators/components/USAGE".freeze, "lib/generators/components/components_generator.rb".freeze, "logo.svg".freeze]
16
16
  s.required_ruby_version = Gem::Requirement.new(">= 3.2.2".freeze)
17
17
  s.rubygems_version = "3.5.11".freeze
@@ -221,7 +221,7 @@
221
221
  </div>
222
222
 
223
223
  <div id="footer">
224
- Generated on Tue Jun 11 11:15:54 2024 by
224
+ Generated on Thu Sep 12 16:31:19 2024 by
225
225
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
226
226
  0.9.36 (ruby-3.2.2).
227
227
  </div>
data/doc/Components.html CHANGED
@@ -95,7 +95,7 @@
95
95
  </div>
96
96
 
97
97
  <div id="footer">
98
- Generated on Tue Jun 11 11:15:54 2024 by
98
+ Generated on Thu Sep 12 16:31:18 2024 by
99
99
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
100
100
  0.9.36 (ruby-3.2.2).
101
101
  </div>
@@ -193,7 +193,7 @@
193
193
  </div>
194
194
 
195
195
  <div id="footer">
196
- Generated on Tue Jun 11 11:15:54 2024 by
196
+ Generated on Thu Sep 12 16:31:19 2024 by
197
197
  <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
198
198
  0.9.36 (ruby-3.2.2).
199
199
  </div>