plok 0.2.9 → 0.2.12

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: 75df059f748c988f11b00cab9ebc496052a5da7c129dfeb84034cc08b4742abc
4
- data.tar.gz: cb9fdcb200ea259378af6600ce6f906e1f89b19c41fb5185067c3f2643ba54a9
3
+ metadata.gz: 4dd177c85c560cc54c99970b9f7bba447ac49b407edd4f92c3bf19eba003a4d6
4
+ data.tar.gz: 1567126c937dc4cdaa090c3617a091f63980da34d09452250d7d76518c48d80d
5
5
  SHA512:
6
- metadata.gz: d9f558ae1cce6166ac50f3c229b25a874110e736ee93465708f776f83a2d23bc85c92ddb139b46cf5681f64bcdf4b221fbbc4847e0b9b5fdb77af869a27e3555
7
- data.tar.gz: b3512d28ccdc1d53c90959376fa603efac9a6f297b99405fd4d0c330fedd0b97b095f3b36b4d77c28dbc07b118661a145bfd69b082c305d91704edef02cfe9dd
6
+ metadata.gz: 8d6f225251275ffe58c79f2b812647de21fd5b7522da704901bb23b30906f5137d7a4c5160ab4ef97be1ce4669c1b3258f9366279746171599ae17148d732f0d
7
+ data.tar.gz: e0043cc3f281b3e658b653823b0e338c78221b7f4797d8e51e3485206de84bdd02ed6b002b0e490f5609bc8e2322369ca5cdfbfcc30922ea990722a484d44cca
@@ -38,10 +38,10 @@ class QueuedTask < ActiveRecord::Base
38
38
  klass: klass.to_s,
39
39
  weight: weight,
40
40
  attempts: 0,
41
- data: data.except(:perform_at)
41
+ data: data&.except(:perform_at)
42
42
  )
43
43
 
44
- task.update(perform_at: data[:perform_at]) if data[:perform_at].present?
44
+ task.update(perform_at: data[:perform_at]) if data&.dig(:perform_at).present?
45
45
  task
46
46
  end
47
47
 
data/config/plok.yml ADDED
@@ -0,0 +1,9 @@
1
+ development:
2
+ modules:
3
+ - flexible_content
4
+ - snippets
5
+ - settings
6
+ - queued_tasks
7
+ - email_templates
8
+ - pages
9
+ - redirects
@@ -0,0 +1,7 @@
1
+ class AddLogIndexesToCategoryTypeAndId < ActiveRecord::Migration[6.1]
2
+ def change
3
+ add_index :logs, :category unless index_exists?(:logs, :category)
4
+ add_index :logs, :loggable_type unless index_exists?(:logs, :loggable_type)
5
+ add_index :logs, :loggable_id unless index_exists?(:logs, :loggable_id)
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ class AddIndexToQueuedTaskWeight < ActiveRecord::Migration[6.1]
2
+ def change
3
+ return if index_exists?(:queued_tasks, :weight)
4
+
5
+ add_index :queued_tasks, :weight
6
+ end
7
+ end
data/lib/plok/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Plok
2
- VERSION = '0.2.9'
2
+ VERSION = '0.2.12'
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plok
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Davy Hellemans
8
8
  - Dave Lens
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-12-03 00:00:00.000000000 Z
12
+ date: 2022-05-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -83,6 +83,7 @@ files:
83
83
  - app/models/concerns/plok/loggable.rb
84
84
  - app/models/log.rb
85
85
  - app/models/queued_task.rb
86
+ - config/plok.yml
86
87
  - config/routes.rb
87
88
  - db/migrate/20211008130809_create_plok_logs.rb
88
89
  - db/migrate/20211015141837_create_plok_queued_tasks.rb
@@ -90,6 +91,8 @@ files:
90
91
  - db/migrate/20211119103846_add_attempts_to_queued_tasks.rb
91
92
  - db/migrate/20211119123900_add_index_to_queued_tasks_locked.rb
92
93
  - db/migrate/20211203103118_add_file_to_logs.rb
94
+ - db/migrate/20220512141814_add_log_indexes_to_category_type_and_id.rb
95
+ - db/migrate/20220512142356_add_index_to_queued_task_weight.rb
93
96
  - lib/plok.rb
94
97
  - lib/plok/engine.rb
95
98
  - lib/plok/version.rb
@@ -102,7 +105,7 @@ licenses:
102
105
  - MIT
103
106
  metadata:
104
107
  allowed_push_host: https://rubygems.org
105
- post_install_message:
108
+ post_install_message:
106
109
  rdoc_options: []
107
110
  require_paths:
108
111
  - lib
@@ -117,8 +120,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
120
  - !ruby/object:Gem::Version
118
121
  version: '0'
119
122
  requirements: []
120
- rubygems_version: 3.1.4
121
- signing_key:
123
+ rubygems_version: 3.2.28
124
+ signing_key:
122
125
  specification_version: 4
123
126
  summary: CMS basics
124
127
  test_files: []