zack 0.1.0 → 0.1.1

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.
Files changed (5) hide show
  1. data/History.txt +3 -0
  2. data/README +4 -0
  3. data/Rakefile +2 -2
  4. data/lib/zack/client.rb +5 -1
  5. metadata +4 -10
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ = 0.1.1 / 28-09-2010
2
+
3
+ * Properly deletes jobs.
1
4
 
2
5
  = 0.1.0 / 05-31-2010
3
6
 
data/README CHANGED
@@ -38,6 +38,10 @@ client.
38
38
  zack is a small library that doesn't do much more than what has been shown
39
39
  above.
40
40
 
41
+ DEPENDENCIES
42
+
43
+ Depends on beanstalkd (beanstalkd 1.4.4 or better).
44
+
41
45
  COMPATIBILITY
42
46
 
43
47
  Should run with most rubies of the 1.8 and 1.9 generations.
data/Rakefile CHANGED
@@ -17,10 +17,10 @@ spec = Gem::Specification.new do |s|
17
17
 
18
18
  # Change these as appropriate
19
19
  s.name = "zack"
20
- s.version = "0.1.0"
20
+ s.version = "0.1.1"
21
21
  s.summary = "Ruby RPC calls via beanstalkd"
22
22
  s.authors = ['Kaspar Schiess', 'Patrick Marchi']
23
- s.email = ["kaspar.schiess@absurd.li", 'patrick.marchi@geo.uzh.ch']
23
+ s.email = ["kaspar.schiess@absurd.li", 'mail@patrickmarchi.ch']
24
24
  s.homepage = "http://github.com/kschiess/zack"
25
25
 
26
26
  s.has_rdoc = true
data/lib/zack/client.rb CHANGED
@@ -33,7 +33,11 @@ class Zack::Client
33
33
  if @with_answer.include? sym
34
34
  @connection.watch @answer_queue_name
35
35
  answer = @connection.reserve
36
- return YAML.load(answer.body)
36
+ begin
37
+ return YAML.load(answer.body)
38
+ ensure
39
+ answer.delete
40
+ end
37
41
  end
38
42
 
39
43
  return nil
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zack
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 1
9
- - 0
10
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
11
10
  platform: ruby
12
11
  authors:
13
12
  - Kaspar Schiess
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2010-05-31 00:00:00 +02:00
18
+ date: 2010-09-28 00:00:00 +02:00
20
19
  default_executable:
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
@@ -27,7 +26,6 @@ dependencies:
27
26
  requirements:
28
27
  - - ~>
29
28
  - !ruby/object:Gem::Version
30
- hash: 19
31
29
  segments:
32
30
  - 1
33
31
  - 0
@@ -43,7 +41,6 @@ dependencies:
43
41
  requirements:
44
42
  - - ">="
45
43
  - !ruby/object:Gem::Version
46
- hash: 3
47
44
  segments:
48
45
  - 0
49
46
  version: "0"
@@ -57,7 +54,6 @@ dependencies:
57
54
  requirements:
58
55
  - - ">="
59
56
  - !ruby/object:Gem::Version
60
- hash: 3
61
57
  segments:
62
58
  - 0
63
59
  version: "0"
@@ -66,7 +62,7 @@ dependencies:
66
62
  description:
67
63
  email:
68
64
  - kaspar.schiess@absurd.li
69
- - patrick.marchi@geo.uzh.ch
65
+ - mail@patrickmarchi.ch
70
66
  executables: []
71
67
 
72
68
  extensions: []
@@ -96,7 +92,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
92
  requirements:
97
93
  - - ">="
98
94
  - !ruby/object:Gem::Version
99
- hash: 3
100
95
  segments:
101
96
  - 0
102
97
  version: "0"
@@ -105,7 +100,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
100
  requirements:
106
101
  - - ">="
107
102
  - !ruby/object:Gem::Version
108
- hash: 3
109
103
  segments:
110
104
  - 0
111
105
  version: "0"