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 CHANGED
@@ -1,6 +1,10 @@
1
1
  # CHANGELOG for Beaneater
2
2
 
3
- ## 0.1.2 (Unreleased)
3
+ ## 0.1.3 (Unreleased)
4
+
5
+ ## 0.1.2 (Nov 7 2012)
6
+
7
+ * Add timeout: false to transmit to allow longer reserve
4
8
 
5
9
  ## 0.1.1 (Nov 4 2012)
6
10
 
@@ -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
@@ -1,4 +1,4 @@
1
1
  module Beaneater
2
2
  # Current version of gem.
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
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.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-04 00:00:00.000000000 Z
12
+ date: 2012-11-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest