{"action":"created","issue":{"url":"https://api.github.com/repos/vim-jp/vital.vim/issues/364","labels_url":"https://api.github.com/repos/vim-jp/vital.vim/issues/364/labels{/name}","comments_url":"https://api.github.com/repos/vim-jp/vital.vim/issues/364/comments","events_url":"https://api.github.com/repos/vim-jp/vital.vim/issues/364/events","html_url":"https://github.com/vim-jp/vital.vim/issues/364","id":124091729,"number":364,"title":"Web.URI で相対 URI を扱いたい","user":{"login":"thinca","id":20474,"avatar_url":"https://avatars.githubusercontent.com/u/20474?v=3","gravatar_id":"","url":"https://api.github.com/users/thinca","html_url":"https://github.com/thinca","followers_url":"https://api.github.com/users/thinca/followers","following_url":"https://api.github.com/users/thinca/following{/other_user}","gists_url":"https://api.github.com/users/thinca/gists{/gist_id}","starred_url":"https://api.github.com/users/thinca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinca/subscriptions","organizations_url":"https://api.github.com/users/thinca/orgs","repos_url":"https://api.github.com/users/thinca/repos","events_url":"https://api.github.com/users/thinca/events{/privacy}","received_events_url":"https://api.github.com/users/thinca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-28T17:02:08Z","updated_at":"2015-12-29T13:30:12Z","closed_at":null,"body":"とある html に書かれた相対パスを辿った先の URI を知りたい事例があり、`Web.URI` で相対 URI が扱えると便利かと思いました。\r\nURI のオブジェクトとして絶対 URI と相対 URI の 2 パターンを生成できるようにして、base URI(絶対URI) に対して相対 URI (こちらは html に書かれている都合上絶対 URI の場合もありえる)を渡すと、参照先の絶対 URI が取れれば用件として十分かと思います(渡されたのが絶対 URI ならそれをそのまま返せば OK)。\r\nそのうち実装しようかとは思ってますが、設計周りをメンテナの @tyru さんと相談したいです。(もしくはやってくれても…なんて…)"},"comment":{"url":"https://api.github.com/repos/vim-jp/vital.vim/issues/comments/167789527","html_url":"https://github.com/vim-jp/vital.vim/issues/364#issuecomment-167789527","issue_url":"https://api.github.com/repos/vim-jp/vital.vim/issues/364","id":167789527,"user":{"login":"thinca","id":20474,"avatar_url":"https://avatars.githubusercontent.com/u/20474?v=3","gravatar_id":"","url":"https://api.github.com/users/thinca","html_url":"https://github.com/thinca","followers_url":"https://api.github.com/users/thinca/followers","following_url":"https://api.github.com/users/thinca/following{/other_user}","gists_url":"https://api.github.com/users/thinca/gists{/gist_id}","starred_url":"https://api.github.com/users/thinca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinca/subscriptions","organizations_url":"https://api.github.com/users/thinca/orgs","repos_url":"https://api.github.com/users/thinca/repos","events_url":"https://api.github.com/users/thinca/events{/privacy}","received_events_url":"https://api.github.com/users/thinca/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T13:30:12Z","updated_at":"2015-12-29T13:30:12Z","body":"なるほど、インスタンスを生成しないのでも良さそうです。\r\nどちらにしても、引数として絶対URIと相対URIどちらも受け取れるようになっていると嬉しいです。"}}