Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

ConnectionUrlResolver

Build Status

Resolve connection URL into Hash.

Installation

Add this line to your application's Gemfile:

gem "connection_url_resolver"

And then execute:

$ bundle

Or install it yourself as:

$ gem install connection_url_resolver

Usage

url = "mysql2://user:password@localhost:3306/app_dev"
ConnectionUrlResolver.new(url).to_hash
# =>
{
  "adapter" => "mysql2",
  "username" => "user",
  "password" => "password",
  "port" => "3306",
  "database" => "app_dev",
  "host" => "localhost"
}

License, Contributor's Guidelines