rocketjob 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rocket_job/cli.rb +2 -1
- data/lib/rocket_job/rocket_job.rb +3 -3
- data/lib/rocket_job/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba34033326ffcb1f7047751977fdca6cd5f2ae6d
|
4
|
+
data.tar.gz: 834c136c510ebad348c84925d8d63f985fd9b612
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6cb3e4861f65738fda7ef5a135cc7f48ff446fe35ed5dce3f6058044a3f8bb12e887e2ffdaf1a4985dc37777c1ab02fb38f0587ec831684593f64fc69ea0197
|
7
|
+
data.tar.gz: 75c958355fb7f96e1b7ad6af4aaf10ba740fce214dcdfefe37c638495cb951abe0eb9d60e715f1bbede8c375b8e83d78570303b0d2303e3c4ec401e60f4002f4
|
data/lib/rocket_job/cli.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'optparse'
|
2
2
|
require 'semantic_logger'
|
3
3
|
require 'mongoid'
|
4
|
+
require 'rocketjob'
|
4
5
|
module RocketJob
|
5
6
|
# Command Line Interface parser for RocketJob
|
6
7
|
class CLI
|
@@ -153,7 +154,7 @@ module RocketJob
|
|
153
154
|
o.on('-w', '--workers COUNT', 'Number of workers (threads) to start') do |arg|
|
154
155
|
@workers = arg.to_i
|
155
156
|
end
|
156
|
-
o.on('-t', '--threads COUNT', '
|
157
|
+
o.on('-t', '--threads COUNT', 'DEPRECATED') do |arg|
|
157
158
|
warn '-t and --threads are deprecated, use -w or --workers'
|
158
159
|
@workers = arg.to_i
|
159
160
|
end
|
@@ -1,19 +1,19 @@
|
|
1
1
|
module RocketJob
|
2
2
|
# Whether the current process is running inside a Rocket Job server process.
|
3
3
|
def self.server?
|
4
|
-
server
|
4
|
+
@server
|
5
5
|
end
|
6
6
|
|
7
7
|
# When running inside a Rocket Job server process, returns
|
8
8
|
# true when Rails has been initialized.
|
9
9
|
def self.rails?
|
10
|
-
rails
|
10
|
+
@rails
|
11
11
|
end
|
12
12
|
|
13
13
|
# When running inside a Rocket Job server process, returns
|
14
14
|
# true when running standalone.
|
15
15
|
def self.standalone?
|
16
|
-
|
16
|
+
!@rails
|
17
17
|
end
|
18
18
|
|
19
19
|
# Returns a human readable duration from the supplied [Float] number of seconds
|
data/lib/rocket_job/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rocketjob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Reid Morrison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
158
|
version: '0'
|
159
159
|
requirements: []
|
160
160
|
rubyforge_project:
|
161
|
-
rubygems_version: 2.6.
|
161
|
+
rubygems_version: 2.6.11
|
162
162
|
signing_key:
|
163
163
|
specification_version: 4
|
164
164
|
summary: Ruby's missing batch system.
|