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.
@@ -145,11 +145,7 @@ module EM::Mongo
145
145
  #@buffer.put_int(size, -1)
146
146
  @buffer.rewind
147
147
 
148
- if @buffer.size >= size-4
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::BSON_RUBY.deserialize(buf)
200
+ BSON::BSON_CODER.deserialize(buf)
205
201
  end
206
202
 
207
203
  @buffer.clear
data/lib/em-mongo.rb CHANGED
@@ -7,7 +7,7 @@ module EM::Mongo
7
7
  module Version
8
8
  MAJOR = 0
9
9
  MINOR = 2
10
- TINY = 7
10
+ TINY = 8
11
11
  STRING = [MAJOR, MINOR, TINY].join('.')
12
12
  end
13
13
 
data/spec/spec_helper.rb CHANGED
@@ -1,8 +1,3 @@
1
- require "rubygems"
2
- require "bundler"
3
-
4
- Bundler.setup(:test)
5
-
6
1
  require File.expand_path('../lib/em-mongo', File.dirname(__FILE__))
7
2
 
8
3
  require "em-spec/rspec"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 7
9
- version: 0.2.7
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 drive for MongoDB.
89
+ summary: EventMachine driver for MongoDB.
90
90
  test_files:
91
91
  - spec/collection_spec.rb
92
92
  - spec/connection_spec.rb