editmode 1.6.0.pre.1 → 1.6.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 +4 -4
- data/README.md +5 -0
- data/lib/editmode/action_view_extensions/editmode_helper.rb +4 -7
- data/lib/editmode/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3562a1b7e78951687db2ceb19bdb9ff6553f744e982f4e4b59306aca5dc67a98
|
4
|
+
data.tar.gz: 89994562d87db5aace1b901e19a4b73cbffa31121ee19370ba26d9c98a86cec3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4181d73541784b2eccb1fe141c3905c0cf95b255fc719912ac77de504357f751a4b591090da84719c4b0d7eb3d238c1ca914330132195e4c834a6c7336021923
|
7
|
+
data.tar.gz: 409ddeaac99feea4a855e2722544cbfa82bd23c4283b537a65dce606f70d843f59c99a967f6e75adbb2f93e16c5d1cb5e9ee799be07e6248a5d657efc1f1952e
|
data/README.md
CHANGED
@@ -33,6 +33,11 @@ end
|
|
33
33
|
That's it, you're all set up. By default Editmode will now include editmode.js in every page of your rails application, unless you disable auto-include.
|
34
34
|
<hr/>
|
35
35
|
|
36
|
+
#### 3. (Rails 6) Ensuring the Magic Editor works with Content Security Policy
|
37
|
+
|
38
|
+
- Add "https://static.editmode.com" to `style_src` and `script_src` in your content security policy.
|
39
|
+
- Add "https://api.editmode.com" to `connect_src` in your content security policy.
|
40
|
+
|
36
41
|
## Rendering Content
|
37
42
|
|
38
43
|
Editmode provides helper methods for use in your rails views and controllers.
|
@@ -38,7 +38,8 @@ module Editmode
|
|
38
38
|
:collection_identifier => collection_identifier,
|
39
39
|
:branch_id => branch_id,
|
40
40
|
:limit => limit,
|
41
|
-
:tags => tags
|
41
|
+
:tags => tags,
|
42
|
+
:project_id => Editmode.project_id
|
42
43
|
}.to_query
|
43
44
|
|
44
45
|
url = URI(api_root_url)
|
@@ -65,13 +66,9 @@ module Editmode
|
|
65
66
|
content_tag :div, class: "chunks-collection-wrapper #{parent_class}", data: {chunk_collection_identifier: collection_identifier} do
|
66
67
|
chunks.each_with_index do |chunk, index|
|
67
68
|
@custom_field_chunk = chunk
|
68
|
-
|
69
|
+
concat(content_tag(:div, class: "chunks-collection-item--wrapper #{item_class}") do
|
69
70
|
yield(@custom_field_chunk, index)
|
70
|
-
|
71
|
-
concat(content_tag(:div, class: "chunks-collection-item--wrapper #{item_class}") do
|
72
|
-
yield(@custom_field_chunk, index)
|
73
|
-
end)
|
74
|
-
end
|
71
|
+
end)
|
75
72
|
end
|
76
73
|
|
77
74
|
# Placeholder element for new collection item
|
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.6.
|
4
|
+
version: 1.6.1
|
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-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -108,9 +108,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
108
108
|
version: '0'
|
109
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
|
-
- - "
|
111
|
+
- - ">="
|
112
112
|
- !ruby/object:Gem::Version
|
113
|
-
version:
|
113
|
+
version: '0'
|
114
114
|
requirements: []
|
115
115
|
rubygems_version: 3.0.3.1
|
116
116
|
signing_key:
|