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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 500fe0cf37b2d0586d015874d1125ba7f03e71431db4e60d337f5a9dcc61f2b5
|
4
|
+
data.tar.gz: 99adf389c43e829add85c044ac4527bcf4db957f5e31d16cc74a2c3bc37dea33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
|
data/lib/editmode/version.rb
CHANGED
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
|
+
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-
|
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
|