compony 0.11.6 → 0.11.8

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 (72) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/Gemfile.lock +2 -2
  4. data/Rakefile +1 -1
  5. data/TODO.md +2 -1
  6. data/VERSION +1 -1
  7. data/compony.gemspec +4 -4
  8. data/doc/ComponentGenerator.html +1 -1
  9. data/doc/Components.html +1 -1
  10. data/doc/ComponentsGenerator.html +1 -1
  11. data/doc/Compony/Component.html +1 -1
  12. data/doc/Compony/ComponentMixins/Default/Labelling.html +1 -1
  13. data/doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html +1 -1
  14. data/doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html +1 -1
  15. data/doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html +1 -1
  16. data/doc/Compony/ComponentMixins/Default/Standalone.html +1 -1
  17. data/doc/Compony/ComponentMixins/Default.html +1 -1
  18. data/doc/Compony/ComponentMixins/Resourceful.html +1 -1
  19. data/doc/Compony/ComponentMixins.html +1 -1
  20. data/doc/Compony/Components/Buttons/CssButton.html +1 -1
  21. data/doc/Compony/Components/Buttons/Link.html +1 -1
  22. data/doc/Compony/Components/Buttons.html +1 -1
  23. data/doc/Compony/Components/Destroy.html +1 -1
  24. data/doc/Compony/Components/Edit.html +1 -1
  25. data/doc/Compony/Components/Form.html +1 -1
  26. data/doc/Compony/Components/Index.html +1 -1
  27. data/doc/Compony/Components/List.html +1 -1
  28. data/doc/Compony/Components/New.html +1 -1
  29. data/doc/Compony/Components/Show.html +1 -1
  30. data/doc/Compony/Components/WithForm.html +1 -1
  31. data/doc/Compony/Components.html +1 -1
  32. data/doc/Compony/ControllerMixin.html +1 -1
  33. data/doc/Compony/Engine.html +1 -1
  34. data/doc/Compony/Intent.html +1 -1
  35. data/doc/Compony/ManageIntentsDsl.html +1 -1
  36. data/doc/Compony/MethodAccessibleHash.html +1 -1
  37. data/doc/Compony/ModelFields/Anchormodel.html +1 -1
  38. data/doc/Compony/ModelFields/Association.html +1 -1
  39. data/doc/Compony/ModelFields/Attachment.html +1 -1
  40. data/doc/Compony/ModelFields/Base.html +1 -1
  41. data/doc/Compony/ModelFields/Boolean.html +1 -1
  42. data/doc/Compony/ModelFields/Color.html +1 -1
  43. data/doc/Compony/ModelFields/Currency.html +1 -1
  44. data/doc/Compony/ModelFields/Date.html +1 -1
  45. data/doc/Compony/ModelFields/Datetime.html +1 -1
  46. data/doc/Compony/ModelFields/Decimal.html +1 -1
  47. data/doc/Compony/ModelFields/Email.html +1 -1
  48. data/doc/Compony/ModelFields/Float.html +1 -1
  49. data/doc/Compony/ModelFields/Integer.html +1 -1
  50. data/doc/Compony/ModelFields/Percentage.html +1 -1
  51. data/doc/Compony/ModelFields/Phone.html +1 -1
  52. data/doc/Compony/ModelFields/RichText.html +1 -1
  53. data/doc/Compony/ModelFields/String.html +1 -1
  54. data/doc/Compony/ModelFields/Text.html +1 -1
  55. data/doc/Compony/ModelFields/Time.html +1 -1
  56. data/doc/Compony/ModelFields/Url.html +1 -1
  57. data/doc/Compony/ModelFields.html +1 -1
  58. data/doc/Compony/ModelMixin.html +1 -1
  59. data/doc/Compony/NaturalOrdering.html +1 -1
  60. data/doc/Compony/RequestContext.html +1 -1
  61. data/doc/Compony/Version.html +1 -1
  62. data/doc/Compony/ViewHelpers.html +1 -1
  63. data/doc/Compony/VirtualModel.html +88 -2
  64. data/doc/Compony.html +1 -1
  65. data/doc/ComponyController.html +1 -1
  66. data/doc/_index.html +1 -1
  67. data/doc/file.README.html +1 -1
  68. data/doc/index.html +1 -1
  69. data/doc/method_list.html +236 -228
  70. data/doc/top-level-namespace.html +1 -1
  71. data/lib/compony/virtual_model.rb +11 -0
  72. metadata +4 -4
@@ -102,7 +102,7 @@
102
102
  </div>
103
103
 
104
104
  <div id="footer">
105
- Generated on Tue Apr 7 09:32:00 2026 by
105
+ Generated on Fri May 15 10:29:33 2026 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>
@@ -6,5 +6,16 @@ module Compony
6
6
  include Compony::ModelMixin
7
7
  include Anchormodel::ModelMixin
8
8
  include ActiveModel::Attributes
9
+
10
+ # `include ActiveModel::Attributes` above shadows `ActiveType::VirtualAttributes#attributes`,
11
+ # which would otherwise merge virtual columns into the returned hash. Without this restoration,
12
+ # attributes declared via `attribute :foo, :type` (routed to `at_attribute` by ActiveType)
13
+ # are written into `@virtual_attributes` but invisible to `#attributes`, breaking callers
14
+ # that do `model.attributes.slice(...)` etc. Mirrors `ActiveType::VirtualAttributes#attributes`.
15
+ def attributes
16
+ self.class._virtual_column_names.each_with_object(super) do |name, attrs|
17
+ attrs[name] = read_virtual_attribute(name)
18
+ end
19
+ end
9
20
  end
10
21
  end
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.11.6
4
+ version: 0.11.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Kalbermatter
@@ -140,14 +140,14 @@ dependencies:
140
140
  name: anchormodel
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: 0.3.0
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: 0.3.0
153
153
  - !ruby/object:Gem::Dependency
@@ -369,7 +369,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
369
369
  - !ruby/object:Gem::Version
370
370
  version: '0'
371
371
  requirements: []
372
- rubygems_version: 4.0.7
372
+ rubygems_version: 4.0.11
373
373
  specification_version: 4
374
374
  summary: Compony is a Gem that allows you to write your Rails application in component-style
375
375
  fashion. It combines a controller action and route along \ with its view into a