dronejob 2.0.3 → 2.0.4

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
  SHA1:
3
- metadata.gz: a034d6d5da2d540f8022247605e4df6ea5845961
4
- data.tar.gz: 3d733689d10e4af70288d2bd69bfa0501e0c5bff
3
+ metadata.gz: 6f7f70f2d09b89c4be71b87d70129da3a6b487a2
4
+ data.tar.gz: bf8006786916fb2e7d1da88020056c39db0aee73
5
5
  SHA512:
6
- metadata.gz: a635793436b14370c86cf28fb79fbcd4787ed61a194bb728e98e9a607e780db3d1ecc14c87497d4f14fed3353dd6d7c6ed8ebda48ec6b1e3de6053f7e7c42552
7
- data.tar.gz: 4792c5bdb287e7946e90cdb76a5a2b4327bb8f3d55e6f42d618f0f6bcffd1d37c7fbd9019fe8f25df8abd6fc1533b530e12459c8aa9fc14033d9395483ac9117
6
+ metadata.gz: 64bcac49cf2fd6fb7736d8c5fc365e381452f14b3f71a7e3ff3aad3c711d21298a41428207d32ec23f5b99700282db6ab2f7351e4f54defee6b29c29eb12f4a0
7
+ data.tar.gz: efe581d6554683fa82b466d17bdcf847201479ae8cdb9148a2891a17a2a07b957101838937fdf86aa6ed2f5c6d8633fffedb3d45c6b042a425e4b5c69eb32a1d
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dronejob (2.0.3)
4
+ dronejob (2.0.4)
5
5
  actionpack (>= 4.0.2)
6
6
  activejob (>= 4.0.2)
7
- activejob-google_cloud_pubsub (>= 0.7)
7
+ activejob-google-cloud-pubsub (>= 0.7)
8
8
  bundler (>= 1.12.0, < 3.0.0)
9
9
  git (>= 1.3)
10
10
  google-cloud-logging (>= 1.2)
@@ -35,7 +35,7 @@ GEM
35
35
  activejob (5.2.3)
36
36
  activesupport (= 5.2.3)
37
37
  globalid (>= 0.3.6)
38
- activejob-google_cloud_pubsub (0.7.1)
38
+ activejob-google-cloud-pubsub (0.7.2)
39
39
  activejob
40
40
  activesupport
41
41
  concurrent-ruby
@@ -166,14 +166,14 @@ GEM
166
166
  diff-lcs (>= 1.2.0, < 2.0)
167
167
  rspec-support (~> 3.8.0)
168
168
  rspec-support (3.8.0)
169
- rubocop (0.69.0)
169
+ rubocop (0.70.0)
170
170
  jaro_winkler (~> 1.5.1)
171
171
  parallel (~> 1.10)
172
172
  parser (>= 2.6)
173
173
  rainbow (>= 2.2.2, < 4.0)
174
174
  ruby-progressbar (~> 1.7)
175
175
  unicode-display_width (>= 1.4.0, < 1.7)
176
- ruby-progressbar (1.10.0)
176
+ ruby-progressbar (1.10.1)
177
177
  rubyzip (1.2.3)
178
178
  signet (0.11.0)
179
179
  addressable (~> 2.3)
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.add_dependency "bundler", "< 3.0.0", ">= 1.12.0"
18
18
  s.add_runtime_dependency "actionpack", ">= 4.0.2"
19
19
  s.add_runtime_dependency "activejob", ">= 4.0.2"
20
- s.add_runtime_dependency "activejob-google_cloud_pubsub", ">= 0.7"
20
+ s.add_runtime_dependency "activejob-google-cloud-pubsub", ">= 0.7"
21
21
  s.add_runtime_dependency "git", ">= 1.3"
22
22
  s.add_runtime_dependency "google-cloud-logging", ">= 1.2"
23
23
  s.add_runtime_dependency "pusher", ">= 1.3"
@@ -1,4 +1,4 @@
1
- require 'activejob-google_cloud_pubsub'
1
+ require 'activejob_google_cloud_pubsub'
2
2
  require "google/cloud/logging"
3
3
  require "active_support"
4
4
  require 'active_support/rails'
@@ -1,15 +1,13 @@
1
1
  module Dronejob
2
2
  class Dronejob::Server
3
- attr_reader :worker, :queue, :min_threads, :max_threads
3
+ attr_reader :worker, :queue
4
4
 
5
5
  def initialize(options)
6
6
  @queue = options.dronejob_queue || "drone"
7
- @min_threads = options.min_threads || 1
8
- @max_threads = options.max_threads || 1
9
7
  end
10
8
 
11
9
  def start
12
- @worker = ActiveJob::GoogleCloudPubsub::Worker.new(queue: @queue, pubsub: Dronejob::Base.pubsub, min_threads: self.min_threads, max_threads: self.max_threads)
10
+ @worker = ActiveJob::GoogleCloudPubsub::Worker.new(queue: @queue, pubsub: Dronejob::Base.pubsub)
13
11
  Dronejob::Base.log("info", "Starting server for queue #{@queue} ...", nil)
14
12
  @worker.run
15
13
  end
@@ -1,3 +1,3 @@
1
1
  module Dronejob
2
- VERSION = "2.0.3"
2
+ VERSION = "2.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dronejob
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Strebitzer
@@ -59,7 +59,7 @@ dependencies:
59
59
  - !ruby/object:Gem::Version
60
60
  version: 4.0.2
61
61
  - !ruby/object:Gem::Dependency
62
- name: activejob-google_cloud_pubsub
62
+ name: activejob-google-cloud-pubsub
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - ">="