File rubygem-cells.changes of Package rubygem-cells

-------------------------------------------------------------------
Mon Feb  3 09:26:30 UTC 2025 - Dan Čermák <dan.cermak@posteo.net>

- ## 4.1.8

* Ruby 3.4.0 support.
* Drop ruby versions below 2.5


-------------------------------------------------------------------
Tue May 23 09:45:02 UTC 2017 - coolo@suse.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 05:31:44 UTC 2017 - coolo@suse.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 05:29:37 UTC 2016 - coolo@suse.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 05:31:36 UTC 2016 - coolo@suse.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 04:28:57 UTC 2016 - coolo@suse.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  8 04:28:35 UTC 2016 - coolo@suse.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 04:30:07 UTC 2016 - coolo@suse.com

- updated to version 4.1.1
 see installed CHANGES.md

-------------------------------------------------------------------
Wed Apr 20 04:29:29 UTC 2016 - coolo@suse.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 `@parent_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 05:30:54 UTC 2016 - coolo@suse.com

- updated to version 4.0.4
 see installed CHANGES.md

  ## 4.0.4
  
  * `Escaped::property` now properly escapes all passed properties. Thanks @xzo and @jlogsdon!

-------------------------------------------------------------------
Tue Dec  1 05:28:36 UTC 2015 - coolo@suse.com

- updated to version 4.0.3
 see installed CHANGES.md

  ## 4.0.3
  
  * `Cell::Partial` now does _append_ the global partial path to its `view_paths` instead of using `unshift` and thereby removing possible custom paths.
  * Adding `Cell::Translation` which allows using the `#t` helper. Thanks to @johnlane.
  * Performance improvement: when inflecting the view name (90% likely to be done) the `caller` is now limited to the data we need, saving memory. Thanks @timoschilling for implementing this.
  * In the `concept` helper, we no longer use `classify`, which means you can say `concept("comment/data")` and it will instantiate `Comment::Data` and not `Comment::Datum`. Thanks @firedev!

-------------------------------------------------------------------
Mon Jun 29 04:28:30 UTC 2015 - coolo@suse.com

- updated to version 4.0.2
 see installed CHANGES.md

  ## 4.0.2
  
  * In Rails, include `ActionView::Helpers::FormHelper` into `ViewModel` so we already have (and pollute our cell with) `UrlHelper` and `FormTagHelper`. Helpers, so much fun.
  * Concept cells will now infer their name properly even if the string `Cell` appears twice.

-------------------------------------------------------------------
Tue Jun 23 04:29:31 UTC 2015 - coolo@suse.com

- updated to version 4.0.1
 see installed CHANGES.md

  ## 4.0.1
  
  * Support forgery protection in `form_tag`.

-------------------------------------------------------------------
Tue Jun  9 04:31:06 UTC 2015 - coolo@suse.com

- updated to version 4.0.0
 see installed CHANGES.md

-------------------------------------------------------------------
Tue Feb 10 17:27:55 UTC 2015 - coolo@suse.com

- updated to version 3.11.3

-------------------------------------------------------------------
Mon Oct 13 05:46:52 UTC 2014 - coolo@suse.com

- adapt to new rubygem packaging

-------------------------------------------------------------------
Mon Jul 21 08:11:01 UTC 2014 - coolo@suse.com

- updated to version 3.11.1
 * Override `ActionView::Helpers::UrlHelper#url_for` in Rails 4.x as it is troublesome. That removes the annoying
     `arguments passed to url_for can't be handled. Please require routes or provide your own implementation`
     exception when using simple_form, form_for, etc with a view model.
 
 
 ## 3.11.0
 
 * Deprecated `Cell::Rails::ViewModel`, please inherit: `class SongCell < Cell::ViewModel`.
 * `ViewModel#call` is now the prefered way to invoke the rendering flow. Without any argument, `call` will run `render_state(:show)`. Pass in any method name you want.
 * Added `Caching::Notifications`.
 * Added `cell(:song, collection: [song1, song2])` to render collections. This only works with ViewModel (and, of course, Concept, too).
 * Added `::inherit_views` to only inherit views whereas real class inheritance would inherit all the dark past of the class.
 * `::build_for` removed/privatized/changed. Use `Cell::Base::cell_for` instead.
 * `Base::_parent_prefixes` is no longer used, if you override that somewhere in your cells it will break. We have our own implementation for computing the controller's prefixes in `Cell::Base::Prefixes` (simpler).
 * `#expire_cell_state` doesn't take symbols anymore, only the real cell class name.
 * Remove `Cell::Base.setup_view_paths!` and `Cell::Base::DEFAULT_VIEW_PATHS` and the associated Railtie. I don't know why this code survived 3 major versions, if you wanna set you own view paths just use `Cell::Base.view_paths=`.
 * Add `Base::self_contained!`.
 * Add `Base::inherit_views`.
 
 ### Concept
 * `#concept` helper is mixed into all views as an alternative to `#cell` and `#render_cell`. Let us know if we should do that conditionally, only.
 * Concept cells look for layouts in their self-contained views directory.
 * Add generator for Concept cells: `rails g concept Comment`

