Skip to content

Port of the sabre-uri library to ruby

License

BSD-3-Clause, BSD-3-Clause licenses found

Licenses found

BSD-3-Clause
LICENSE
BSD-3-Clause
LICENSE.sabre
Notifications You must be signed in to change notification settings

tilia/tilia-uri

tilia/uri

Build Status

tilia/uri is a port of sabre/uri

sabre/uri is a lightweight library that provides several functions for working with URIs, staying true to the rules of RFC3986.

Partially inspired by Node.js URL library, and created to solve real problems in PHP applications. 100% unitested and many tests are based on examples from RFC3986.

The library provides the following functions:

  1. resolve to resolve relative urls.
  2. normalize to aid in comparing urls.
  3. parse, which works like PHP's parse_url
  4. build to do the exact opposite of parse.
  5. split to easily get the 'dirname' and 'basename' of a URL without all the problems those two functions have.

Installation

Simply add tilia-uri to your Gemfile and bundle it up:

  gem 'tilia-uri', '~> 1.0'

Contributing

See Contributing

License

tilia-uri is licensed under the terms of the three-clause BSD-license.

About

Port of the sabre-uri library to ruby

Resources

License

BSD-3-Clause, BSD-3-Clause licenses found

Licenses found

BSD-3-Clause
LICENSE
BSD-3-Clause
LICENSE.sabre

Stars

Watchers

Forks

Packages

No packages published

Languages