stomp 1.0.0 → 1.0.1
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/lib/stomp.rb +7 -7
- metadata +4 -4
data/lib/stomp.rb
CHANGED
@@ -128,13 +128,13 @@ module Stomp
|
|
128
128
|
private
|
129
129
|
def transmit(command, headers={}, body='')
|
130
130
|
@transmit_semaphore.synchronize do
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
@socket.write
|
131
|
+
data = String.new
|
132
|
+
data << command << "\n"
|
133
|
+
headers.each {|k,v| data << "#{k}:#{v}\n" }
|
134
|
+
data << "content-length: #{body.length}\n"
|
135
|
+
data << "content-type: text/plain; charset=UTF-8\n\n"
|
136
|
+
data << body << "\0"
|
137
|
+
@socket.write data
|
138
138
|
end
|
139
139
|
end
|
140
140
|
end
|
metadata
CHANGED
@@ -3,12 +3,12 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: stomp
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
7
|
-
date: 2005-
|
8
|
-
summary: Ruby client
|
6
|
+
version: 1.0.1
|
7
|
+
date: 2005-12-17 00:00:00 -08:00
|
8
|
+
summary: Ruby client for the Stomp messaging protocol
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
|
-
email:
|
11
|
+
email: brianm@apache.org
|
12
12
|
homepage: http://stomp.codehaus.org/
|
13
13
|
rubyforge_project:
|
14
14
|
description:
|