workhorse 0.6.0 → 0.6.1

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: 31b8b6352a1a32590d8c3d817279a0a7d2cd4c594efe27806acdbea0d1d42062
4
- data.tar.gz: e68c163ad8f9dbf36ff2dbbd0e4696891b6daf0654b7c343b53f36d7404d8335
3
+ metadata.gz: 82fbe21d55cb2eff15d610ba08c9e2ff9f3daf084b3f1a09943bada4e6cf332f
4
+ data.tar.gz: e82faa89f783c2e29abd712aefd4aefecfd47f3f388180e4bbac5340c0665bb3
5
5
  SHA512:
6
- metadata.gz: 4472fe2d228c7c6fcac24263f1ea33473593971ebaa11bf051131ecf8a810bc162152e5f9cd30aed5c1d9d4b59224f57c0a5b75a4ecb922c3e8bc8303bf3ba48
7
- data.tar.gz: cc36d41fe33f5292ae3fbf99c32be84fc0ebd577a43d6e92b7b66009c315bbad4ca650fc0e9d41a37ebb03c3b5b2e82dbfbc9300b3fe889ec30929f7768015b6
6
+ metadata.gz: 94e8a65f147b320207d6269e915399284837445547b83e61ca8268eac2c42014d11300e53ffa38bbc59a27c0c7621130bec07f332a3f9bc710a95d1a337f9449
7
+ data.tar.gz: 6a7f08d7716d989b9624f2ecd868d2900826bbb3d1651a383d2ff12522b0d781633ba17ee5db89821f2d45ef29f6250d7a028704380864b6f85763e3f8aca86a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Workhorse Change log
2
2
 
3
- ## 0.6.0 - 2918-07-03
3
+ ## 0.6.1 - 2019-07-09
4
+
5
+ * Allow calling `Workhorse.setup` multiple times.
6
+
7
+ ## 0.6.0 - 2019-07-03
4
8
 
5
9
  * Adapt {Workhorse::Daemon} to support a specific block for each worker. This
6
10
  allows, for example, to run a scheduler like Rufus in a separate worker
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
data/lib/workhorse.rb CHANGED
@@ -12,8 +12,6 @@ module Workhorse
12
12
 
13
13
  extend Workhorse::Enqueuer
14
14
 
15
- @set_up = false
16
-
17
15
  # Returns the performer currently performing the active job. This can only be
18
16
  # called from within a job and the same thread.
19
17
  def self.performer
@@ -36,9 +34,7 @@ module Workhorse
36
34
  self.perform_jobs_in_tx = true
37
35
 
38
36
  def self.setup
39
- fail 'Workhorse is already set up.' if @set_up
40
37
  yield self
41
- @set_up = true
42
38
  end
43
39
  end
44
40
 
@@ -12,7 +12,7 @@ module Workhorse
12
12
  end
13
13
  end
14
14
 
15
- def initialize(pidfile: nil, quiet: false, &block)
15
+ def initialize(pidfile: nil, quiet: false, &_block)
16
16
  @pidfile = pidfile
17
17
  @quiet = quiet
18
18
  @workers = []
data/workhorse.gemspec CHANGED
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: workhorse 0.6.0 ruby lib
2
+ # stub: workhorse 0.6.1 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "workhorse".freeze
6
- s.version = "0.6.0"
6
+ s.version = "0.6.1"
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-03"
11
+ s.date = "2019-07-09"
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.0
4
+ version: 0.6.1
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-03 00:00:00.000000000 Z
11
+ date: 2019-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler