workhorse 0.6.1 → 0.6.2

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: 82fbe21d55cb2eff15d610ba08c9e2ff9f3daf084b3f1a09943bada4e6cf332f
4
- data.tar.gz: e82faa89f783c2e29abd712aefd4aefecfd47f3f388180e4bbac5340c0665bb3
3
+ metadata.gz: 62aa9ae4e08d8733741608e7c48f26c6fa7c405b4149d3af7d54439cb320bedb
4
+ data.tar.gz: cc6190f4d61a16f015fab24b49a990329fe87262195a2fc6c5315a5b29a55bc7
5
5
  SHA512:
6
- metadata.gz: 94e8a65f147b320207d6269e915399284837445547b83e61ca8268eac2c42014d11300e53ffa38bbc59a27c0c7621130bec07f332a3f9bc710a95d1a337f9449
7
- data.tar.gz: 6a7f08d7716d989b9624f2ecd868d2900826bbb3d1651a383d2ff12522b0d781633ba17ee5db89821f2d45ef29f6250d7a028704380864b6f85763e3f8aca86a
6
+ metadata.gz: 23e107bdbab77c58cd6d3244f04446efa54753c7a86b356b210b520fcceb79330c45fa2424cc0fd79ad167ff953e99f9b001b0be33fa3b89fe1fa38e1fd40e7b
7
+ data.tar.gz: ac63d1313f2d5bad6ca3448e0b296947790355cc1f6c2a67d54eed3d19172195727a108ae90f91881b1377312fdc517229227173b4407d03b190ae350e13a0c1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Workhorse Change log
2
2
 
3
+ ## 0.6.2 - 2019-07-10
4
+
5
+ * Make compatible with older ruby versions.
6
+
3
7
  ## 0.6.1 - 2019-07-09
4
8
 
5
9
  * Allow calling `Workhorse.setup` multiple times.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
@@ -37,7 +37,7 @@ module Workhorse
37
37
  yield
38
38
  ensure
39
39
  active_threads.decrement
40
- @on_idle&.call
40
+ @on_idle.try(:call)
41
41
  end
42
42
  end
43
43
  end
@@ -9,7 +9,7 @@ module Workhorse
9
9
  def method_missing(symbol, *args, &block)
10
10
  if @methods.include?(symbol)
11
11
  @delegation_object.send(symbol, *args, &block)
12
- elsif @backup_binding&.respond_to?(symbol)
12
+ elsif @backup_binding.try(:respond_to?, symbol)
13
13
  @backup_binding.send(symbol, *args, &block)
14
14
  else
15
15
  super
data/workhorse.gemspec CHANGED
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: workhorse 0.6.1 ruby lib
2
+ # stub: workhorse 0.6.2 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "workhorse".freeze
6
- s.version = "0.6.1"
6
+ s.version = "0.6.2"
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 = "2019-07-09"
11
+ s.date = "2019-07-10"
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/active_job/queue_adapters/workhorse_adapter.rb".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_active_job.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/scoped_env.rb".freeze, "lib/workhorse/worker.rb".freeze, "test/active_job/queue_adapters/workhorse_adapter_test.rb".freeze, "test/lib/db_schema.rb".freeze, "test/lib/jobs.rb".freeze, "test/lib/test_helper.rb".freeze, "test/workhorse/db_job_test.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 = "3.0.3".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.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sitrox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-09 00:00:00.000000000 Z
11
+ date: 2019-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler