{"id":23428873,"url":"https://github.com/blendle/excon-addressable","last_synced_at":"2025-04-09T13:21:33.295Z","repository":{"id":56845149,"uuid":"59042995","full_name":"blendle/excon-addressable","owner":"blendle","description":"Sets Addressable as the default URI parser. Supports parsing templated uris.","archived":false,"fork":false,"pushed_at":"2018-06-08T12:50:46.000Z","size":26,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-04T13:38:37.609Z","etag":null,"topics":["excon"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blendle.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-17T17:11:59.000Z","updated_at":"2018-06-08T12:50:47.000Z","dependencies_parsed_at":"2022-09-17T11:02:30.276Z","dependency_job_id":null,"html_url":"https://github.com/blendle/excon-addressable","commit_stats":null,"previous_names":["jeanmertz/excon-addressable"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blendle%2Fexcon-addressable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blendle%2Fexcon-addressable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blendle%2Fexcon-addressable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blendle%2Fexcon-addressable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blendle","download_url":"https://codeload.github.com/blendle/excon-addressable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045360,"owners_count":21038585,"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":["excon"],"created_at":"2024-12-23T07:15:00.304Z","updated_at":"2025-04-09T13:21:33.265Z","avatar_url":"https://github.com/blendle.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Excon::Addressable [![wercker status](https://app.wercker.com/status/3868c162aa140566b830f517c45d528a/s/master \"wercker status\")](https://app.wercker.com/project/bykey/3868c162aa140566b830f517c45d528a)\n\nSets [Addressable][addressable] as the default URI parser. Supports parsing\n[templated uris][].\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'excon-addressable'\n```\n\nAnd then execute:\n\n```shell\nbundle\n```\n\nOr install it yourself as:\n\n```shell\ngem install excon-addressable\n```\n\n## Usage\n\nBe sure to add `Excon::Addressable::Middleware` to the top of the middleware\nstack, so that the variables get expanded as early as possible. This prevents\nother middleware from choking on non-valid URIs.\n\n```ruby\nExcon.defaults[:middlewares].unshift(Excon::Addressable::Middleware)\n```\n\nThen simply provide a templated variable, and the values with which to expand\nthe template:\n\n```ruby\nconn = Excon.new('http://www.example.com/{uid}', expand: { uid: 'hello' })\nconn.request.path # =\u003e '/hello'\n```\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n[addressable]: https://github.com/sporkmonger/addressable\n[templated uris]: https://github.com/sporkmonger/addressable#uri-templates\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblendle%2Fexcon-addressable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblendle%2Fexcon-addressable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblendle%2Fexcon-addressable/lists"}