workhorse 0.3.7 → 0.3.8

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: 3d89b887e87a7aad1c081461bd76a98dbf8b0e6f6b0aa6e221936d4d2fe7d745
4
- data.tar.gz: 1786cfab5d08fd0c6d51158b2241db9766653e1410e391094b65587f17317fe5
3
+ metadata.gz: aa9dc25d7a2e9ec126e65a928ad34ebe2582223372524ca80b2b6ad92eb191e7
4
+ data.tar.gz: 85074d1dd6e73dd83028f98629bd5c83637cf08c230815c0b7cce390c30acf44
5
5
  SHA512:
6
- metadata.gz: d7563ef29ea4dde18f0b146f905296c0653710d04c0c539a7f50d3d86df48e8a2e82e97e478c46f884e812362d4332287630a44d901ff52e591232b5dceac266
7
- data.tar.gz: 7727e7339918c20ab48c719174c4c90484dc723052a141c7bb1dd717e51adda9e6ff2fa622ce2fc555b7725ba9f08eaf369fb0019db5c821c88a3691a46ee1ce
6
+ metadata.gz: 39b04d08e72d36e17261947dec59a19ca4c62be283856606e37a201a94b923007fd80b885dab1ef267d6a13feea9620cec6609761d15fdb19aeebc8b4bb206b7
7
+ data.tar.gz: 2f5e84a4272556eaaa94c4893b7552cd730f830b28644869b0360e74e6dbc30c8cacd8c113728d092190f91c58b9e8a9455a5513e7aff23518191ec5a1e2f7fa
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Workhorse Change log
2
2
 
3
+ ## Unreleased
4
+
5
+ ## 0.3.8 – 2018-12-19
6
+
7
+ * Fixed incompatibility in the combination of Oracle DB and Arel < 7.0.0
8
+
3
9
  ## 0.3.7 – 2018-12-17
4
10
 
5
11
  * Fixed Oracle DB compatibility issues for jobs in multiple queues
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.7
1
+ 0.3.8
@@ -140,7 +140,11 @@ module Workhorse
140
140
  # Oracle SQL. As MySQL is able to lock the records without this additional
141
141
  # complication, only do this when using the Oracle backend.
142
142
  if @is_oracle
143
- select = Arel::SelectManager.new(Arel.sql('(' + select.to_sql + ')'))
143
+ if AREL_GTE_7
144
+ select = Arel::SelectManager.new(Arel.sql('(' + select.to_sql + ')'))
145
+ else
146
+ select = Arel::SelectManager.new(ActiveRecord::Base, Arel.sql('(' + select.to_sql + ')'))
147
+ end
144
148
  select = table.project(Arel.star).where(table[:id].in(select.project(:id)))
145
149
  end
146
150
 
data/workhorse.gemspec CHANGED
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: workhorse 0.3.7 ruby lib
2
+ # stub: workhorse 0.3.8 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "workhorse".freeze
6
- s.version = "0.3.7"
6
+ s.version = "0.3.8"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["Sitrox".freeze]
11
- s.date = "2018-12-17"
11
+ s.date = "2018-12-19"
12
12
  s.files = [".gitignore".freeze, ".releaser_config".freeze, ".rubocop.yml".freeze, ".travis.yml".freeze, "CHANGELOG.md".freeze, "FAQ.md".freeze, "Gemfile".freeze, "LICENSE".freeze, "README.md".freeze, "RUBY_VERSION".freeze, "Rakefile".freeze, "VERSION".freeze, "bin/rubocop".freeze, "lib/generators/workhorse/install_generator.rb".freeze, "lib/generators/workhorse/templates/bin/workhorse.rb".freeze, "lib/generators/workhorse/templates/config/initializers/workhorse.rb".freeze, "lib/generators/workhorse/templates/create_table_jobs.rb".freeze, "lib/workhorse.rb".freeze, "lib/workhorse/daemon.rb".freeze, "lib/workhorse/daemon/shell_handler.rb".freeze, "lib/workhorse/db_job.rb".freeze, "lib/workhorse/enqueuer.rb".freeze, "lib/workhorse/jobs/cleanup_succeeded_jobs.rb".freeze, "lib/workhorse/jobs/run_rails_op.rb".freeze, "lib/workhorse/performer.rb".freeze, "lib/workhorse/poller.rb".freeze, "lib/workhorse/pool.rb".freeze, "lib/workhorse/worker.rb".freeze, "test/lib/db_schema.rb".freeze, "test/lib/jobs.rb".freeze, "test/lib/test_helper.rb".freeze, "test/workhorse/enqueuer_test.rb".freeze, "test/workhorse/performer_test.rb".freeze, "test/workhorse/poller_test.rb".freeze, "test/workhorse/pool_test.rb".freeze, "test/workhorse/worker_test.rb".freeze, "workhorse.gemspec".freeze]
13
13
  s.rubygems_version = "2.7.7".freeze
14
14
  s.summary = "Multi-threaded job backend with database queuing for ruby.".freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workhorse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sitrox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-17 00:00:00.000000000 Z
11
+ date: 2018-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler