{"id":13411648,"url":"https://github.com/sporkmonger/addressable","last_synced_at":"2025-05-14T07:07:52.084Z","repository":{"id":404084,"uuid":"22601","full_name":"sporkmonger/addressable","owner":"sporkmonger","description":"Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. It is flexible, offers heuristic parsing, and additionally provides extensive support for IRIs and URI templates.","archived":false,"fork":false,"pushed_at":"2025-02-16T18:11:45.000Z","size":1968,"stargazers_count":1570,"open_issues_count":43,"forks_count":270,"subscribers_count":32,"default_branch":"main","last_synced_at":"2025-04-17T11:30:41.159Z","etag":null,"topics":["uri","uri-template"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sporkmonger.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2008-06-05T19:00:11.000Z","updated_at":"2025-04-17T03:36:55.000Z","dependencies_parsed_at":"2023-01-13T10:15:24.634Z","dependency_job_id":"e61c6602-9b97-4b5a-9107-164816481eb5","html_url":"https://github.com/sporkmonger/addressable","commit_stats":{"total_commits":792,"total_committers":113,"mean_commits":7.008849557522124,"dds":"0.49242424242424243","last_synced_commit":"4229164843616783287ca359bbe38b574f1908a3"},"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sporkmonger%2Faddressable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sporkmonger%2Faddressable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sporkmonger%2Faddressable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sporkmonger%2Faddressable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sporkmonger","download_url":"https://codeload.github.com/sporkmonger/addressable/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249565251,"owners_count":21292427,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["uri","uri-template"],"created_at":"2024-07-30T20:01:15.372Z","updated_at":"2025-04-23T20:53:39.783Z","avatar_url":"https://github.com/sporkmonger.png","language":"Ruby","readme":"# Addressable\n\n\u003cdl\u003e\n  \u003cdt\u003eHomepage\u003c/dt\u003e\u003cdd\u003e\u003ca href=\"https://github.com/sporkmonger/addressable\"\u003egithub.com/sporkmonger/addressable\u003c/a\u003e\u003c/dd\u003e\n  \u003cdt\u003eAuthor\u003c/dt\u003e\u003cdd\u003e\u003ca href=\"mailto:bob@sporkmonger.com\"\u003eBob Aman\u003c/a\u003e\u003c/dd\u003e\n  \u003cdt\u003eCopyright\u003c/dt\u003e\u003cdd\u003eCopyright © Bob Aman\u003c/dd\u003e\n  \u003cdt\u003eLicense\u003c/dt\u003e\u003cdd\u003eApache 2.0\u003c/dd\u003e\n\u003c/dl\u003e\n\n[![Gem Version](https://img.shields.io/gem/dt/addressable.svg)][gem]\n[![Build Status](https://github.com/sporkmonger/addressable/workflows/CI/badge.svg)][actions]\n[![Test Coverage Status](https://img.shields.io/coveralls/sporkmonger/addressable.svg)][coveralls]\n[![Documentation Coverage Status](https://inch-ci.org/github/sporkmonger/addressable.svg?branch=master)][inch]\n\n[gem]: https://rubygems.org/gems/addressable\n[actions]: https://github.com/sporkmonger/addressable/actions\n[coveralls]: https://coveralls.io/r/sporkmonger/addressable\n[inch]: https://inch-ci.org/github/sporkmonger/addressable\n\n# Description\n\nAddressable is an alternative implementation to the URI implementation\nthat is part of Ruby's standard library. It is flexible, offers heuristic\nparsing, and additionally provides extensive support for IRIs and URI templates.\n\nAddressable closely conforms to RFC 3986, RFC 3987, and RFC 6570 (level 4).\n\n# Reference\n\n- {Addressable::URI}\n- {Addressable::Template}\n\n# Example usage\n\n```ruby\nrequire \"addressable/uri\"\n\nuri = Addressable::URI.parse(\"http://example.com/path/to/resource/\")\nuri.scheme\n#=\u003e \"http\"\nuri.host\n#=\u003e \"example.com\"\nuri.path\n#=\u003e \"/path/to/resource/\"\n\nuri = Addressable::URI.parse(\"http://www.詹姆斯.com/\")\nuri.normalize\n#=\u003e #\u003cAddressable::URI:0xc9a4c8 URI:http://www.xn--8ws00zhy3a.com/\u003e\n```\n\n\n# URI Templates\n\nFor more details, see [RFC 6570](https://www.rfc-editor.org/rfc/rfc6570.txt).\n\n\n```ruby\n\nrequire \"addressable/template\"\n\ntemplate = Addressable::Template.new(\"http://example.com/{?query*}\")\ntemplate.expand({\n  \"query\" =\u003e {\n    'foo' =\u003e 'bar',\n    'color' =\u003e 'red'\n  }\n})\n#=\u003e #\u003cAddressable::URI:0xc9d95c URI:http://example.com/?foo=bar\u0026color=red\u003e\n\ntemplate = Addressable::Template.new(\"http://example.com/{?one,two,three}\")\ntemplate.partial_expand({\"one\" =\u003e \"1\", \"three\" =\u003e 3}).pattern\n#=\u003e \"http://example.com/?one=1{\u0026two}\u0026three=3\"\n\ntemplate = Addressable::Template.new(\n  \"http://{host}{/segments*}/{?one,two,bogus}{#fragment}\"\n)\nuri = Addressable::URI.parse(\n  \"http://example.com/a/b/c/?one=1\u0026two=2#foo\"\n)\ntemplate.extract(uri)\n#=\u003e\n# {\n#   \"host\" =\u003e \"example.com\",\n#   \"segments\" =\u003e [\"a\", \"b\", \"c\"],\n#   \"one\" =\u003e \"1\",\n#   \"two\" =\u003e \"2\",\n#   \"fragment\" =\u003e \"foo\"\n# }\n```\n\n# Install\n\n```console\n$ gem install addressable\n```\n\nYou may optionally turn on native IDN support by installing libidn and the\nidn gem:\n\n```console\n$ sudo apt-get install libidn11-dev # Debian/Ubuntu\n$ brew install libidn # OS X\n$ gem install idn-ruby\n```\n\n# Semantic Versioning\n\nThis project uses [Semantic Versioning](https://semver.org/). You can (and should) specify your\ndependency using a pessimistic version constraint covering the major and minor\nvalues:\n\n```ruby\nspec.add_dependency 'addressable', '~\u003e 2.7'\n```\n\nIf you need a specific bug fix, you can also specify minimum tiny versions\nwithout preventing updates to the latest minor release:\n\n```ruby\nspec.add_dependency 'addressable', '~\u003e 2.3', '\u003e= 2.3.7'\n```\n","funding_links":[],"categories":["Ruby","Core Extensions"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsporkmonger%2Faddressable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsporkmonger%2Faddressable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsporkmonger%2Faddressable/lists"}