{"action":"created","issue":{"url":"https://api.github.com/repos/ifreecarve/nmea_plus/issues/2","repository_url":"https://api.github.com/repos/ifreecarve/nmea_plus","labels_url":"https://api.github.com/repos/ifreecarve/nmea_plus/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ifreecarve/nmea_plus/issues/2/comments","events_url":"https://api.github.com/repos/ifreecarve/nmea_plus/issues/2/events","html_url":"https://github.com/ifreecarve/nmea_plus/issues/2","id":178671701,"number":2,"title":"\"argument out of range\" error in eta method","user":{"login":"sternschnuppe","id":8851746,"avatar_url":"https://avatars.githubusercontent.com/u/8851746?v=3","gravatar_id":"","url":"https://api.github.com/users/sternschnuppe","html_url":"https://github.com/sternschnuppe","followers_url":"https://api.github.com/users/sternschnuppe/followers","following_url":"https://api.github.com/users/sternschnuppe/following{/other_user}","gists_url":"https://api.github.com/users/sternschnuppe/gists{/gist_id}","starred_url":"https://api.github.com/users/sternschnuppe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sternschnuppe/subscriptions","organizations_url":"https://api.github.com/users/sternschnuppe/orgs","repos_url":"https://api.github.com/users/sternschnuppe/repos","events_url":"https://api.github.com/users/sternschnuppe/events{/privacy}","received_events_url":"https://api.github.com/users/sternschnuppe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ifreecarve/nmea_plus/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-22T17:28:28Z","updated_at":"2016-09-22T20:23:57Z","closed_at":null,"body":"## If ETA is not set (i.e. \"0-0 24:60\" or \"0-0 00:00\") the method stops throwing \"argument out of range (ArgumentError)\".\r\n\r\n- Error message:\r\n\r\n/home/user/.rvm/gems/ruby-2.3.0/gems/nmea_plus-1.0.12/lib/nmea_plus/message/ais/vdm_payload/vdm_msg5.rb:26:in `initialize': argument out of range (ArgumentError)\r\n\r\nfrom /home/user/.rvm/gems/ruby-2.3.0/gems/nmea_plus-1.0.12/lib/nmea_plus/message/ais/vdm_payload/vdm_msg5.rb:26:in `new'\r\n\r\nfrom /home/user/.rvm/gems/ruby-2.3.0/gems/nmea_plus-1.0.12/lib/nmea_plus/message/ais/vdm_payload/vdm_msg5.rb:26:in `eta'\r\n\r\nfrom Decode_NMEA.rb:72:in `block in main'\r\n\r\nfrom /home/user/.rvm/gems/ruby-2.3.0/gems/nmea_plus-1.0.12/lib/nmea_plus.rb:103:in `block in each_complete_message'\r\n\r\nfrom /home/user/.rvm/gems/ruby-2.3.0/gems/nmea_plus-1.0.12/lib/nmea_plus.rb:56:in `block in each_message'\r\n\r\nfrom /home/user/.rvm/gems/ruby-2.3.0/gems/nmea_plus-1.0.12/lib/nmea_plus.rb:46:in `each_line'\r\n\r\nfrom /home/user/.rvm/gems/ruby-2.3.0/gems/nmea_plus-1.0.12/lib/nmea_plus.rb:46:in `each_message'\r\n\r\nfrom /home/user/.rvm/gems/ruby-2.3.0/gems/nmea_plus-1.0.12/lib/nmea_plus.rb:81:in `each_complete_message'\r\n\r\nfrom Decode_NMEA.rb:17:in `main'\r\n\r\n- Example sentences\r\n!AIVDM,2,1,6,B,53JNnF42BiCWTP7?3KE<B18uHE:222222222220l1h>5540Ht<P000000000,0*6A\r\n!AIVDM,2,2,6,B,00000000000,2*21\r\n!AIVDM,2,1,0,A,539egL400000@?KOOF0u8<62000000000000000l10C33t0Ht0R0C@UDQp00,0*50\r\n!AIVDM,2,2,0,A,00000000000,2*24\r\n!AIVDM,2,1,3,B,539J@cT00000@7GCC<0P4T00000000000000000l0h<22t0Ht0P000000000,0*3B\r\n!AIVDM,2,2,3,B,00000000000,2*24\r\n!AIVDM,2,1,3,B,539QeeT00000@;?S7818DE0E884Pp0000000000t2p64440Ht00000000000,0*66\r\n!AIVDM,2,2,3,B,00000000000,2*24\r\n```\r\nSentence containing backtick\r\n!AIVDM,2,1,6,A,539`vQ400000@SGKGP0P4q<D5@000000000000150@@23t0Ht0B0C@UDQh00,0*6B\r\n!AIVDM,2,2,6,A,00000000000,2*22\r\n```\r\n\r\n- Workaround:\r\n`begin eta = message.ais.eta; rescue eta = nil; end`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ifreecarve/nmea_plus/issues/comments/249017434","html_url":"https://github.com/ifreecarve/nmea_plus/issues/2#issuecomment-249017434","issue_url":"https://api.github.com/repos/ifreecarve/nmea_plus/issues/2","id":249017434,"user":{"login":"sternschnuppe","id":8851746,"avatar_url":"https://avatars.githubusercontent.com/u/8851746?v=3","gravatar_id":"","url":"https://api.github.com/users/sternschnuppe","html_url":"https://github.com/sternschnuppe","followers_url":"https://api.github.com/users/sternschnuppe/followers","following_url":"https://api.github.com/users/sternschnuppe/following{/other_user}","gists_url":"https://api.github.com/users/sternschnuppe/gists{/gist_id}","starred_url":"https://api.github.com/users/sternschnuppe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sternschnuppe/subscriptions","organizations_url":"https://api.github.com/users/sternschnuppe/orgs","repos_url":"https://api.github.com/users/sternschnuppe/repos","events_url":"https://api.github.com/users/sternschnuppe/events{/privacy}","received_events_url":"https://api.github.com/users/sternschnuppe/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T20:23:57Z","updated_at":"2016-09-22T20:23:57Z","body":"For the sake of completeness I added a sentence with a backtick. "}}
{"actor":{"display_login":"sternschnuppe"}}