disc 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98230b94d3119aa8d3b6173dd2df9758961e88eb
4
- data.tar.gz: 3ad4fe6b39858293874a1891fad05c21016cd996
3
+ metadata.gz: 53fa243a900cc1cd82d6b40b35eb9b358135e418
4
+ data.tar.gz: 52e5b596f04a49bfe87661949138aeef04decb50
5
5
  SHA512:
6
- metadata.gz: 24c241f496c3bef60e8229bd0b138500e6192d6f7ce9b5d23b4f27500bbf3bcec654d1099e2cf170d4f79c1ff8faaaa3c40dc1c081047f7a6fe4324aadb8adf8
7
- data.tar.gz: 5349b3bb90a78c4170456344fecc5775024b9668d3bf3410f8e8a797d85643a4a499c9073d10bd8f3d92bd2011f34ee0048ae84e8c0f1c443cc3a63b1977d066
6
+ metadata.gz: 5cdb8709ae4946fcd0c90fbe28bed5d16f43073f876ccf6551415360f87df3cccfacd0f07244679dcb3114efb9c98ebd0a44347bc04606c746ad82d3f2dd237d
7
+ data.tar.gz: f790b52f3421cdb5ebad50577ec1c8646d0c65867acfd46a27e79375e0ec8d1f6bc290a0f8c29e6fea3d16246db99ebc4aaa8d559527ebadb1cac1e1c5181a98
data/bin/disc CHANGED
@@ -7,7 +7,7 @@ Clap.run ARGV,
7
7
  "-r" => lambda { |file| require file }
8
8
 
9
9
  if defined?(Celluloid)
10
- concurrency = ENV.fetch('DISC_CONCURRENCY', '25').to_i
10
+ concurrency = Integer(ENV.fetch('DISC_CONCURRENCY', '25'))
11
11
  $stdout.puts(
12
12
  "[Notice] Disc running in celluloid mode! Current DISC_CONCURRENCY is\
13
13
  #{ concurrency }."
@@ -19,7 +19,7 @@ if defined?(Celluloid)
19
19
  # Deprecated as of Celluloid 0.17, but still supported via "backported mode"
20
20
  class Disc::WorkerGroup < Celluloid::SupervisionGroup
21
21
  pool Disc::Worker,
22
- size: ENV.fetch('DISC_CONCURRENCY', '25').to_i,
22
+ size: concurrency,
23
23
  as: :worker_pool,
24
24
  args: [{ run: true }]
25
25
  end
data/examples/greeter.rb CHANGED
@@ -6,5 +6,6 @@ class Greeter
6
6
 
7
7
  def perform(string)
8
8
  `say #{string}`
9
+ $stdout.puts(string)
9
10
  end
10
11
  end
data/lib/disc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Disc
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: disc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - pote