iron_mq 1.7.2 → 1.7.3
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.
- data/VERSION.yml +1 -1
- data/iron_mq.gemspec +2 -2
- data/lib/iron_mq/messages.rb +6 -0
- data/test/test_iron_mq.rb +12 -0
- metadata +2 -2
data/VERSION.yml
CHANGED
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.
|
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-
|
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 = [
|
data/lib/iron_mq/messages.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2012-06-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: iron_core
|