brm_client 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/brm_client.gemspec +2 -2
- data/lib/brm_client/gateway/mongo.rb +3 -4
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/brm_client.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{brm_client}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Stephane Bellity"]
|
12
|
-
s.date = %q{2010-03-
|
12
|
+
s.date = %q{2010-03-16}
|
13
13
|
s.description = %q{BRM Event logging client library}
|
14
14
|
s.email = %q{sbellity@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -5,10 +5,9 @@ module BrmClient
|
|
5
5
|
class Mongo
|
6
6
|
attr_reader :connection, :collection
|
7
7
|
def initialize opts
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
})
|
8
|
+
host = opts[:host] || "localhost"
|
9
|
+
port = opts[:port] || ::Mongo::Connection::DEFAULT_PORT
|
10
|
+
@connection = ::Mongo::Connection.new(host, port)
|
12
11
|
@collection = @connection.db(opts[:db] || opts[:application]).collection(opts[:collection] || "logs")
|
13
12
|
end
|
14
13
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 5
|
9
|
+
version: 0.0.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Stephane Bellity
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-03-
|
17
|
+
date: 2010-03-16 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|