Permalink
Browse files

Fix formatting of README

  • Loading branch information...
1 parent d9553c9 commit 25cae2a709dc6cab5297ba6869f48a0942dfe6b5 @croaky committed Apr 19, 2013
Showing with 13 additions and 13 deletions.
  1. +13 −13 README.md
View
26 README.md
@@ -9,7 +9,7 @@ Usage
Gemfile:
gem 'sinatra'
- gem 'sinatra-mongoid', :require_as => 'sinatra/mongoid'
+ gem 'sinatra-mongoid', require_as: 'sinatra/mongoid'
Bundle:
@@ -35,24 +35,24 @@ All Sinatra options you can set are:
Their default values are:
- ENV['MONGOID_HOST'] || 'localhost'
- ENV['MONGOID_DATABASE'] || 'changme'
- ENV['MONGOID_PORT'] || Mongo::Connection::DEFAULT_PORT
+ ENV['MONGOID_HOST'] || 'localhost'
+ ENV['MONGOID_DATABASE'] || 'changme'
+ ENV['MONGOID_PORT'] || Mongo::Connection::DEFAULT_PORT
ENV['MONGOID_USERNAME']
ENV['MONGOID_PASSWORD']
Heroku & MongoHQ:
- require 'uri'
+ require 'uri'
- if ENV['MONGOHQ_URL']
- mongo_uri = URI.parse(ENV['MONGOHQ_URL'])
- ENV['MONGOID_HOST'] = mongo_uri.host
- ENV['MONGOID_PORT'] = mongo_uri.port.to_s
- ENV['MONGOID_USERNAME'] = mongo_uri.user
- ENV['MONGOID_PASSWORD'] = mongo_uri.password
- ENV['MONGOID_DATABASE'] = mongo_uri.path.gsub("/", "")
- end
+ if ENV['MONGOHQ_URL']
+ mongo_uri = URI.parse(ENV['MONGOHQ_URL'])
+ ENV['MONGOID_HOST'] = mongo_uri.host
+ ENV['MONGOID_PORT'] = mongo_uri.port.to_s
+ ENV['MONGOID_USERNAME'] = mongo_uri.user
+ ENV['MONGOID_PASSWORD'] = mongo_uri.password
+ ENV['MONGOID_DATABASE'] = mongo_uri.path.gsub('/', '')
+ end
Resources
---------

0 comments on commit 25cae2a

Please sign in to comment.