{"action":"created","issue":{"url":"https://api.github.com/repos/cogciprocate/ocl/issues/117","repository_url":"https://api.github.com/repos/cogciprocate/ocl","labels_url":"https://api.github.com/repos/cogciprocate/ocl/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/cogciprocate/ocl/issues/117/comments","events_url":"https://api.github.com/repos/cogciprocate/ocl/issues/117/events","html_url":"https://github.com/cogciprocate/ocl/pull/117","id":345472273,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0NjA2OTg1","number":117,"title":"Add FullDeviceInfo trait and impl","user":{"login":"apemanzilla","id":5429337,"node_id":"MDQ6VXNlcjU0MjkzMzc=","avatar_url":"https://avatars1.githubusercontent.com/u/5429337?v=4","gravatar_id":"","url":"https://api.github.com/users/apemanzilla","html_url":"https://github.com/apemanzilla","followers_url":"https://api.github.com/users/apemanzilla/followers","following_url":"https://api.github.com/users/apemanzilla/following{/other_user}","gists_url":"https://api.github.com/users/apemanzilla/gists{/gist_id}","starred_url":"https://api.github.com/users/apemanzilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apemanzilla/subscriptions","organizations_url":"https://api.github.com/users/apemanzilla/orgs","repos_url":"https://api.github.com/users/apemanzilla/repos","events_url":"https://api.github.com/users/apemanzilla/events{/privacy}","received_events_url":"https://api.github.com/users/apemanzilla/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-28T19:16:06Z","updated_at":"2018-07-28T19:50:45Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/cogciprocate/ocl/pulls/117","html_url":"https://github.com/cogciprocate/ocl/pull/117","diff_url":"https://github.com/cogciprocate/ocl/pull/117.diff","patch_url":"https://github.com/cogciprocate/ocl/pull/117.patch"},"body":"This implements #104 for devices. A new trait, `ocl::FullDeviceInfo` (and matching implementation for `ocl::Device`) is added, with wrapper methods for every standard type of device info. For example, this code:\r\n```rust\r\nmatch device.info(DeviceInfo::DeviceType)? {  DeviceInfoResult(ty) => ..., _ => panic!(...) }\r\n```\r\n...can be rewritten as `device.device_type()?` when using `FullDeviceInfo`, greatly simplifying usage.\r\n\r\nRight now I've only done manual testing of some of the methods, but they seem to work properly. Automatic tests would be nice, but I've been having trouble with running the tests on my system.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cogciprocate/ocl/issues/comments/408631039","html_url":"https://github.com/cogciprocate/ocl/pull/117#issuecomment-408631039","issue_url":"https://api.github.com/repos/cogciprocate/ocl/issues/117","id":408631039,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODYzMTAzOQ==","user":{"login":"c0gent","id":2916797,"node_id":"MDQ6VXNlcjI5MTY3OTc=","avatar_url":"https://avatars2.githubusercontent.com/u/2916797?v=4","gravatar_id":"","url":"https://api.github.com/users/c0gent","html_url":"https://github.com/c0gent","followers_url":"https://api.github.com/users/c0gent/followers","following_url":"https://api.github.com/users/c0gent/following{/other_user}","gists_url":"https://api.github.com/users/c0gent/gists{/gist_id}","starred_url":"https://api.github.com/users/c0gent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c0gent/subscriptions","organizations_url":"https://api.github.com/users/c0gent/orgs","repos_url":"https://api.github.com/users/c0gent/repos","events_url":"https://api.github.com/users/c0gent/events{/privacy}","received_events_url":"https://api.github.com/users/c0gent/received_events","type":"User","site_admin":false},"created_at":"2018-07-28T19:50:45Z","updated_at":"2018-07-28T19:50:45Z","author_association":"MEMBER","body":"Good point."}}
{"actor":{"display_login":"c0gent"}}