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 +4 -4
- data/Gemfile.lock +5 -5
- data/dronejob.gemspec +1 -1
- data/lib/dronejob.rb +1 -1
- data/lib/dronejob/server.rb +2 -4
- data/lib/dronejob/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f7f70f2d09b89c4be71b87d70129da3a6b487a2
|
4
|
+
data.tar.gz: bf8006786916fb2e7d1da88020056c39db0aee73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64bcac49cf2fd6fb7736d8c5fc365e381452f14b3f71a7e3ff3aad3c711d21298a41428207d32ec23f5b99700282db6ab2f7351e4f54defee6b29c29eb12f4a0
|
7
|
+
data.tar.gz: efe581d6554683fa82b466d17bdcf847201479ae8cdb9148a2891a17a2a07b957101838937fdf86aa6ed2f5c6d8633fffedb3d45c6b042a425e4b5c69eb32a1d
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dronejob (2.0.
|
4
|
+
dronejob (2.0.4)
|
5
5
|
actionpack (>= 4.0.2)
|
6
6
|
activejob (>= 4.0.2)
|
7
|
-
activejob-
|
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-
|
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.
|
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.
|
176
|
+
ruby-progressbar (1.10.1)
|
177
177
|
rubyzip (1.2.3)
|
178
178
|
signet (0.11.0)
|
179
179
|
addressable (~> 2.3)
|
data/dronejob.gemspec
CHANGED
@@ -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-
|
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"
|
data/lib/dronejob.rb
CHANGED
data/lib/dronejob/server.rb
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
module Dronejob
|
2
2
|
class Dronejob::Server
|
3
|
-
attr_reader :worker, :queue
|
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
|
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
|
data/lib/dronejob/version.rb
CHANGED
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.
|
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-
|
62
|
+
name: activejob-google-cloud-pubsub
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - ">="
|