{"action":"closed","issue":{"url":"https://api.github.com/repos/skoji/gepub/issues/70","repository_url":"https://api.github.com/repos/skoji/gepub","labels_url":"https://api.github.com/repos/skoji/gepub/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/skoji/gepub/issues/70/comments","events_url":"https://api.github.com/repos/skoji/gepub/issues/70/events","html_url":"https://github.com/skoji/gepub/issues/70","id":320786979,"node_id":"MDU6SXNzdWUzMjA3ODY5Nzk=","number":70,"title":"extending `Book#add_item` and other `add_xxx` methods","user":{"login":"takahashim","id":10401,"node_id":"MDQ6VXNlcjEwNDAx","avatar_url":"https://avatars2.githubusercontent.com/u/10401?v=4","gravatar_id":"","url":"https://api.github.com/users/takahashim","html_url":"https://github.com/takahashim","followers_url":"https://api.github.com/users/takahashim/followers","following_url":"https://api.github.com/users/takahashim/following{/other_user}","gists_url":"https://api.github.com/users/takahashim/gists{/gist_id}","starred_url":"https://api.github.com/users/takahashim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takahashim/subscriptions","organizations_url":"https://api.github.com/users/takahashim/orgs","repos_url":"https://api.github.com/users/takahashim/repos","events_url":"https://api.github.com/users/takahashim/events{/privacy}","received_events_url":"https://api.github.com/users/takahashim/received_events","type":"User","site_admin":false},"labels":[{"id":238195,"node_id":"MDU6TGFiZWwyMzgxOTU=","url":"https://api.github.com/repos/skoji/gepub/labels/feature%20request","name":"feature request","color":"d7e102","default":false}],"state":"closed","locked":false,"assignee":{"login":"skoji","id":119629,"node_id":"MDQ6VXNlcjExOTYyOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/119629?v=4","gravatar_id":"","url":"https://api.github.com/users/skoji","html_url":"https://github.com/skoji","followers_url":"https://api.github.com/users/skoji/followers","following_url":"https://api.github.com/users/skoji/following{/other_user}","gists_url":"https://api.github.com/users/skoji/gists{/gist_id}","starred_url":"https://api.github.com/users/skoji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skoji/subscriptions","organizations_url":"https://api.github.com/users/skoji/orgs","repos_url":"https://api.github.com/users/skoji/repos","events_url":"https://api.github.com/users/skoji/events{/privacy}","received_events_url":"https://api.github.com/users/skoji/received_events","type":"User","site_admin":false},"assignees":[{"login":"skoji","id":119629,"node_id":"MDQ6VXNlcjExOTYyOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/119629?v=4","gravatar_id":"","url":"https://api.github.com/users/skoji","html_url":"https://github.com/skoji","followers_url":"https://api.github.com/users/skoji/followers","following_url":"https://api.github.com/users/skoji/following{/other_user}","gists_url":"https://api.github.com/users/skoji/gists{/gist_id}","starred_url":"https://api.github.com/users/skoji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skoji/subscriptions","organizations_url":"https://api.github.com/users/skoji/orgs","repos_url":"https://api.github.com/users/skoji/repos","events_url":"https://api.github.com/users/skoji/events{/privacy}","received_events_url":"https://api.github.com/users/skoji/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/skoji/gepub/milestones/1","html_url":"https://github.com/skoji/gepub/milestone/1","labels_url":"https://api.github.com/repos/skoji/gepub/milestones/1/labels","id":628214,"node_id":"MDk6TWlsZXN0b25lNjI4MjE0","number":1,"title":"1.0","description":"Full support for EPUB 3.0.1\r\nGeneric and clear traverse interface\r\nclear API for integration with other tools like NoraMark\r\n","creator":{"login":"skoji","id":119629,"node_id":"MDQ6VXNlcjExOTYyOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/119629?v=4","gravatar_id":"","url":"https://api.github.com/users/skoji","html_url":"https://github.com/skoji","followers_url":"https://api.github.com/users/skoji/followers","following_url":"https://api.github.com/users/skoji/following{/other_user}","gists_url":"https://api.github.com/users/skoji/gists{/gist_id}","starred_url":"https://api.github.com/users/skoji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skoji/subscriptions","organizations_url":"https://api.github.com/users/skoji/orgs","repos_url":"https://api.github.com/users/skoji/repos","events_url":"https://api.github.com/users/skoji/events{/privacy}","received_events_url":"https://api.github.com/users/skoji/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":3,"state":"open","created_at":"2014-04-13T02:28:26Z","updated_at":"2018-10-24T02:35:48Z","due_on":"2018-06-10T07:00:00Z","closed_at":null},"comments":0,"created_at":"2018-05-07T12:33:16Z","updated_at":"2018-10-24T02:35:48Z","closed_at":"2018-10-24T02:35:48Z","author_association":"CONTRIBUTOR","body":"IMHO, some examples, such as `book.add_item('foo.xhtml').add_content(bar).toc_text(buz)` or `book.add_contributor(foo).display_seq(1).add_alternates('en' => 'buz')` seems a bit complicated.\r\n\r\nHow about shortcut methods like `book.add_item('foo.xhtml', content: bar, toc: buz)` or `book.add_contributor(foo, display_seq: 1, alternatives: \"en\" => 'buz')` ?\r\n\r\nOr, if targets ruby versions are not so old, we can use keyword arguments like `book.insert_item(name: 'foo.xhtml', content: bar, toc: buz)`. (I'd like to use the name `add_item`, but its API compatibilities are broken...)"}}
{"actor":{"display_login":"skoji"}}