iron_mq 1.7.2 → 1.7.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 7
4
- :patch: 2
4
+ :patch: 3
5
5
  :build:
data/iron_mq.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "iron_mq"
8
- s.version = "1.7.2"
8
+ s.version = "1.7.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Travis Reeder"]
12
- s.date = "2012-06-09"
12
+ s.date = "2012-06-10"
13
13
  s.description = "Ruby client for IronMQ"
14
14
  s.email = "travis@iron.io"
15
15
  s.extra_rdoc_files = [
@@ -110,6 +110,12 @@ module IronMQ
110
110
  def delete
111
111
  @messages.delete(self.id, @options)
112
112
  end
113
+
114
+ def release(options={})
115
+ options2 = options || {}
116
+ options2 = options.merge(@options) if @options
117
+ @messages.release(self.id, options2)
118
+ end
113
119
  end
114
120
 
115
121
  end
data/test/test_iron_mq.rb CHANGED
@@ -224,6 +224,18 @@ class IronMQTests < TestBase
224
224
  p msg
225
225
  assert msg
226
226
 
227
+ msg.release(:delay => 5)
228
+ msg = @client.messages.get
229
+ p msg
230
+ assert msg.nil?
231
+
232
+ sleep 6
233
+
234
+ msg = @client.messages.get
235
+ p msg
236
+ assert msg
237
+
238
+
227
239
 
228
240
  end
229
241
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_mq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.7.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-09 00:00:00.000000000 Z
12
+ date: 2012-06-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: iron_core