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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68d6f7c94df9405c42f74fba7e4a46221cd25b66054b156d1fa60877d441b75e
4
- data.tar.gz: 4beb9b2a598b14f20f216e4618eaa383037fdcdb445393c0164b4c504338dad9
3
+ metadata.gz: 747172ede1bd476cba7fc584e38368332d6b6d762b201a1a654f93da03a42a5e
4
+ data.tar.gz: c3ec95126b30ea18c2c3f70ebbd13d4551185c548385f95c799f4733a43cf71b
5
5
  SHA512:
6
- metadata.gz: ed0f4a809b981a46a08298f9364ab0c78d09d33775ad116e013e4204abee6d3e6c153087c20c04d58dfae00c317f0573923c419ef6274dafb58de8ded364a71f
7
- data.tar.gz: 8413ac3dd1ce6e3387193c14139d17deb7b4a5d71af4426f22bab9d5048182ff360dc00127b25f9a127d08d8c3e8edc047e86087c84bff446d663abfa1399c78
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
@@ -1,3 +1,3 @@
1
1
  module EffectivePosts
2
- VERSION = '2.2.2'.freeze
2
+ VERSION = '2.2.4'.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.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-16 00:00:00.000000000 Z
11
+ date: 2023-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails