{"action":"created","comment":{"url":"https://api.github.com/repos/sealink/timely/pulls/comments/46113877","id":46113877,"diff_hunk":"@@ -0,0 +1,32 @@\n+require 'spec_helper'\n+\n+describe Timely::TimeField do\n+  let(:klass) {\n+    Class.new do\n+      include Timely::TimeField\n+\n+      def initialize(attrs)\n+        @start_time = attrs[:start_time]\n+        @end = attrs[:end]\n+      end\n+\n+      def read_attribute(attr)\n+        instance_variable_get(\"@#{attr}\".to_sym)\n+      end\n+\n+      time_fields :start_time, :end\n+    end\n+  }\n+\n+  subject {\n+    klass.new(\n+      start_time: DateTime.new(2000, 1, 1, 11, 59, 0),\n+      end: DateTime.new(2000, 1, 1, 23, 59, 0)","path":"spec/time_field_spec.rb","position":24,"original_position":24,"commit_id":"0db6aa9b3a54fe19b41c469546e69ae72bdbb571","original_commit_id":"0db6aa9b3a54fe19b41c469546e69ae72bdbb571","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Do not use `DateTime.new` without zone. Use one of `Time.zone.local`, `DateTime.new.current`, `DateTime.new.in_time_zone`, `DateTime.new.utc`, `DateTime.new.getlocal`, `DateTime.new.iso8601`, `DateTime.new.jisx0301`, `DateTime.new.rfc3339`, `DateTime.new.to_i`, `DateTime.new.to_f` instead.","created_at":"2015-11-30T07:17:04Z","updated_at":"2015-11-30T07:17:04Z","html_url":"https://github.com/sealink/timely/pull/5#discussion_r46113877","pull_request_url":"https://api.github.com/repos/sealink/timely/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/sealink/timely/pulls/comments/46113877"},"html":{"href":"https://github.com/sealink/timely/pull/5#discussion_r46113877"},"pull_request":{"href":"https://api.github.com/repos/sealink/timely/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/sealink/timely/pulls/5","id":52090558,"html_url":"https://github.com/sealink/timely/pull/5","diff_url":"https://github.com/sealink/timely/pull/5.diff","patch_url":"https://github.com/sealink/timely/pull/5.patch","issue_url":"https://api.github.com/repos/sealink/timely/issues/5","number":5,"state":"open","locked":false,"title":"Time field extraction2","user":{"login":"mnoack","id":35966,"avatar_url":"https://avatars.githubusercontent.com/u/35966?v=3","gravatar_id":"","url":"https://api.github.com/users/mnoack","html_url":"https://github.com/mnoack","followers_url":"https://api.github.com/users/mnoack/followers","following_url":"https://api.github.com/users/mnoack/following{/other_user}","gists_url":"https://api.github.com/users/mnoack/gists{/gist_id}","starred_url":"https://api.github.com/users/mnoack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnoack/subscriptions","organizations_url":"https://api.github.com/users/mnoack/orgs","repos_url":"https://api.github.com/users/mnoack/repos","events_url":"https://api.github.com/users/mnoack/events{/privacy}","received_events_url":"https://api.github.com/users/mnoack/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-30T06:53:25Z","updated_at":"2015-11-30T07:17:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"424b8328e5cb7de7d1c209f1e664df4b1dfecd02","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sealink/timely/pulls/5/commits","review_comments_url":"https://api.github.com/repos/sealink/timely/pulls/5/comments","review_comment_url":"https://api.github.com/repos/sealink/timely/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sealink/timely/issues/5/comments","statuses_url":"https://api.github.com/repos/sealink/timely/statuses/0db6aa9b3a54fe19b41c469546e69ae72bdbb571","head":{"label":"sealink:time_field_extraction2","ref":"time_field_extraction2","sha":"0db6aa9b3a54fe19b41c469546e69ae72bdbb571","user":{"login":"sealink","id":113649,"avatar_url":"https://avatars.githubusercontent.com/u/113649?v=3","gravatar_id":"","url":"https://api.github.com/users/sealink","html_url":"https://github.com/sealink","followers_url":"https://api.github.com/users/sealink/followers","following_url":"https://api.github.com/users/sealink/following{/other_user}","gists_url":"https://api.github.com/users/sealink/gists{/gist_id}","starred_url":"https://api.github.com/users/sealink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sealink/subscriptions","organizations_url":"https://api.github.com/users/sealink/orgs","repos_url":"https://api.github.com/users/sealink/repos","events_url":"https://api.github.com/users/sealink/events{/privacy}","received_events_url":"https://api.github.com/users/sealink/received_events","type":"Organization","site_admin":false},"repo":{"id":4131950,"name":"timely","full_name":"sealink/timely","owner":{"login":"sealink","id":113649,"avatar_url":"https://avatars.githubusercontent.com/u/113649?v=3","gravatar_id":"","url":"https://api.github.com/users/sealink","html_url":"https://github.com/sealink","followers_url":"https://api.github.com/users/sealink/followers","following_url":"https://api.github.com/users/sealink/following{/other_user}","gists_url":"https://api.github.com/users/sealink/gists{/gist_id}","starred_url":"https://api.github.com/users/sealink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sealink/subscriptions","organizations_url":"https://api.github.com/users/sealink/orgs","repos_url":"https://api.github.com/users/sealink/repos","events_url":"https://api.github.com/users/sealink/events{/privacy}","received_events_url":"https://api.github.com/users/sealink/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sealink/timely","description":"A set of ruby date and time helpers","fork":false,"url":"https://api.github.com/repos/sealink/timely","forks_url":"https://api.github.com/repos/sealink/timely/forks","keys_url":"https://api.github.com/repos/sealink/timely/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sealink/timely/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sealink/timely/teams","hooks_url":"https://api.github.com/repos/sealink/timely/hooks","issue_events_url":"https://api.github.com/repos/sealink/timely/issues/events{/number}","events_url":"https://api.github.com/repos/sealink/timely/events","assignees_url":"https://api.github.com/repos/sealink/timely/assignees{/user}","branches_url":"https://api.github.com/repos/sealink/timely/branches{/branch}","tags_url":"https://api.github.com/repos/sealink/timely/tags","blobs_url":"https://api.github.com/repos/sealink/timely/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sealink/timely/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sealink/timely/git/refs{/sha}","trees_url":"https://api.github.com/repos/sealink/timely/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sealink/timely/statuses/{sha}","languages_url":"https://api.github.com/repos/sealink/timely/languages","stargazers_url":"https://api.github.com/repos/sealink/timely/stargazers","contributors_url":"https://api.github.com/repos/sealink/timely/contributors","subscribers_url":"https://api.github.com/repos/sealink/timely/subscribers","subscription_url":"https://api.github.com/repos/sealink/timely/subscription","commits_url":"https://api.github.com/repos/sealink/timely/commits{/sha}","git_commits_url":"https://api.github.com/repos/sealink/timely/git/commits{/sha}","comments_url":"https://api.github.com/repos/sealink/timely/comments{/number}","issue_comment_url":"https://api.github.com/repos/sealink/timely/issues/comments{/number}","contents_url":"https://api.github.com/repos/sealink/timely/contents/{+path}","compare_url":"https://api.github.com/repos/sealink/timely/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sealink/timely/merges","archive_url":"https://api.github.com/repos/sealink/timely/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sealink/timely/downloads","issues_url":"https://api.github.com/repos/sealink/timely/issues{/number}","pulls_url":"https://api.github.com/repos/sealink/timely/pulls{/number}","milestones_url":"https://api.github.com/repos/sealink/timely/milestones{/number}","notifications_url":"https://api.github.com/repos/sealink/timely/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sealink/timely/labels{/name}","releases_url":"https://api.github.com/repos/sealink/timely/releases{/id}","created_at":"2012-04-25T02:12:20Z","updated_at":"2015-02-26T19:39:17Z","pushed_at":"2015-11-30T07:16:59Z","git_url":"git://github.com/sealink/timely.git","ssh_url":"git@github.com:sealink/timely.git","clone_url":"https://github.com/sealink/timely.git","svn_url":"https://github.com/sealink/timely","homepage":null,"size":112,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"sealink:master","ref":"master","sha":"b54dcafbdf738cf4b4894d811347be2e526c98f1","user":{"login":"sealink","id":113649,"avatar_url":"https://avatars.githubusercontent.com/u/113649?v=3","gravatar_id":"","url":"https://api.github.com/users/sealink","html_url":"https://github.com/sealink","followers_url":"https://api.github.com/users/sealink/followers","following_url":"https://api.github.com/users/sealink/following{/other_user}","gists_url":"https://api.github.com/users/sealink/gists{/gist_id}","starred_url":"https://api.github.com/users/sealink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sealink/subscriptions","organizations_url":"https://api.github.com/users/sealink/orgs","repos_url":"https://api.github.com/users/sealink/repos","events_url":"https://api.github.com/users/sealink/events{/privacy}","received_events_url":"https://api.github.com/users/sealink/received_events","type":"Organization","site_admin":false},"repo":{"id":4131950,"name":"timely","full_name":"sealink/timely","owner":{"login":"sealink","id":113649,"avatar_url":"https://avatars.githubusercontent.com/u/113649?v=3","gravatar_id":"","url":"https://api.github.com/users/sealink","html_url":"https://github.com/sealink","followers_url":"https://api.github.com/users/sealink/followers","following_url":"https://api.github.com/users/sealink/following{/other_user}","gists_url":"https://api.github.com/users/sealink/gists{/gist_id}","starred_url":"https://api.github.com/users/sealink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sealink/subscriptions","organizations_url":"https://api.github.com/users/sealink/orgs","repos_url":"https://api.github.com/users/sealink/repos","events_url":"https://api.github.com/users/sealink/events{/privacy}","received_events_url":"https://api.github.com/users/sealink/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sealink/timely","description":"A set of ruby date and time helpers","fork":false,"url":"https://api.github.com/repos/sealink/timely","forks_url":"https://api.github.com/repos/sealink/timely/forks","keys_url":"https://api.github.com/repos/sealink/timely/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sealink/timely/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sealink/timely/teams","hooks_url":"https://api.github.com/repos/sealink/timely/hooks","issue_events_url":"https://api.github.com/repos/sealink/timely/issues/events{/number}","events_url":"https://api.github.com/repos/sealink/timely/events","assignees_url":"https://api.github.com/repos/sealink/timely/assignees{/user}","branches_url":"https://api.github.com/repos/sealink/timely/branches{/branch}","tags_url":"https://api.github.com/repos/sealink/timely/tags","blobs_url":"https://api.github.com/repos/sealink/timely/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sealink/timely/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sealink/timely/git/refs{/sha}","trees_url":"https://api.github.com/repos/sealink/timely/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sealink/timely/statuses/{sha}","languages_url":"https://api.github.com/repos/sealink/timely/languages","stargazers_url":"https://api.github.com/repos/sealink/timely/stargazers","contributors_url":"https://api.github.com/repos/sealink/timely/contributors","subscribers_url":"https://api.github.com/repos/sealink/timely/subscribers","subscription_url":"https://api.github.com/repos/sealink/timely/subscription","commits_url":"https://api.github.com/repos/sealink/timely/commits{/sha}","git_commits_url":"https://api.github.com/repos/sealink/timely/git/commits{/sha}","comments_url":"https://api.github.com/repos/sealink/timely/comments{/number}","issue_comment_url":"https://api.github.com/repos/sealink/timely/issues/comments{/number}","contents_url":"https://api.github.com/repos/sealink/timely/contents/{+path}","compare_url":"https://api.github.com/repos/sealink/timely/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sealink/timely/merges","archive_url":"https://api.github.com/repos/sealink/timely/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sealink/timely/downloads","issues_url":"https://api.github.com/repos/sealink/timely/issues{/number}","pulls_url":"https://api.github.com/repos/sealink/timely/pulls{/number}","milestones_url":"https://api.github.com/repos/sealink/timely/milestones{/number}","notifications_url":"https://api.github.com/repos/sealink/timely/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sealink/timely/labels{/name}","releases_url":"https://api.github.com/repos/sealink/timely/releases{/id}","created_at":"2012-04-25T02:12:20Z","updated_at":"2015-02-26T19:39:17Z","pushed_at":"2015-11-30T07:16:59Z","git_url":"git://github.com/sealink/timely.git","ssh_url":"git@github.com:sealink/timely.git","clone_url":"https://github.com/sealink/timely.git","svn_url":"https://github.com/sealink/timely","homepage":null,"size":112,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sealink/timely/pulls/5"},"html":{"href":"https://github.com/sealink/timely/pull/5"},"issue":{"href":"https://api.github.com/repos/sealink/timely/issues/5"},"comments":{"href":"https://api.github.com/repos/sealink/timely/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/sealink/timely/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/sealink/timely/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sealink/timely/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/sealink/timely/statuses/0db6aa9b3a54fe19b41c469546e69ae72bdbb571"}}}}