Permalink
Browse files

Allow '.' in pathname

  • Loading branch information...
1 parent efd58a5 commit 27d51fd213fbdb5538c7122018c2fa7907989b50 @joefiorini joefiorini committed Jun 17, 2012
Showing with 9 additions and 2 deletions.
  1. +8 −1 lib/jobs.js
  2. +1 −1 src/jobs.coffee
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,6 +1,6 @@
mongo = require 'mongodb'
path = require 'path'
-db = new mongo.Db "concrete_#{path.basename process.cwd()}", new mongo.Server('localhost', mongo.Connection.DEFAULT_PORT, {auto_reconnect: true}), {}
+db = new mongo.Db "concrete_#{path.basename(process.cwd()).replace(/\./, "-")}", new mongo.Server('localhost', mongo.Connection.DEFAULT_PORT, {auto_reconnect: true}), {}
db.open (error) ->
if error
console.log 'There was an error creating a connection with the Mongo database. Please check that MongoDB is properly installed and running.'.red

0 comments on commit 27d51fd

Please sign in to comment.