worker_plugins 0.0.17 → 0.0.18

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: 0724aebdce87819ebafc787c475284e25e7a6ee31837040e8532b0c400c95db3
4
- data.tar.gz: dc8cd4edddcdce80d22c2e3c10990f4fa966f112fe67f01c1bd58443c313079b
3
+ metadata.gz: b66bf928a610373f9a0e72db06915b6d09f698945af69189aea8dbb8541ac297
4
+ data.tar.gz: 448fb8ee1bf8e81f0359e73cd1fb57e8ba3b53d6f4ae18233dc052c213a9c1da
5
5
  SHA512:
6
- metadata.gz: f58a6c6a65122966a57b948f78758761825e2eed97bb13fb4277b627ec4db11bade6856b2baf23e1f1056fb7169d545bfeaf6d565bbbddbb027bfb61c9d16f26
7
- data.tar.gz: a4fb5385013ab116c856bd5b5986ce04bcccbfb18b342edb41f463d652e664ecdd0b01567e75cf321f0299d64d8adfff5b37c9d2ef2ed75f81da31286975884a
6
+ metadata.gz: e882df20c77dc8ebc309918e6fd8e55410f0bfe622be0cd9bda3bb5acfb6fe618ff22f1dceaa1b88a9c29a25648201beb6d47b97f7a77811b39d47146be9908a
7
+ data.tar.gz: 3d46e4abe531bab641f3a45c1bb0cdc6a0cd19485574477f29a45e13355a829b82f7c5ab2da607981135219b4c7615fd5035ce96fc06da1c9756ef1d20b3d29f
@@ -2,8 +2,10 @@ class WorkerPlugins::UserRelationshipPolymorphic
2
2
  def self.execute!
3
3
  WorkerPlugins::Workplace.columns_hash.key?("user_type")
4
4
  rescue StandardError => e
5
- # Fall back to true if we are in the middle of a migration or something
6
- return true if e.message.start_with?("Could not find table") || e.message.match(/Table '(.+)' doesn't exist/)
5
+ # Fall back to true if the table doesn't exist yet (MySQL, SQLite, PostgreSQL)
6
+ return true if e.message.start_with?("Could not find table") ||
7
+ e.message.match?(/Table '(.+)' doesn't exist/) ||
8
+ e.message.match?(/relation .* does not exist/)
7
9
 
8
10
  raise e
9
11
  end
@@ -1,4 +1,4 @@
1
- module WorkerPlugins; end
1
+ require "worker_plugins/namespace"
2
2
 
3
3
  class WorkerPlugins::Engine < Rails::Engine
4
4
  isolate_namespace WorkerPlugins
@@ -0,0 +1,2 @@
1
+ module WorkerPlugins
2
+ end
@@ -1,3 +1,3 @@
1
1
  module WorkerPlugins
2
- VERSION = "0.0.17".freeze
2
+ VERSION = "0.0.18".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: worker_plugins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kasper Stöckel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-25 00:00:00.000000000 Z
11
+ date: 2026-10-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rails framework for easily choosing and creating lists of objects and
14
14
  execute plugins against them.
@@ -49,6 +49,7 @@ files:
49
49
  - lib/tasks/worker_plugins_tasks.rake
50
50
  - lib/worker_plugins.rb
51
51
  - lib/worker_plugins/engine.rb
52
+ - lib/worker_plugins/namespace.rb
52
53
  - lib/worker_plugins/version.rb
53
54
  homepage: https://www.github.com/kaspernj/worker_plugins
54
55
  licenses: []