stomp 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/stomp.rb +7 -7
  2. metadata +4 -4
@@ -128,13 +128,13 @@ module Stomp
128
128
  private
129
129
  def transmit(command, headers={}, body='')
130
130
  @transmit_semaphore.synchronize do
131
- @socket.puts command
132
- headers.each {|k,v| @socket.puts "#{k}:#{v}" }
133
- @socket.puts "content-length: #{body.length}"
134
- @socket.puts "content-type: text/plain; charset=UTF-8"
135
- @socket.puts
136
- @socket.write body
137
- @socket.write "\0"
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.0
7
- date: 2005-10-23 00:00:00 -07:00
8
- summary: Ruby client xfor the Stomp messaging protocol
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: brian@skife.org
11
+ email: brianm@apache.org
12
12
  homepage: http://stomp.codehaus.org/
13
13
  rubyforge_project:
14
14
  description: