effective_posts 2.2.1 → 2.2.3

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: deca7722283a5968f6e2335d46467a806c8a23bf23dca4db28b45f160b8b36eb
4
- data.tar.gz: 4b9a3c509055d9f59e2d6bbb87a577b2b5b0d4327fc8bef47389c2b5e0ee835e
3
+ metadata.gz: 22f25e9c6411e77aabaca99016870cb1f52be30ded693db0252c440601b9a0a8
4
+ data.tar.gz: 4872e97ecf13b36b7add0b6e198607076d74ace3381bae7a679fe40005ab9ac0
5
5
  SHA512:
6
- metadata.gz: 93964e6a3bc1ccc3832ca9a0e1f4976d6517c75c84430fecd7b115503b09d8891964cec2f2569abf400c3618e64f87839b58699455a6ff5eb0518d75bcb10b16
7
- data.tar.gz: 339ffe60e451f0aa3829716524127864e5e32debbce769c4bc85506bc6395c42e3faa861e84cba47c37ece8135cb6cad0d47d007b5af5cb18f82cb35ba1ec349
6
+ metadata.gz: b2a74c772362e1162a2b9e82dbab3e3bfad557c1d0d06f7ded3989c2c14234cd212420f80ade0ac28be30ccb62e3019051904679bb9934059f1bbf83109f3612
7
+ data.tar.gz: 32977019b7e22c73f8d4adb393bc7fca4654dca091fbac960dd3466171f28049b689b09b778e1074087c6324a6ae062dc07fbd96c9ebb97dea6cbbb0145a6e59
@@ -5,8 +5,7 @@ module Effective
5
5
 
6
6
  multisearchable against: [
7
7
  :title,
8
- :menu_title,
9
- :meta_description,
8
+ :description,
10
9
  :slug,
11
10
  ],
12
11
  associated_against: {
@@ -18,8 +17,7 @@ module Effective
18
17
  tsearch: {
19
18
  highlight: true,
20
19
  }
21
- },
22
- ranked_by: ":trigram" # Could rank by any column/expression, e.g.: (books.num_pages * :trigram) + (:tsearch / 2.0)
20
+ }
23
21
  end
24
22
 
25
23
  attr_accessor :current_user
@@ -124,6 +122,10 @@ module Effective
124
122
  category == 'events'
125
123
  end
126
124
 
125
+ def start_time
126
+ start_at
127
+ end
128
+
127
129
  # 3.333 words/second is the default reading speed.
128
130
  def time_to_read_in_seconds(reading_speed = 3.333)
129
131
  (regions.to_a.sum { |region| (region.content || '').scan(/\w+/).size } / reading_speed).seconds
@@ -1,3 +1,3 @@
1
1
  module EffectivePosts
2
- VERSION = '2.2.1'.freeze
2
+ VERSION = '2.2.3'.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.2.1
4
+ version: 2.2.3
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: 2023-06-07 00:00:00.000000000 Z
11
+ date: 2023-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  - !ruby/object:Gem::Version
148
148
  version: '0'
149
149
  requirements: []
150
- rubygems_version: 3.1.2
150
+ rubygems_version: 3.4.10
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: A blog implementation with WYSIWYG content editing, post scheduling, pagination