Skip to content

Commit

Permalink
Allow '.' in pathname
Browse files Browse the repository at this point in the history
  • Loading branch information
joefiorini committed Jun 21, 2012
1 parent efd58a5 commit 27d51fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion lib/jobs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/jobs.coffee
@@ -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
Expand Down

0 comments on commit 27d51fd

Please sign in to comment.