editmode 1.4.0 → 1.5.0

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: 9d4e2e45806e29ba1a85e9bc615297cb1e1a6e9445d50f52b003472b2a20cd6c
4
- data.tar.gz: 1a8c556bd66f8bff8b3c59e696f1e08dc5c1b4855537c10cb7874bcb6139e05c
3
+ metadata.gz: 500fe0cf37b2d0586d015874d1125ba7f03e71431db4e60d337f5a9dcc61f2b5
4
+ data.tar.gz: 99adf389c43e829add85c044ac4527bcf4db957f5e31d16cc74a2c3bc37dea33
5
5
  SHA512:
6
- metadata.gz: 537d0f6d2ef4627f99bc9ca085b022bb9c5d6b8035254bc5a4284d9a25f3e24996e6f4d1a69734cca3c72317e292505706202004c7147dbe2f7419e0266c441e
7
- data.tar.gz: b36ac59ef4a1768c08ab526401b1e28e92fe9977c53e4bc786b850fb9f25f21968da79a992ad8321bdd4457297df687ed6a98a601b80be492101fdf7ac8bc4ea
6
+ metadata.gz: ba38286569b3724873f8ce653057e170cc816800e31901aeb7838b2aedca51a73568f850c4d50f249b0e411b648f98cf72e81e4590e778cf7b996afff751583a
7
+ data.tar.gz: 882ff9cca0f75438c613bb22e07cc380f5727ebe4b8d435b88794696d90d82c0f51d34ad884fe1ad1a432a64a9e0bfe50ee95df5cc937d1d9d2f80823a074a76
@@ -63,10 +63,10 @@ module Editmode
63
63
 
64
64
  if chunks.any?
65
65
  content_tag :div, class: "chunks-collection-wrapper #{parent_class}", data: {chunk_collection_identifier: collection_identifier} do
66
- chunks.each do |chunk|
66
+ chunks.each_with_index do |chunk, index|
67
67
  @custom_field_chunk = chunk
68
68
  concat(content_tag(:div, class: "chunks-collection-item--wrapper #{item_class}") do
69
- yield(@custom_field_chunk)
69
+ yield(@custom_field_chunk, index)
70
70
  end)
71
71
  end
72
72
 
@@ -1,3 +1,3 @@
1
1
  module Editmode
2
- VERSION = "1.4.0"
2
+ VERSION = "1.5.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: editmode
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Ennis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-24 00:00:00.000000000 Z
11
+ date: 2021-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0'
114
114
  requirements: []
115
- rubygems_version: 3.0.3
115
+ rubygems_version: 3.0.3.1
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Editmode allows you to turn plain text in your rails app into easily inline-editable