view_component 2.5.0 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 026e6dbe1f96cf8fb5d6127b756a5f78733e5918df2f9785972208866e755fd7
4
- data.tar.gz: cbab7c479e82b0d5445e6bdcfa7c2526e409b302283c601cc21c2df8e32f6ed9
3
+ metadata.gz: 38eb3604bfed89ac05aad6501271fe16c0045db486737fe1b6306ac002339b90
4
+ data.tar.gz: 5bd3f94e4f333667a9a534ff3171650a285df654bb45ae7e66a8f8441cfa5d9c
5
5
  SHA512:
6
- metadata.gz: cd6a8e929dc0c9ac04c1b8ac28ccf600a22b74394af75783a901c1054372ef00c1713ac1f82ea7602633f2f9ad92d499c7ea90310a3351f6e1c7e6da3cc52924
7
- data.tar.gz: dc16afe7a53dff39a9c1713d8ecb8878692dc49b5184da1fc5d733d41b46a91e8caeb9c1c0eae7aa4d396dac0269d563556d3a5932f8f31605ef4ee5b98569fa
6
+ metadata.gz: df1664a8bb11ccbb88dabb3605039ba15d57308219068341f00d5a85ec189d3dda57b0d6185c9f86526b99646a79e5b1e216e35d49b75439b9a3ea5f4df1ac59
7
+ data.tar.gz: 77ca17df33fadfafd7a38acfae6add65a2b2096f6dcc307717f899b2ff8f4e3d7532d68e7ee87b0d6addd8f4aeb47ef5b408e27a15d081c91ef39a5402890098
@@ -1,5 +1,11 @@
1
1
  # master
2
2
 
3
+ # 2.5.1
4
+
5
+ * Compile component before rendering collection.
6
+
7
+ *Rainer Borene*
8
+
3
9
  # v2.5.0
4
10
 
5
11
  * Add counter variables when rendering collections.
@@ -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!
@@ -4,7 +4,7 @@ module ViewComponent
4
4
  module VERSION
5
5
  MAJOR = 2
6
6
  MINOR = 5
7
- PATCH = 0
7
+ PATCH = 1
8
8
 
9
9
  STRING = [MAJOR, MINOR, PATCH].join(".")
10
10
  end
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.0
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-20 00:00:00.000000000 Z
11
+ date: 2020-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport