editmode 1.6.0.pre.1 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7025b651a7a15300b25ee1f151a510ccc12ed7f934240b4103b6ec6980b23a85
4
- data.tar.gz: cb4c278ac603a883e7c7a6a8abb84362cda6c374d3dae2ef5ba6d21763468560
3
+ metadata.gz: 3562a1b7e78951687db2ceb19bdb9ff6553f744e982f4e4b59306aca5dc67a98
4
+ data.tar.gz: 89994562d87db5aace1b901e19a4b73cbffa31121ee19370ba26d9c98a86cec3
5
5
  SHA512:
6
- metadata.gz: afbb6a9a44136b626e60207ebeab2e54a32249587cf26d7d104aeee78c60a84e5e4386d4e951719d2959b95cb38339dddf608ab5479fbb09b4e3e21820d34d0c
7
- data.tar.gz: 19bafb08bd133a91a2eff430a9c49ea265737ec819d17f5e1d3ebe9e3a76021c6b32145ce514ed13e976b76531192795299bda4ef1772de0af94d5eb490b5fe0
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
- if options[:without_item_wrapper].present?
69
+ concat(content_tag(:div, class: "chunks-collection-item--wrapper #{item_class}") do
69
70
  yield(@custom_field_chunk, index)
70
- else
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
@@ -1,3 +1,3 @@
1
1
  module Editmode
2
- VERSION = "1.6.0.pre.1"
2
+ VERSION = "1.6.1"
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.6.0.pre.1
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-05-04 00:00:00.000000000 Z
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: 1.3.1
113
+ version: '0'
114
114
  requirements: []
115
115
  rubygems_version: 3.0.3.1
116
116
  signing_key: