mongo-proxy 1.0.0 → 1.0.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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/bin/mongo-proxy +1 -1
- data/lib/mongo-proxy/proxy.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 83472ea1432390b60be935cabe0c63386340f9d1
|
|
4
|
+
data.tar.gz: 89eee1258205ac09019c40de5bfd747306e69dea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d6e4bbf353fa7947a94a2816b4d0f1cd2b88018306f1d734e43aaaef48bccb9e02a9dd19118f10a1afcb2b616de0aabd953e000185c97baca1e5c0f628eccef
|
|
7
|
+
data.tar.gz: 56c3a0891698e92f7f635d088ad0c1b7186e9d1d5da1251bcdd3d82b2f47d8eadeef6d778556a000baed4dbf330b163b33d619e8f20160b6c90a169be60da5ec
|
data/README.md
CHANGED
|
@@ -28,7 +28,7 @@ This will proxy local client connections to port 29017 to a running MongoDB serv
|
|
|
28
28
|
```
|
|
29
29
|
> mongo --port 29017
|
|
30
30
|
MongoDB shell version: 2.6.0
|
|
31
|
-
connecting to: 127.0.0.1:
|
|
31
|
+
connecting to: 127.0.0.1:29017/test
|
|
32
32
|
Server has startup warnings:
|
|
33
33
|
Connected to proxy!
|
|
34
34
|
```
|
data/bin/mongo-proxy
CHANGED
|
@@ -27,7 +27,7 @@ END
|
|
|
27
27
|
opt :server_host, 'Set the backend hostname which we proxy.', :default => '127.0.0.1', :short => 'H'
|
|
28
28
|
opt :server_port, 'Set the backend port which we proxy.', :default => 27017, :short => 'P'
|
|
29
29
|
opt :read_only, 'Prevent any traffic that writes to the database.', :default => false
|
|
30
|
-
opt :motd, 'Set a message-of-the-day to display to clients when they connect.', :default => nil
|
|
30
|
+
opt :motd, 'Set a message-of-the-day to display to clients when they connect.', :default => nil, :type => String
|
|
31
31
|
opt :verbose, 'Print out MongoDB wire traffic.', :default => true
|
|
32
32
|
opt :debug, 'Print log lines in a more human-readible format.', :default => true
|
|
33
33
|
end
|
data/lib/mongo-proxy/proxy.rb
CHANGED
|
@@ -10,7 +10,7 @@ require 'timeout'
|
|
|
10
10
|
# parsing and filtering capabilities that allow you to enforce a read-only
|
|
11
11
|
# mode, or use your own arbitrary logic.
|
|
12
12
|
class MongoProxy
|
|
13
|
-
VERSION = '1.0.
|
|
13
|
+
VERSION = '1.0.1'
|
|
14
14
|
|
|
15
15
|
def initialize(config = nil)
|
|
16
16
|
# default config values
|