zmalltalker-stomp 1.0.6 → 1.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/connection.rb +9 -3
- metadata +4 -4
data/lib/stomp/connection.rb
CHANGED
|
@@ -201,12 +201,18 @@ module Stomp
|
|
|
201
201
|
|
|
202
202
|
if (m.headers['content-length'])
|
|
203
203
|
m.body = s.read m.headers['content-length'].to_i
|
|
204
|
-
c = s.getc
|
|
204
|
+
c = RUBY_VERSION > '1.9' ? s.getc.ord : s.getc
|
|
205
205
|
raise "Invalid content length received" unless c == 0
|
|
206
206
|
else
|
|
207
207
|
m.body = ''
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
if RUBY_VERSION > '1.9'
|
|
209
|
+
until (c = s.getc.ord) == 0
|
|
210
|
+
m.body << c.chr
|
|
211
|
+
end
|
|
212
|
+
else
|
|
213
|
+
until (c = s.getc) == 0
|
|
214
|
+
m.body << c.chr
|
|
215
|
+
end
|
|
210
216
|
end
|
|
211
217
|
end
|
|
212
218
|
#c = s.getc
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zmalltalker-stomp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: "1.1"
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brian McCallister
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2009-02-
|
|
13
|
+
date: 2009-02-13 00:00:00 -08:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies: []
|
|
16
16
|
|
|
@@ -56,9 +56,9 @@ require_paths:
|
|
|
56
56
|
- lib
|
|
57
57
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- -
|
|
59
|
+
- - ">="
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version:
|
|
61
|
+
version: "0"
|
|
62
62
|
version:
|
|
63
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|