{"action":"created","issue":{"url":"https://api.github.com/repos/appium/ruby_lib/issues/358","labels_url":"https://api.github.com/repos/appium/ruby_lib/issues/358/labels{/name}","comments_url":"https://api.github.com/repos/appium/ruby_lib/issues/358/comments","events_url":"https://api.github.com/repos/appium/ruby_lib/issues/358/events","html_url":"https://github.com/appium/ruby_lib/pull/358","id":123324989,"number":358,"title":"Replace toml with tomlrb","user":{"login":"bayandin","id":864213,"avatar_url":"https://avatars.githubusercontent.com/u/864213?v=3","gravatar_id":"","url":"https://api.github.com/users/bayandin","html_url":"https://github.com/bayandin","followers_url":"https://api.github.com/users/bayandin/followers","following_url":"https://api.github.com/users/bayandin/following{/other_user}","gists_url":"https://api.github.com/users/bayandin/gists{/gist_id}","starred_url":"https://api.github.com/users/bayandin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bayandin/subscriptions","organizations_url":"https://api.github.com/users/bayandin/orgs","repos_url":"https://api.github.com/users/bayandin/repos","events_url":"https://api.github.com/users/bayandin/events{/privacy}","received_events_url":"https://api.github.com/users/bayandin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-21T17:44:21Z","updated_at":"2015-12-21T23:51:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/appium/ruby_lib/pulls/358","html_url":"https://github.com/appium/ruby_lib/pull/358","diff_url":"https://github.com/appium/ruby_lib/pull/358.diff","patch_url":"https://github.com/appium/ruby_lib/pull/358.patch"},"body":"It seems [current](https://github.com/jm/toml) version of toml parser is abandoned and has a lot of unfixed issues. I've replaced toml with [`tomlrb`](https://github.com/fbernier/tomlrb) which also [recommended](https://github.com/toml-lang/toml#v040-compliant) as toml 0.4.0 complaint parser.\r\nMy real problem with `toml` is it can't parse keys with dots:\r\n```toml\r\n[caps.chromeOptions.prefs]\r\n\"intl.accept_languages\" = \"en-GB\"\r\n```\r\n\r\nCompare with `tomlrb`:\r\n```irb\r\n2.1.5 :001 > require 'tomlrb'\r\n => true\r\n2.1.5 :002 > require 'toml'\r\n => true\r\n2.1.5 :003 > t = <<-TOML\r\n2.1.5 :004\"> [caps.chromeOptions.prefs]\r\n2.1.5 :005\"> \"intl.accept_languages\" = \"en-GB\"\r\n2.1.5 :006\"> TOML\r\n => \"[caps.chromeOptions.prefs]\\n\\\"intl.accept_languages\\\" = \\\"en-GB\\\"\\n\"\r\n2.1.5 :007 > TOML::Parser.new(t).parsed\r\nFailed to match sequence (ALL_SPACE (TABLE / TABLE_ARRAY / KEY_VALUE / COMMENT_LINE){0, } ALL_SPACE) at line 2 char 1.\r\n`- Don't know what to do with \"\\\"intl.acce\" at line 2 char 1.\r\n => {}\r\n2.1.5 :008 > Tomlrb.parse(t)\r\n => {\"caps\"=>{\"chromeOptions\"=>{\"prefs\"=>{\"intl.accept_languages\"=>\"en-GB\"}}}}\r\n```"},"comment":{"url":"https://api.github.com/repos/appium/ruby_lib/issues/comments/166461612","html_url":"https://github.com/appium/ruby_lib/pull/358#issuecomment-166461612","issue_url":"https://api.github.com/repos/appium/ruby_lib/issues/358","id":166461612,"user":{"login":"maudineormsby","id":709062,"avatar_url":"https://avatars.githubusercontent.com/u/709062?v=3","gravatar_id":"","url":"https://api.github.com/users/maudineormsby","html_url":"https://github.com/maudineormsby","followers_url":"https://api.github.com/users/maudineormsby/followers","following_url":"https://api.github.com/users/maudineormsby/following{/other_user}","gists_url":"https://api.github.com/users/maudineormsby/gists{/gist_id}","starred_url":"https://api.github.com/users/maudineormsby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maudineormsby/subscriptions","organizations_url":"https://api.github.com/users/maudineormsby/orgs","repos_url":"https://api.github.com/users/maudineormsby/repos","events_url":"https://api.github.com/users/maudineormsby/events{/privacy}","received_events_url":"https://api.github.com/users/maudineormsby/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T23:51:24Z","updated_at":"2015-12-21T23:51:24Z","body":":+1: as well. nice."}}