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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc9fa1e04a8c3b0ad9905c1b01fe31cf432f09fb
4
- data.tar.gz: 187264b494b8f78c14a5f33d0376dc97fb0745d3
3
+ metadata.gz: 594c3ef475df5cd6314031f24fb23547dbfb83bd
4
+ data.tar.gz: 44c82d7a1ef65bee33d4f4ff5c6500e92c7fba17
5
5
  SHA512:
6
- metadata.gz: 0f003307a94784a0bf5ccf2d33694f7a431d8d616e52d1381e8c7dc017281c65a6a61bbbb0e0956870007a67c68c91ad9dc140a728bc062961671df6d70f16d5
7
- data.tar.gz: 211b7bd11e8e944422516297e5b2644b0b9405f5caafe335ef9035505d40f5351264709cebca487f02b83b0b793b63addbc90518b297b038abf13c7bea38d132
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).
@@ -24,7 +24,9 @@ module Cell
24
24
  end
25
25
  include Call
26
26
 
27
- alias to_s call
27
+ def to_s
28
+ call
29
+ end
28
30
 
29
31
  # Iterate collection and build a cell for each item.
30
32
  # The passed block receives that cell and the index.
data/lib/cell/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cell
2
- VERSION = "4.1.0"
2
+ VERSION = "4.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cells
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer