disc 0.0.25 → 0.0.26

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: e1620d0f0752ee08feff06a19d5e83c23afbce91
4
- data.tar.gz: dbaa723df114c6dead5260ec688c0cb144d60946
3
+ metadata.gz: 68a355c65ac7b54ac4da0771e2b17af8b6b54899
4
+ data.tar.gz: 994f4f7fae76906db3590c54f8be1e5705e7f721
5
5
  SHA512:
6
- metadata.gz: da67f0364f6e4c0fab1289d94e0053f539c1d784981821e937315fc91f0e24893fdfdcadc37dbab15c1ac47f18695bde6f7eb17a21074af224e174f48490116a
7
- data.tar.gz: b27a52e29cfe6017d6adeac0b125cbe4f0c9c555b4d7057e8c67e4234774325186ebdca1f84eab6415050fa2776f9dc0277336f8718e305de32876133d3cd7a3
6
+ metadata.gz: 2c5a300f2a8d2c6d46901f4e3cf6a6ac2778abab5638dfa07caeeab807d3a701590c3d528e2557043ce15ac4e5d803088a36d81664ebed699fca433a2ae5c400
7
+ data.tar.gz: 8ca93a43cafb8cb9420b260ae83124d27a09a9b45e371fa1af94e66ba2c8e49f53c5ca64c4c6d28acf6a50ae27b71d0c4dfe14be47e10faec05c705021e2b86f
data/lib/disc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Disc
2
- VERSION = "0.0.25"
2
+ VERSION = "0.0.26"
3
3
  end
data/lib/disc.rb CHANGED
@@ -36,6 +36,10 @@ class Disc
36
36
  @default_queue = queue
37
37
  end
38
38
 
39
+ def self.flush
40
+ Disc.disque.call('DEBUG', 'FLUSHALL')
41
+ end
42
+
39
43
  def self.on_error(exception, job)
40
44
  $stderr.puts exception
41
45
  end
data/test/disc_test.rb CHANGED
@@ -32,7 +32,7 @@ require_relative '../examples/failer'
32
32
 
33
33
  prepare do
34
34
  Disc.disque_timeout = 1 # 1ms so we don't wait at all.
35
- Disc.disque.call('DEBUG', 'FLUSHALL')
35
+ Disc.flush
36
36
  end
37
37
 
38
38
  scope do
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.25
4
+ version: 0.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - pote