jschat 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/jschat/storage/mongo.rb +1 -1
  2. metadata +2 -2
@@ -8,7 +8,7 @@ module JsChat::Storage
8
8
  def self.connect!
9
9
  @db = Mongo::Connection.new(ServerConfig['db_host'], ServerConfig['db_port']).db(ServerConfig['db_name'])
10
10
  if ServerConfig['db_username'] and ServerConfig['db_password']
11
- unless @db.authenticate(ServerConfig['db_username'], ServerConfig['db_password'])
11
+ unless @db.add_auth(ServerConfig['db_name'], ServerConfig['db_username'], ServerConfig['db_password'])
12
12
  raise 'Bad Mongo username or password'
13
13
  end
14
14
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Alex R. Young