disc 0.0.19 → 0.0.20

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: ef1c9ba1d12dd36f6ebbdcd38d2da62f9d5390f4
4
- data.tar.gz: 893aa8601a0c096aa356696115c54187336989fb
3
+ metadata.gz: 48aa5f31e607e563af50d122896392c1babf2cbd
4
+ data.tar.gz: e60d82b7722bf4a0bddc4260c63cab5cf14bb049
5
5
  SHA512:
6
- metadata.gz: a4a3f2476df67bae5fefa2ffccf83e2a006f8dd4aa8f91c9defbe5d1dd3e48d5085c3974912134067bf97e0f8c6e44d9f001dfc5d7929acf86d33c38421882fc
7
- data.tar.gz: 41afd9edc3fd42ed2469c72095b102f1b463f7ac92a6a66648aa141a867b389c725ac2b6f19b1e9d508c325197531ef5379ceeeba0f6976dde16972d26377627
6
+ metadata.gz: 5684bf3de07faecbb0421c9dea4157576eb2dec7c56497c17596f546316489bccb9b15041800b7cc8184d86c16bcda07d629361bc5eb0ef3703a724079f60fdc
7
+ data.tar.gz: 4abb90e6bef5da3161320b625853b6d8cb1091c098c66c6d37ed66fdc4f1fa190949dfd4361e9b75e5cabf70be14991e1bbfe7dce2647d808412ab89ff1eaf5e
data/README.md CHANGED
@@ -79,7 +79,7 @@ class ComplexJob
79
79
  end
80
80
 
81
81
 
82
- ComplexJob.enqueue(['first argument', { second: 'argument' }]
82
+ ComplexJob.enqueue(['first argument', { second: 'argument' }])
83
83
  ```
84
84
 
85
85
  ## Settings
data/bin/disc CHANGED
@@ -7,10 +7,9 @@ Clap.run ARGV,
7
7
  "-r" => lambda { |file| require file }
8
8
 
9
9
  if defined?(Celluloid)
10
- concurrency = Integer(ENV.fetch('DISC_CONCURRENCY', '25'))
11
10
  $stdout.puts(
12
11
  "[Notice] Disc running in celluloid mode! Current DISC_CONCURRENCY is\
13
- #{ concurrency }."
12
+ #{ Integer(ENV.fetch('DISC_CONCURRENCY', '25')) }."
14
13
  )
15
14
 
16
15
  Disc::Worker.send(:include, Celluloid)
@@ -19,7 +18,7 @@ if defined?(Celluloid)
19
18
  # Deprecated as of Celluloid 0.17, but still supported via "backported mode"
20
19
  class Disc::WorkerGroup < Celluloid::SupervisionGroup
21
20
  pool Disc::Worker,
22
- size: concurrency,
21
+ size: Integer(ENV.fetch('DISC_CONCURRENCY', '25')),
23
22
  as: :worker_pool,
24
23
  args: [{ run: true }]
25
24
  end
@@ -27,7 +26,7 @@ if defined?(Celluloid)
27
26
  Disc::WorkerGroup.run
28
27
  else
29
28
  Disc::Worker.pool(
30
- size: concurrency,
29
+ size: Integer(ENV.fetch('DISC_CONCURRENCY', '25')),
31
30
  args: [{ run: true }]
32
31
  )
33
32
  end
@@ -35,3 +34,4 @@ else
35
34
  $stdout.puts("[Notice] Disc running in non-threaded mode")
36
35
  Disc::Worker.run
37
36
  end
37
+
@@ -1,5 +1,4 @@
1
1
  require 'date'
2
- require 'disc'
3
2
  require 'msgpack'
4
3
 
5
4
  module ActiveJob
data/lib/disc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Disc
2
- VERSION = "0.0.19"
2
+ VERSION = "0.0.20"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: disc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - pote
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-31 00:00:00.000000000 Z
11
+ date: 2015-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: disque