beaneater 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/beaneater/connection.rb +2 -2
- data/lib/beaneater/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a211158cb51e20a41be4ef98ca2b4dc18bfe4a8e
|
4
|
+
data.tar.gz: 2a566e5850566082b6439fd13b63a559ecaa7720
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8914a8f0f867f1be89e293b172b5d47ab16dedcffb2e60bcf5d852831e163817fa1d8ec2fc3a42b5964da96f2573704fe19808884f1765c354b9a2e5e2a057c
|
7
|
+
data.tar.gz: 74ea34bfd7adc36b94c3c0823407466a5d14597f1fe145fe26e8788427f3817c180e705fa10f0d5900a30b0ed2cd017c82f6b97969dd956e056bfe6bf549bd60
|
data/CHANGELOG.md
CHANGED
data/lib/beaneater/connection.rb
CHANGED
@@ -84,7 +84,7 @@ module Beaneater
|
|
84
84
|
# Establish a connection based on beanstalk address.
|
85
85
|
#
|
86
86
|
# @return [Net::TCPSocket] connection for specified address.
|
87
|
-
# @raise [
|
87
|
+
# @raise [Beaneater::NotConnected] Could not connect to specified beanstalkd instance.
|
88
88
|
# @example
|
89
89
|
# establish_connection('localhost:3005')
|
90
90
|
#
|
@@ -120,7 +120,7 @@ module Beaneater
|
|
120
120
|
raw_body = connection.read(bytes_size)
|
121
121
|
body = status == 'OK' ? YAML.load(raw_body) : config.job_parser.call(raw_body)
|
122
122
|
crlf = connection.read(2) # \r\n
|
123
|
-
raise
|
123
|
+
raise ExpectedCrlfError.new('EXPECTED_CRLF', cmd) if crlf != "\r\n"
|
124
124
|
end
|
125
125
|
id = body_values[1]
|
126
126
|
response = { :status => status, :body => body }
|
data/lib/beaneater/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaneater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nico Taing
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
147
|
rubyforge_project:
|
148
|
-
rubygems_version: 2.0.
|
148
|
+
rubygems_version: 2.0.6
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: Simple beanstalkd client for ruby.
|