Changelog for
ruby3.3-rubygem-cells-4.1.8-3.40.x86_64.rpm :
* Fri Jul 02 2021 Matthew Trescott
- update to 4.1.8 (actually built from current git master)
* Tue May 23 2017 cooloAATTsuse.com- updated to version 4.1.7 see installed CHANGES.md [#]# 4.1.7
* `Collection#join` can now be called without a block.
* Sun Jan 29 2017 cooloAATTsuse.com- updated to version 4.1.6 see installed CHANGES.md [#]# 4.1.6
* Use `Declarative::Option` and `Declarative::Builder` instead of `uber`\'s. This allows removing the `uber` version restriction.
* Sat Dec 10 2016 cooloAATTsuse.com- updated to version 4.1.5 see installed CHANGES.md [#]# 4.1.5
* Fix a bug where nested calls of `cell(name, context: {...})` would ignore the new context elements, resulting in the old context being passed on. By adding `Context::[]` the new elements are now properly merged into a
*
*new context hash
*
*. This means that adding elements to the child context won\'t leak up into the parent context anymore.
* Fri Nov 11 2016 cooloAATTsuse.com- updated to version 4.1.4 see installed CHANGES.md [#]# 4.1.4
* Upgrading to Uber 0.1 which handles builders a bit differently.
* Tue Aug 16 2016 cooloAATTsuse.com- updated to version 4.1.3 see installed CHANGES.md [#]# 4.1.3
* Load `Uber::InheritableAttr` in `Testing` to fix a bug in `cells-rspec`.
* Fri Jul 08 2016 cooloAATTsuse.com- updated to version 4.1.2 see installed CHANGES.md [#]# 4.1.2
* Testing with Rails 5 now works, by removing code the last piece of Rails-code (I know, it sounds bizarre).
* Sat May 21 2016 cooloAATTsuse.com- updated to version 4.1.1 see installed CHANGES.md
* Wed Apr 20 2016 cooloAATTsuse.com- updated to version 4.0.5 see installed CHANGES.md [#]# 4.1.0 TODO: extract internal :layout, extract builder [#]## API Fix/Changes
* You can no longer pass a block to `ViewModel#call`. Use `tap` if you want the same behavior. ```ruby Comment::Cell.new(comment).().tap { |cell| } ```
* `Concept#cell` now will resolve a concept cell (`Song::Cell`), and not the old-style suffix cell (`SongCell`). The same applies to `Concept#concept`. ```ruby concept(\"song/cell\", song).cell(\"song/cell/composer\") #=> resolves to Song::Cell::Composer ``` This decision has been made in regards of the upcoming, ass-kicking Cells 5. It simplifies code dramatically, and we consider it unnatural to mix concept and suffix cells in applications.
* In case you were using `AATTparent_controller`, this doesn\'t exist anymore (and was never documented, either). Use `options[:context][:controller]`.
* `::self_contained!` is no longer included into `ViewModel`. Please try using `Trailblazer::Cell` instead. If you still need it, here\'s how. ```ruby class SongCell < Cell::ViewModel extend SelfContained self_contained! ```
* `Cell::Concept` is deprecated and you should be using the excellent `Trailblazer::Cell` class instead, because that\'s what a concept cell tries to be in an awkward way. The latter is usable without Trailblazer. We are hereby dropping support for `Cell::Concept` (it still works). [#]## Awesomeness
* Introduced the concept of a context object that is being passed to all nested cells. This object is supposed to contain dependencies such as `current_user`, in Rails it contains the \"parent_controller\" under the `context[:controller]` key. Simple provide it as an option when rendering the cell. ```ruby cell(:song, song, context: { current_user: current_user }) ``` The `#context` method allows to access this very hash. ```ruby def role context[:current_user].admin? \"Admin\" : \"A nobody\" end ```
* The `cell` helper now allows to pass in a constant, too. ```ruby cell(Song::Cell, song) ``` [#]# 4.0.5
* Fix `Testing` so you can use Capybara matchers on `cell(:song, collection: [..])`.
* Thu Jan 21 2016 cooloAATTsuse.com- updated to version 4.0.4 see installed CHANGES.md [#]# 4.0.4
* `Escaped::property` now properly escapes all passed properties. Thanks AATTxzo and AATTjlogsdon!