worker_plugins 0.0.18 → 0.0.19

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: b66bf928a610373f9a0e72db06915b6d09f698945af69189aea8dbb8541ac297
4
- data.tar.gz: 448fb8ee1bf8e81f0359e73cd1fb57e8ba3b53d6f4ae18233dc052c213a9c1da
3
+ metadata.gz: 177c626b0024e66fb62986646f36d06e7688006cef5c5c9302d201cf193659e2
4
+ data.tar.gz: 1f1377cb5f97933bb24af87e2651cbd667186acdfd75301cdcf04489b748e4d8
5
5
  SHA512:
6
- metadata.gz: e882df20c77dc8ebc309918e6fd8e55410f0bfe622be0cd9bda3bb5acfb6fe618ff22f1dceaa1b88a9c29a25648201beb6d47b97f7a77811b39d47146be9908a
7
- data.tar.gz: 3d46e4abe531bab641f3a45c1bb0cdc6a0cd19485574477f29a45e13355a829b82f7c5ab2da607981135219b4c7615fd5035ce96fc06da1c9756ef1d20b3d29f
6
+ metadata.gz: 81a4c70c2f61bc971c8a3454d456fb33ebcdf75642cd4a59779bff782978b27d27d877ee2a3f7405afdfb2fc339796a8c74b128ec54c629436a5918c6c1c37be
7
+ data.tar.gz: 0a1b739dd8dfcb2a4b92b05e688b65089903f4a1253130f6a329149527280530e962aa561a07618ff147eb4289c1069ea84dd99051603035b826f5344858f4a1
@@ -1,12 +1,6 @@
1
1
  class WorkerPlugins::UserRelationshipPolymorphic
2
2
  def self.execute!
3
+ return true unless WorkerPlugins::Workplace.connection.table_exists?(WorkerPlugins::Workplace.table_name)
3
4
  WorkerPlugins::Workplace.columns_hash.key?("user_type")
4
- rescue StandardError => e
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/)
9
-
10
- raise e
11
5
  end
12
6
  end
@@ -1,3 +1,3 @@
1
1
  module WorkerPlugins
2
- VERSION = "0.0.18".freeze
2
+ VERSION = "0.0.19".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.18
4
+ version: 0.0.19
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-10-07 00:00:00.000000000 Z
11
+ date: 2026-10-09 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.