editmode 1.1.8 → 1.1.9
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 +4 -4
- data/README.md +3 -1
- data/lib/editmode.rb +1 -1
- data/lib/editmode/chunk_value.rb +2 -2
- data/lib/editmode/helper.rb +1 -1
- data/lib/editmode/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: fbdfaaca69c2832debd4fb728c6684b48abe8e9337cbaa8f4323a20cf175cf77
|
4
|
+
data.tar.gz: 51841cadd3a89aea58a0089b9e7c541a286f9da46fa2d7db0f32e9d7a07797ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9966ac6b514c9c237db8e2e1f77613431a365f2c4259565422892b9abdd749a2c294575bfd0e1242d9ac682a5340b940bacde295560fa1845e93ddd03ef500f1
|
7
|
+
data.tar.gz: fee7262f68522bb8e4f76d0de9f9da8c267c2a311105e89c72d7989408d46f124f6bbbf4170d712c0544aa4453b17f2837525c93f47da9afae2a729a0a2c47a5
|
data/README.md
CHANGED
@@ -94,8 +94,10 @@ e("cnk_16e04a02d577afb610ce", "Email Content", variables: variable_values)
|
|
94
94
|
|Parameter|Type|Description|
|
95
95
|
|---|---|---|
|
96
96
|
| identifier | string | The first argument of `c` takes the id of the collection you want to loop through |
|
97
|
-
| limit | int |`optional` The number of collection items you want to display |
|
97
|
+
| limit | int/string |`optional` The number of collection items you want to display |
|
98
98
|
| tags | array |`optional` Filter collection items based on tags listed in this parameter |
|
99
|
+
| class | string | `optional` Class name(s) that will be added along with "chunks-collection-wrapper" to the main collection `<div>` element |
|
100
|
+
| item_class | string | `optional` Class name(s) that will be added along with "chunks-collection-item--wrapper" to all collection items |
|
99
101
|
|
100
102
|
|
101
103
|
## Caching
|
data/lib/editmode.rb
CHANGED
data/lib/editmode/chunk_value.rb
CHANGED
@@ -31,13 +31,13 @@ module Editmode
|
|
31
31
|
raise require_field_id
|
32
32
|
end
|
33
33
|
else
|
34
|
-
raise
|
34
|
+
raise "undefined method 'field` for chunk_type: #{chunk_type} \n"
|
35
35
|
end
|
36
36
|
result || @content
|
37
37
|
end
|
38
38
|
|
39
39
|
def content
|
40
|
-
raise
|
40
|
+
raise "undefined method 'content` for chunk_type: collection_item \nDid you mean? field" if chunk_type == 'collection_item'
|
41
41
|
|
42
42
|
variable_parse!(@content, variable_fallbacks, variable_values)
|
43
43
|
end
|
data/lib/editmode/helper.rb
CHANGED
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.1.
|
4
|
+
version: 1.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Ennis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|