{"action":"created","issue":{"url":"https://api.github.com/repos/influxdb/influxdb-ruby/issues/88","labels_url":"https://api.github.com/repos/influxdb/influxdb-ruby/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/influxdb-ruby/issues/88/comments","events_url":"https://api.github.com/repos/influxdb/influxdb-ruby/issues/88/events","html_url":"https://github.com/influxdb/influxdb-ruby/pull/88","id":86894037,"number":88,"title":"Refactor library (prepare to 0.9 support)","user":{"login":"palkan","id":1516722,"avatar_url":"https://avatars.githubusercontent.com/u/1516722?v=3","gravatar_id":"","url":"https://api.github.com/users/palkan","html_url":"https://github.com/palkan","followers_url":"https://api.github.com/users/palkan/followers","following_url":"https://api.github.com/users/palkan/following{/other_user}","gists_url":"https://api.github.com/users/palkan/gists{/gist_id}","starred_url":"https://api.github.com/users/palkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palkan/subscriptions","organizations_url":"https://api.github.com/users/palkan/orgs","repos_url":"https://api.github.com/users/palkan/repos","events_url":"https://api.github.com/users/palkan/events{/privacy}","received_events_url":"https://api.github.com/users/palkan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-10T08:53:02Z","updated_at":"2015-07-06T18:21:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/influxdb/influxdb-ruby/pulls/88","html_url":"https://github.com/influxdb/influxdb-ruby/pull/88","diff_url":"https://github.com/influxdb/influxdb-ruby/pull/88.diff","patch_url":"https://github.com/influxdb/influxdb-ruby/pull/88.patch"},"body":"Hi, guys!\r\n\r\nI'm working on [Influxer](https://github.com/palkan/influxer) gem and going to upgrade to 0.9.\r\nMy gem depends on this one, so I've decided to upgrade `influxdb-ruby` first. \r\n\r\nBut I found out it rather hard to work with the codebase, so I made _a little refactoring_: \r\n- Extract config from client\r\n- Extract HTTP functionality to separate module\r\n- Extract InfluxDB management functions to separate modules\r\n- Add writer concept\r\n- Refactor specs (add cases)\r\n- Update README\r\n- Add Rubocop config and _restyle_ code according to Ruby style guides\r\n\r\nSome breaking changes:\r\n- rename `get_<something>_list` to `list_<somethings>` (it looks less verbose);\r\n- no more support for setting time precision on `write_point` (because it's not supported for async/udp writing, so do we really need it?);\r\n- **drop support for Ruby < 2**.\r\n\r\nAnd some new features:\r\n- add 'denormalize' option to config / `query` to return raw InfluxDB response JSON;\r\n- recognize `SeriesNotFound` error;\r\n- add `Client#write_raw` method to write data without transformation (in case you want to build valid json yourself).\r\n\r\nThis is just a preparation step before upgrade to 0.9. \r\n\r\n@toddboom @jvshahid "},"comment":{"url":"https://api.github.com/repos/influxdb/influxdb-ruby/issues/comments/118945265","html_url":"https://github.com/influxdb/influxdb-ruby/pull/88#issuecomment-118945265","issue_url":"https://api.github.com/repos/influxdb/influxdb-ruby/issues/88","id":118945265,"user":{"login":"palkan","id":1516722,"avatar_url":"https://avatars.githubusercontent.com/u/1516722?v=3","gravatar_id":"","url":"https://api.github.com/users/palkan","html_url":"https://github.com/palkan","followers_url":"https://api.github.com/users/palkan/followers","following_url":"https://api.github.com/users/palkan/following{/other_user}","gists_url":"https://api.github.com/users/palkan/gists{/gist_id}","starred_url":"https://api.github.com/users/palkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palkan/subscriptions","organizations_url":"https://api.github.com/users/palkan/orgs","repos_url":"https://api.github.com/users/palkan/repos","events_url":"https://api.github.com/users/palkan/events{/privacy}","received_events_url":"https://api.github.com/users/palkan/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T18:21:50Z","updated_at":"2015-07-06T18:21:50Z","body":"@toddboom I working on it."}}