{"action":"opened","issue":{"url":"https://api.github.com/repos/keizo042/mruby-resolv/issues/9","repository_url":"https://api.github.com/repos/keizo042/mruby-resolv","labels_url":"https://api.github.com/repos/keizo042/mruby-resolv/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/keizo042/mruby-resolv/issues/9/comments","events_url":"https://api.github.com/repos/keizo042/mruby-resolv/issues/9/events","html_url":"https://github.com/keizo042/mruby-resolv/issues/9","id":257730433,"number":9,"title":"Codec return differenct value","user":{"login":"keizo042","id":5925094,"avatar_url":"https://avatars1.githubusercontent.com/u/5925094?v=4","gravatar_id":"","url":"https://api.github.com/users/keizo042","html_url":"https://github.com/keizo042","followers_url":"https://api.github.com/users/keizo042/followers","following_url":"https://api.github.com/users/keizo042/following{/other_user}","gists_url":"https://api.github.com/users/keizo042/gists{/gist_id}","starred_url":"https://api.github.com/users/keizo042/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keizo042/subscriptions","organizations_url":"https://api.github.com/users/keizo042/orgs","repos_url":"https://api.github.com/users/keizo042/repos","events_url":"https://api.github.com/users/keizo042/events{/privacy}","received_events_url":"https://api.github.com/users/keizo042/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-14T14:01:13Z","updated_at":"2017-09-14T14:01:13Z","closed_at":null,"author_association":"OWNER","body":"```\r\ndef cliheader(qdcount, ancount,  nscount, adcount)\r\n  Resolv::DNS::Query::Header.new(\r\n    0x42,\r\n    Resolv::DNS::Query::Header::QR::CLIENT,\r\n    Resolv::DNS::Query::Header::OPCODE::QUERY,\r\n    0, # aa selected by server\r\n    0, # tc \r\n    Resolv::DNS::Query::Header::RD::DESIRE,\r\n    0, # ra\r\n    Resolv::DNS::Query::Header::RCODE::NoError,\r\n    qdcount,\r\n    ancount,\r\n    nscount,\r\n    adcount)\r\nend\r\nexpected = Resolv::DNS::Query.new(\r\n  cliheader(1,0,0,0),\r\n  [Resolv::DNS::Query::Question.new(\"google-public-dns-a.google.com.\", 1,1)],\r\n  [], \r\n  [], \r\n  []) \r\nc = Resolv::DNS::Codec.new\r\nactual = (c.decode (c.encode expected))\r\np expected.header == actual.header\r\n\r\n```"}}
{"actor":{"display_login":"keizo042"}}