view_component 2.5.0 → 2.5.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of view_component might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/view_component/collection.rb +1 -0
- data/lib/view_component/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38eb3604bfed89ac05aad6501271fe16c0045db486737fe1b6306ac002339b90
|
4
|
+
data.tar.gz: 5bd3f94e4f333667a9a534ff3171650a285df654bb45ae7e66a8f8441cfa5d9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df1664a8bb11ccbb88dabb3605039ba15d57308219068341f00d5a85ec189d3dda57b0d6185c9f86526b99646a79e5b1e216e35d49b75439b9a3ea5f4df1ac59
|
7
|
+
data.tar.gz: 77ca17df33fadfafd7a38acfae6add65a2b2096f6dcc307717f899b2ff8f4e3d7532d68e7ee87b0d6addd8f4aeb47ef5b408e27a15d081c91ef39a5402890098
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,7 @@ module ViewComponent
|
|
5
5
|
def render_in(view_context, &block)
|
6
6
|
iterator = ActionView::PartialIteration.new(@collection.size)
|
7
7
|
|
8
|
+
@component.compile!
|
8
9
|
@collection.map do |item|
|
9
10
|
content = @component.new(component_options(item, iterator)).render_in(view_context, &block)
|
10
11
|
iterator.iterate!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: view_component
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub Open Source
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|