beanqueue 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/History.txt +5 -0
  2. data/lib/beanqueue.rb +2 -2
  3. metadata +6 -6
@@ -1,3 +1,8 @@
1
+ === 0.1.2 2011-10-24
2
+
3
+ * 1 minor enhancement:
4
+ * Symbol job names allowed
5
+
1
6
  === 0.1.1 2011-10-20
2
7
 
3
8
  * 1 minor enhancement:
@@ -1,7 +1,7 @@
1
1
  require 'beanstalk-client'
2
2
 
3
3
  module Beanqueue
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
 
6
6
  class << self
7
7
  def get_params(yaml_path)
@@ -19,7 +19,7 @@ module Beanqueue
19
19
 
20
20
  def push(name, args={}, opts={})
21
21
  args['__fork__'] = opts[:fork] if opts[:fork]
22
- @connection.use name
22
+ @connection.use name.to_s.gsub('_', '.')
23
23
  @connection.yput args, (opts[:priority] || 65536), [0, opts[:delay].to_i].max, (opts[:timeout] || 120)
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beanqueue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-20 00:00:00.000000000Z
12
+ date: 2011-10-24 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: beanstalk-client
16
- requirement: &7335920 !ruby/object:Gem::Requirement
16
+ requirement: &14000780 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *7335920
24
+ version_requirements: *14000780
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: hoe
27
- requirement: &7335360 !ruby/object:Gem::Requirement
27
+ requirement: &14000120 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '2.12'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *7335360
35
+ version_requirements: *14000120
36
36
  description: ! 'This is a beanstalk-based job-queueing-manager, replacement for gem
37
37
  ''stalker'' with additions:
38
38