cells 4.1.0 → 4.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +12 -0
- data/lib/cell/collection.rb +3 -1
- data/lib/cell/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 594c3ef475df5cd6314031f24fb23547dbfb83bd
|
4
|
+
data.tar.gz: 44c82d7a1ef65bee33d4f4ff5c6500e92c7fba17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfb07287f0368594d464bab2850e0bd750c5366cd5658e0f23ace4654a1971a2352d9344c91ff9d7024b772df9a25db65788a95f9bc8ff220a9d41b1ca7ecbb8
|
7
|
+
data.tar.gz: 126977b1b2887691aaa13863de4f53404f38f0819a518f5acb74c5d6eb6c2d98fb9100ffa47d4a8a42d255cf8d8f0cba24009902fc869315a7a5cde427a04643
|
data/CHANGES.md
CHANGED
@@ -1,8 +1,20 @@
|
|
1
|
+
## 4.1.1
|
2
|
+
|
3
|
+
* Fix rendering of `Collection` where in some environments (Rails), the overridden `#call` method wouldn't work and strings would be escaped.
|
4
|
+
|
1
5
|
## 4.1.0
|
2
6
|
|
3
7
|
### API Fix/Changes
|
4
8
|
|
5
9
|
* All Rails code removed. Make sure to use [Cells-rails](https://github.com/trailblazer/cells-rails) if you want the old Rails behavior.
|
10
|
+
* The `builds` feature is now optional, you have to include `Builder` in your cell.
|
11
|
+
```ruby
|
12
|
+
class CommentCell < Cell::ViewModel
|
13
|
+
include Cell::Builder
|
14
|
+
|
15
|
+
builds do |..|
|
16
|
+
```
|
17
|
+
|
6
18
|
* A basic, rendering `#show` method is now provided automatically.
|
7
19
|
* `ViewModel#render` now accepts a block that can be `yield`ed in the view.
|
8
20
|
* Passing a block to `ViewModel#call` changed. Use `tap` if you want the "old" behavior (which was never official or documented).
|
data/lib/cell/collection.rb
CHANGED
data/lib/cell/version.rb
CHANGED