GitHub PullRequestReviewCommentEvent at 2014-06-04 21:20:24
Repository: logstash
Actor: jordansissel
Payload: {"comment":{"url":"https://api.github.com/repos/elasticsearch/logstash/pulls/comments/13411679","id":13411679,"diff_hunk":"@@ -50,20 +38,21 @@ class DeprecatedMethod < StandardError; end\n   VERSION_ONE = \"1\"\n \n   public\n-  def initialize(data={})\n+  def initialize(data = {})\n     @cancelled = false\n-\n     @data = data\n     @accessors = LogStash::Util::Accessors.new(data)\n-\n-    data[VERSION] = VERSION_ONE if !@data.include?(VERSION)\n-    if data.include?(TIMESTAMP)\n-      t = data[TIMESTAMP]\n-      if t.is_a?(String)\n-        data[TIMESTAMP] = LogStash::Time.parse_iso8601(t)\n-      end\n+    @data[VERSION] ||= VERSION_ONE\n+\n+    @data[TIMESTAMP] = case (val = @data[TIMESTAMP])","path":"lib/logstash/event.rb","position":45,"original_position":45,"commit_id":"b6147ab123faa74f9b7d64bee881dee9fcb020f8","original_commit_id":"b6147ab123faa74f9b7d64bee881dee9fcb020f8","user":{"login":"jordansissel","id":131818,"avatar_url":"https://avatars.githubusercontent.com/u/131818?","gravatar_id":"75fdd336ae5f818276f1cf79e0468b2d","url":"https://api.github.com/users/jordansissel","html_url":"https://github.com/jordansissel","followers_url":"https://api.github.com/users/jordansissel/followers","following_url":"https://api.github.com/users/jordansissel/following{/other_user}","gists_url":"https://api.github.com/users/jordansissel/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansissel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansissel/subscriptions","organizations_url":"https://api.github.com/users/jordansissel/orgs","repos_url":"https://api.github.com/users/jordansissel/repos","events_url":"https://api.github.com/users/jordansissel/events{/privacy}","received_events_url":"https://api.github.com/users/jordansissel/received_events","type":"User","site_admin":false},"body":":+1:","created_at":"2014-06-04T21:20:24Z","updated_at":"2014-06-04T21:20:24Z","html_url":"https://github.com/elasticsearch/logstash/pull/1405#discussion_r13411679","pull_request_url":"https://api.github.com/repos/elasticsearch/logstash/pulls/1405","_links":{"self":{"href":"https://api.github.com/repos/elasticsearch/logstash/pulls/comments/13411679"},"html":{"href":"https://github.com/elasticsearch/logstash/pull/1405#discussion_r13411679"},"pull_request":{"href":"https://api.github.com/repos/elasticsearch/logstash/pulls/1405"}}}}