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 +4 -4
- data/app/models/effective/post.rb +6 -4
- data/lib/effective_posts/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22f25e9c6411e77aabaca99016870cb1f52be30ded693db0252c440601b9a0a8
|
4
|
+
data.tar.gz: 4872e97ecf13b36b7add0b6e198607076d74ace3381bae7a679fe40005ab9ac0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
:
|
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
|
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.
|
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-
|
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.
|
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
|