Resolve connection URL into Hash.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
spec
.gitignore
.rspec
.travis.yml
CHANGELOG.md
Gemfile
Gemfile.lock
LICENSE.txt
README.md
Rakefile
connection_url_resolver.gemspec

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