em-mongo 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/em-mongo/connection.rb +2 -6
- data/lib/em-mongo.rb +1 -1
- data/spec/spec_helper.rb +0 -5
- metadata +3 -3
data/lib/em-mongo/connection.rb
CHANGED
@@ -145,11 +145,7 @@ module EM::Mongo
|
|
145
145
|
#@buffer.put_int(size, -1)
|
146
146
|
@buffer.rewind
|
147
147
|
|
148
|
-
|
149
|
-
true
|
150
|
-
else
|
151
|
-
false
|
152
|
-
end
|
148
|
+
@buffer.size >= size-4
|
153
149
|
end
|
154
150
|
|
155
151
|
def receive_data(data)
|
@@ -201,7 +197,7 @@ module EM::Mongo
|
|
201
197
|
buf.put_array(@buffer.get(size-4), 4)
|
202
198
|
|
203
199
|
buf.rewind
|
204
|
-
BSON::
|
200
|
+
BSON::BSON_CODER.deserialize(buf)
|
205
201
|
end
|
206
202
|
|
207
203
|
@buffer.clear
|
data/lib/em-mongo.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 8
|
9
|
+
version: 0.2.8
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- bcg
|
@@ -86,7 +86,7 @@ rubyforge_project:
|
|
86
86
|
rubygems_version: 1.3.6
|
87
87
|
signing_key:
|
88
88
|
specification_version: 3
|
89
|
-
summary: EventMachine
|
89
|
+
summary: EventMachine driver for MongoDB.
|
90
90
|
test_files:
|
91
91
|
- spec/collection_spec.rb
|
92
92
|
- spec/connection_spec.rb
|