Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix formatting of README

  • Loading branch information...
commit 25cae2a709dc6cab5297ba6869f48a0942dfe6b5 1 parent d9553c9
@croaky authored
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
---------
Please sign in to comment.
Something went wrong with that request. Please try again.