monga 0.0.1 → 0.0.2
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/README.md +2 -2
- data/lib/monga/connections/em_connection.rb +1 -1
- data/monga.gemspec +1 -1
- metadata +4 -4
data/README.md
CHANGED
|
@@ -14,9 +14,9 @@ Client supports MongoDB 2.4. Some features won't work in lower versions.
|
|
|
14
14
|
|
|
15
15
|
### Clients
|
|
16
16
|
* [x] Client (Single instance connection)
|
|
17
|
-
* [
|
|
17
|
+
* [x] ReplicaSetClient
|
|
18
18
|
* [ ] MasterSlaveClient
|
|
19
|
-
* [
|
|
19
|
+
* [x] ReadPref
|
|
20
20
|
* [ ] Sharding Support
|
|
21
21
|
|
|
22
22
|
### Connection
|
|
@@ -22,7 +22,7 @@ module Monga::Connections
|
|
|
22
22
|
if size > Monga::HEADER_SIZE
|
|
23
23
|
msg_length = @buffer[0, 4].unpack("L").first
|
|
24
24
|
if msg_length && size >= msg_length
|
|
25
|
-
data = @buffer.slice!(0,
|
|
25
|
+
data = @buffer.slice!(0, msg_length)
|
|
26
26
|
yield data.unpack("LLLLLQLLa*")
|
|
27
27
|
else
|
|
28
28
|
break
|
data/monga.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "monga"
|
|
7
|
-
spec.version = "0.0.
|
|
7
|
+
spec.version = "0.0.2"
|
|
8
8
|
spec.authors = ["Petr Yanovich"]
|
|
9
9
|
spec.email = ["fl00r@yandex.ru"]
|
|
10
10
|
spec.description = %q{MongoDB Ruby Evented Driver on EventMachine}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: monga
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-04-
|
|
12
|
+
date: 2013-04-03 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -150,7 +150,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
150
150
|
requirements:
|
|
151
151
|
- - ! '>='
|
|
152
152
|
- !ruby/object:Gem::Version
|
|
153
|
-
hash:
|
|
153
|
+
hash: 1080619375756789325
|
|
154
154
|
version: '0'
|
|
155
155
|
segments:
|
|
156
156
|
- 0
|
|
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
159
159
|
requirements:
|
|
160
160
|
- - ! '>='
|
|
161
161
|
- !ruby/object:Gem::Version
|
|
162
|
-
hash:
|
|
162
|
+
hash: 1080619375756789325
|
|
163
163
|
version: '0'
|
|
164
164
|
segments:
|
|
165
165
|
- 0
|