effective_posts 2.2.2 → 2.2.4
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/app/models/effective/post.rb +5 -15
- data/lib/effective_posts/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 747172ede1bd476cba7fc584e38368332d6b6d762b201a1a654f93da03a42a5e
|
|
4
|
+
data.tar.gz: c3ec95126b30ea18c2c3f70ebbd13d4551185c548385f95c799f4733a43cf71b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 277cb171ce914d5000d489cb755ba767143529966c1044f86489ca8a790a4b24530162edec364c04c76a893566bc9384fe788a1ac64e7f84034a15100c2b8fc4
|
|
7
|
+
data.tar.gz: f442aca9a9727ca2a6bced567b3cd9b8770c10deb4da0838801d689e4712315956e35ad37c3cbc9d5bd029996cb145b97939200f2f534187fc909e06dab5779c
|
|
@@ -3,21 +3,7 @@ module Effective
|
|
|
3
3
|
if defined?(PgSearch)
|
|
4
4
|
include PgSearch::Model
|
|
5
5
|
|
|
6
|
-
multisearchable against: [
|
|
7
|
-
:title,
|
|
8
|
-
:description,
|
|
9
|
-
:slug,
|
|
10
|
-
],
|
|
11
|
-
associated_against: {
|
|
12
|
-
rich_text_body: [:body],
|
|
13
|
-
rich_text_excerpt: [:body],
|
|
14
|
-
},
|
|
15
|
-
using: {
|
|
16
|
-
trigram: {},
|
|
17
|
-
tsearch: {
|
|
18
|
-
highlight: true,
|
|
19
|
-
}
|
|
20
|
-
}
|
|
6
|
+
multisearchable against: [:body]
|
|
21
7
|
end
|
|
22
8
|
|
|
23
9
|
attr_accessor :current_user
|
|
@@ -122,6 +108,10 @@ module Effective
|
|
|
122
108
|
category == 'events'
|
|
123
109
|
end
|
|
124
110
|
|
|
111
|
+
def start_time
|
|
112
|
+
start_at
|
|
113
|
+
end
|
|
114
|
+
|
|
125
115
|
# 3.333 words/second is the default reading speed.
|
|
126
116
|
def time_to_read_in_seconds(reading_speed = 3.333)
|
|
127
117
|
(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.4
|
|
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-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|