-------------------------------------------------------------------
Sun May 18 09:04:02 UTC 2014 - coolo@suse.com

- updated to version 3.10.1
 Allow packaging assets for Rails' asset pipeline into cells. 
 This is still experimental but works great. I love it.

-------------------------------------------------------------------
Sat Mar 15 18:46:00 UTC 2014 - coolo@suse.com

- updated to version 3.10.0
  * API CHANGE: Blocks passed to `::cache` and `::cache ... if: ` no longer receive the cell instance as the first argument. Instead, they're executed in cell instance context. Change your code like this:
  ```ruby
  cache :show do |cell, options|
    cell.version
  end
  # and
  cache :show, if: lambda {|cell, options| .. }
  ```
  should become
  
  ```ruby
  cache :show do |options|
    version
  end
  # and
  cache :show, if: lambda {|options| .. }
  ```
  
  Since the blocks are run in cell context, `self` will point to what was `cell` before.
  
  
  * `::cache` doesn't accept a `Proc` instance anymore, only blocks (was undocumented anyway).
  * Use [`uber` gem](https://github.com/apotonick/uber) for inheritable class attributes and dynamic options.
  
  ## 3.9.2
  
  * Autoload `Cell::Rails::ViewModel`.
  * Implement dynamic cache options by allowing lambdas that are executed at render-time - Thanks to @bibendi for this idea.
  

-------------------------------------------------------------------
Sun Jan  5 14:39:42 UTC 2014 - coolo@suse.com

- updated to version 3.9.1
 * Runs with Rails 4.1 now.
 * Internal changes on `Layouts` to prepare 4.1 compat.

-------------------------------------------------------------------
Thu Oct 31 05:54:38 UTC 2013 - coolo@suse.com

- updated to version 3.9.0
 * Cells in engines are now recognized under Rails 4.0.
 * Introducing @#cell@ and @#cell_for@ to instantiate cells in ActionController and ActionView.
 * Adding @Cell::Rails::ViewModel@ as a new "dialect" of working with cells.
 * Add @Cell::Base#process_args@ which is called in the initializer to handle arguments passed into the constructor.
 * Setting @controller in your @Cell::TestCase@ no longer get overridden by us.
 
-------------------------------------------------------------------
Sat Feb  9 09:36:32 UTC 2013 - coolo@suse.com

- updated to version 3.8.8
 * Cells runs with Rails 4.

-------------------------------------------------------------------
Tue Oct  9 08:29:51 UTC 2012 - coolo@suse.com

- updated to version 3.8.6
 * @cell/base@ can now be required without trouble.
 * Generated test files now respect namespaced cells.

-------------------------------------------------------------------
Mon Aug  6 17:50:20 UTC 2012 - coolo@suse.com

- buildrequire rdoc

-------------------------------------------------------------------
Wed Aug  1 05:02:36 UTC 2012 - coolo@suse.com

- updated to version 3.8.5

-------------------------------------------------------------------
Wed Aug 25 12:36:19 UTC 2010 - prusnak@opensuse.org

- updated to version 3.3.4

-------------------------------------------------------------------
Fri Jun 11 13:56:54 UTC 2010 - mrueckert@suse.de

- update to version 3.3.3

-------------------------------------------------------------------
Fri Jun 11 10:00:01 UTC 2010 - mrueckert@suse.de

- use rubygems_requires macro

-------------------------------------------------------------------
Thu Feb 18 09:26:49 UTC 2010 - prusnak@suse.cz

- updated to 3.3.0

-------------------------------------------------------------------
Thu Jan 14 18:00:25 UTC 2010 - prusnak@suse.cz

- created package

openSUSE Build Service is sponsored by