effective_posts 2.0.6 → 2.1.0

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: fe4ebf088f51c30d7916f66780669a0038e36688cf2d34eeb47d39e22510ab37
4
- data.tar.gz: 4cf76a5a5b4b4b8a130f0f9b0362aab9a38291c77325b5916b922681cb64eada
3
+ metadata.gz: 1ceb1f23b04e83df1d9e2f1392dc541e9f80631bd503b95fd787fd0a41608e06
4
+ data.tar.gz: 6171ca2f46ba3c5124b804fc06ddb6b27b405be2a2669fed7fc19fae095af9a5
5
5
  SHA512:
6
- metadata.gz: ff0a9d38b5575ef1dc4fa1fc8f3bd2e88c97b2a2f271751a51ec71aaacc405fbf91372e9c51ac998dd1b50ef83e644286769732de14451fe2c3f40445ba224c7
7
- data.tar.gz: b16e437400beb6184d1c109feb5c6ec0700508a85f7865eba1bdb2420084cd985e4e039ef19aa467b160681f8fc90e2c114ba3a4e3afa84812557f62a7c96333
6
+ metadata.gz: 1565992dbf8ab2e6b25ab0772bdcbc05193fb42591091cc40a05f847515e5d18416f14aa6c42afbb3afce19d4eb0fb7d9fe63514ca03c6ae0d4d22a3f4519a91
7
+ data.tar.gz: 9425f6f6c6ea39f60d89392dfbcf3e50d132e25da4b670d5e09851c88538eb89140e63b4d6741fb98143a8fbf21f458857f99fd6e0caac2b91b2f788949f23ed
@@ -7,7 +7,10 @@
7
7
  = f.text_field :slug, required: f.object.persisted?,
8
8
  hint: "The slug controls this post's internet address. Be careful, changing the slug will break links that other websites may have to the old address.<br>#{('This post is currently reachable via ' + link_to(current_url.gsub(f.object.slug, '<strong>' + f.object.slug + '</strong>').html_safe, current_url)) if current_url && f.object.slug.present? }".html_safe
9
9
 
10
- = f.rich_text_area :excerpt, hint: 'Will be used for the post excerpt on index pages.'
10
+ - if defined?(EffectiveArticleEditor)
11
+ = f.article_editor :excerpt, hint: 'Will be used for the post excerpt on index pages.'
12
+ - else
13
+ = f.rich_text_area :excerpt, hint: 'Will be used for the post excerpt on index pages.'
11
14
 
12
15
  = f.text_field :description, hint: 'The content of the post meta tags.', maxlength: 150
13
16
 
@@ -19,7 +22,10 @@
19
22
  - if EffectivePosts.use_active_storage
20
23
  = f.file_field :image, hint: 'An image for your post'
21
24
 
22
- = f.rich_text_area :body, hint: 'The main body of your post'
25
+ - if defined?(EffectiveArticleEditor)
26
+ = f.article_editor :body, hint: 'The main body of your post'
27
+ - else
28
+ = f.rich_text_area :body, hint: 'The main body of your post'
23
29
 
24
30
  = render partial: '/effective/posts/additional_fields', locals: { post: post, form: f, f: f }
25
31
 
@@ -13,7 +13,11 @@
13
13
  - if EffectivePosts.use_active_storage
14
14
  = f.file_field :image, hint: 'An image for your post'
15
15
 
16
- = f.rich_text_area :excerpt, hint: 'Will be used for the post excerpt on index pages.'
16
+ - if defined?(EffectiveArticleEditor)
17
+ = f.article_editor :excerpt, hint: 'Will be used for the post excerpt on index pages.'
18
+ - else
19
+ = f.rich_text_area :excerpt, hint: 'Will be used for the post excerpt on index pages.'
20
+
17
21
  = f.text_field :description, hint: 'The content of the post meta tags.', maxlength: 150
18
22
 
19
23
  = render partial: '/effective/posts/additional_fields', locals: { post: post, form: f, f: f }
@@ -22,6 +26,9 @@
22
26
 
23
27
  = f.check_box :draft, hint: 'Save this post as a draft. It will not be accessible on the website.'
24
28
 
25
- = f.rich_text_area :body, hint: 'The main body of your post'
29
+ - if defined?(EffectiveArticleEditor)
30
+ = f.article_editor :body, hint: 'The main body of your post'
31
+ - else
32
+ = f.rich_text_area :body, hint: 'The main body of your post'
26
33
 
27
34
  = f.submit 'Save'
@@ -1,3 +1,3 @@
1
1
  module EffectivePosts
2
- VERSION = '2.0.6'.freeze
2
+ VERSION = '2.1.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_posts
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.6
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-23 00:00:00.000000000 Z
11
+ date: 2022-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails