beaneater 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -1
- data/lib/beaneater/connection.rb +2 -1
- data/lib/beaneater/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG.md
CHANGED
data/lib/beaneater/connection.rb
CHANGED
@@ -41,6 +41,7 @@ module Beaneater
|
|
41
41
|
# @param [String] command Beanstalkd command
|
42
42
|
# @param [Hash{Symbol => String,Boolean}] options Settings for telnet
|
43
43
|
# @option options [Boolean] FailEOF raises EOF Exeception
|
44
|
+
# @option options [Integer] Timeout number of seconds before timeout
|
44
45
|
# @return [Array<Hash{String => String, Number}>] Beanstalkd command response
|
45
46
|
# @example
|
46
47
|
# @conn.transmit('bury 123')
|
@@ -48,7 +49,7 @@ module Beaneater
|
|
48
49
|
def transmit(command, options={}, &block)
|
49
50
|
@mutex.lock
|
50
51
|
if telnet_connection
|
51
|
-
options.merge!("String" => command, "FailEOF" => true)
|
52
|
+
options.merge!("String" => command, "FailEOF" => true, "Timeout" => false)
|
52
53
|
parse_response(command, telnet_connection.cmd(options, &block))
|
53
54
|
else # no telnet_connection
|
54
55
|
raise NotConnected, "Connection to beanstalk '#{@host}:#{@port}' is closed!" unless telnet_connection
|
data/lib/beaneater/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaneater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
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-11-
|
12
|
+
date: 2012-11-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|