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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1750c9257c4d70baebe0d97b1a8549aaf86fd61c
4
- data.tar.gz: 027cb7272e67685d1f49eb5455723a093d40e690
3
+ metadata.gz: ba34033326ffcb1f7047751977fdca6cd5f2ae6d
4
+ data.tar.gz: 834c136c510ebad348c84925d8d63f985fd9b612
5
5
  SHA512:
6
- metadata.gz: 6f109722d6ecb509dca6f4ca8fa4da70f85d9c06c6bf85c7ae24aad7e155a580bb643db19b0ab5ce1f4b67369f30639d83c9a830fa8a7035b077e3639b19710e
7
- data.tar.gz: f2181de5a394b23acf108369d8c3b49b527714d3833010ff648168d61dfed49d5fc86d394f7fcfb93b2d36d1d666385c2eac31bf450ed0e7667d9b72bed0b7e4
6
+ metadata.gz: d6cb3e4861f65738fda7ef5a135cc7f48ff446fe35ed5dce3f6058044a3f8bb12e887e2ffdaf1a4985dc37777c1ab02fb38f0587ec831684593f64fc69ea0197
7
+ data.tar.gz: 75c958355fb7f96e1b7ad6af4aaf10ba740fce214dcdfefe37c638495cb951abe0eb9d60e715f1bbede8c375b8e83d78570303b0d2303e3c4ec401e60f4002f4
@@ -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', 'Deprecated') do |arg|
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
- !rails
16
+ !@rails
17
17
  end
18
18
 
19
19
  # Returns a human readable duration from the supplied [Float] number of seconds
@@ -1,3 +1,3 @@
1
1
  module RocketJob #:nodoc
2
- VERSION = '3.2.0'
2
+ VERSION = '3.2.1'
3
3
  end
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.0
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-05 00:00:00.000000000 Z
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.8
161
+ rubygems_version: 2.6.11
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Ruby's missing batch system.