GitHub PullRequestReviewCommentEvent at 2014-08-15 10:30:55
Repository: rails
Actor: cristianbica
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/rails/rails/pulls/comments/16287112","id":16287112,"diff_hunk":"@@ -0,0 +1,71 @@\n+require 'active_job/arguments'\n+\n+module ActiveJob\n+  module Enqueuing\n+    extend ActiveSupport::Concern\n+\n+    module ClassMethods\n+      # Push a job onto the queue.  The arguments must be legal JSON types\n+      # (string, int, float, nil, true, false, hash or array) or\n+      # ActiveModel::GlobalIdentication instances.  Arbitrary Ruby objects\n+      # are not supported.\n+      #\n+      # Returns an instance of the job class queued with args available in\n+      # Job#arguments.\n+      def enqueue(*args)\n+        new(args).tap do |job|\n+          job.run_callbacks :enqueue do\n+            queue_adapter.enqueue self, job.job_id, *Arguments.serialize(args)\n+          end\n+        end\n+      end\n+\n+      # Enqueue a job to be performed at +interval+ from now.\n+      #\n+      #   enqueue_in(1.week, \"mike\")\n+      #\n+      # Returns an instance of the job class queued with args available in\n+      # Job#arguments and the timestamp in Job#enqueue_at.\n+      def enqueue_in(interval, *args)\n+        enqueue_at interval.seconds.from_now, *args\n+      end\n+\n+      # Enqueue a job to be performed at an explicit point in time.\n+      #\n+      #   enqueue_at(Date.tomorrow.midnight, \"mike\")\n+      #\n+      # Returns an instance of the job class queued with args available in\n+      # Job#arguments and the timestamp in Job#enqueue_at.\n+      def enqueue_at(timestamp, *args)\n+        new(args).tap do |job|\n+          job.enqueued_at = timestamp","path":"activejob/lib/active_job/enqueuing.rb","position":41,"original_position":41,"commit_id":"8147e22a4d09a159a2084fb7ac5c2cfa527a9422","original_commit_id":"8147e22a4d09a159a2084fb7ac5c2cfa527a9422","user":{"login":"cristianbica","id":150381,"avatar_url":"https://avatars.githubusercontent.com/u/150381?v=2","gravatar_id":"94464371b17302eadec74810ec480aaf","url":"https://api.github.com/users/cristianbica","html_url":"https://github.com/cristianbica","followers_url":"https://api.github.com/users/cristianbica/followers","following_url":"https://api.github.com/users/cristianbica/following{/other_user}","gists_url":"https://api.github.com/users/cristianbica/gists{/gist_id}","starred_url":"https://api.github.com/users/cristianbica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristianbica/subscriptions","organizations_url":"https://api.github.com/users/cristianbica/orgs","repos_url":"https://api.github.com/users/cristianbica/repos","events_url":"https://api.github.com/users/cristianbica/events{/privacy}","received_events_url":"https://api.github.com/users/cristianbica/received_events","type":"User","site_admin":false},"body":"Enqueue for later is supported by 3 adapters:\r\n- delayed_job: `Something.delay(run_at: 10.hours.from_now).a_method`\r\n- resque: `Resque.enqueue_at_with_queue job.queue_name, timestamp...`\r\n- sidekiq: `Sidekiq::Client.push at: timestamp, class:....`\r\n\r\nPretty obvious where the _at came from :)","created_at":"2014-08-15T10:30:55Z","updated_at":"2014-08-15T10:30:55Z","html_url":"https://github.com/rails/rails/pull/16485#discussion_r16287112","pull_request_url":"https://api.github.com/repos/rails/rails/pulls/16485","_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/comments/16287112"},"html":{"href":"https://github.com/rails/rails/pull/16485#discussion_r16287112"},"pull_request":{"href":"https://api.github.com/repos/rails/rails/pulls/16485"}}},"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/16485","id":19696757,"html_url":"https://github.com/rails/rails/pull/16485","diff_url":"https://github.com/rails/rails/pull/16485.diff","patch_url":"https://github.com/rails/rails/pull/16485.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/16485","number":16485,"state":"open","locked":false,"title":"Integrate ActiveJob / DeliverLater / GlobalID with Rails","user":{"login":"dhh","id":2741,"avatar_url":"https://avatars.githubusercontent.com/u/2741?v=2","gravatar_id":"ed9635566b34ade32274f510f0f9a6d2","url":"https://api.github.com/users/dhh","html_url":"https://github.com/dhh","followers_url":"https://api.github.com/users/dhh/followers","following_url":"https://api.github.com/users/dhh/following{/other_user}","gists_url":"https://api.github.com/users/dhh/gists{/gist_id}","starred_url":"https://api.github.com/users/dhh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhh/subscriptions","organizations_url":"https://api.github.com/users/dhh/orgs","repos_url":"https://api.github.com/users/dhh/repos","events_url":"https://api.github.com/users/dhh/events{/privacy}","received_events_url":"https://api.github.com/users/dhh/received_events","type":"User","site_admin":false},"body":"WIP.","created_at":"2014-08-12T23:25:32Z","updated_at":"2014-08-15T10:30:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0cd39c3e105c90222b2cbb4ce817f39eb63e5445","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rails/rails/pulls/16485/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/16485/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments/{number}","comments_url":"https://api.github.com/repos/rails/rails/issues/16485/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/8147e22a4d09a159a2084fb7ac5c2cfa527a9422","head":{"label":"seuros:activejob","ref":"activejob","sha":"8147e22a4d09a159a2084fb7ac5c2cfa527a9422","user":{"login":"seuros","id":2394703,"avatar_url":"https://avatars.githubusercontent.com/u/2394703?v=2","gravatar_id":"e3f2c4402c93ec006f9c5218a4c7bab2","url":"https://api.github.com/users/seuros","html_url":"https://github.com/seuros","followers_url":"https://api.github.com/users/seuros/followers","following_url":"https://api.github.com/users/seuros/following{/other_user}","gists_url":"https://api.github.com/users/seuros/gists{/gist_id}","starred_url":"https://api.github.com/users/seuros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seuros/subscriptions","organizations_url":"https://api.github.com/users/seuros/orgs","repos_url":"https://api.github.com/users/seuros/repos","events_url":"https://api.github.com/users/seuros/events{/privacy}","received_events_url":"https://api.github.com/users/seuros/received_events","type":"User","site_admin":false},"repo":{"id":19354643,"name":"rails","full_name":"seuros/rails","owner":{"login":"seuros","id":2394703,"avatar_url":"https://avatars.githubusercontent.com/u/2394703?v=2","gravatar_id":"e3f2c4402c93ec006f9c5218a4c7bab2","url":"https://api.github.com/users/seuros","html_url":"https://github.com/seuros","followers_url":"https://api.github.com/users/seuros/followers","following_url":"https://api.github.com/users/seuros/following{/other_user}","gists_url":"https://api.github.com/users/seuros/gists{/gist_id}","starred_url":"https://api.github.com/users/seuros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seuros/subscriptions","organizations_url":"https://api.github.com/users/seuros/orgs","repos_url":"https://api.github.com/users/seuros/repos","events_url":"https://api.github.com/users/seuros/events{/privacy}","received_events_url":"https://api.github.com/users/seuros/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/seuros/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/seuros/rails","forks_url":"https://api.github.com/repos/seuros/rails/forks","keys_url":"https://api.github.com/repos/seuros/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seuros/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seuros/rails/teams","hooks_url":"https://api.github.com/repos/seuros/rails/hooks","issue_events_url":"https://api.github.com/repos/seuros/rails/issues/events{/number}","events_url":"https://api.github.com/repos/seuros/rails/events","assignees_url":"https://api.github.com/repos/seuros/rails/assignees{/user}","branches_url":"https://api.github.com/repos/seuros/rails/branches{/branch}","tags_url":"https://api.github.com/repos/seuros/rails/tags","blobs_url":"https://api.github.com/repos/seuros/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seuros/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seuros/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/seuros/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seuros/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/seuros/rails/languages","stargazers_url":"https://api.github.com/repos/seuros/rails/stargazers","contributors_url":"https://api.github.com/repos/seuros/rails/contributors","subscribers_url":"https://api.github.com/repos/seuros/rails/subscribers","subscription_url":"https://api.github.com/repos/seuros/rails/subscription","commits_url":"https://api.github.com/repos/seuros/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/seuros/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/seuros/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/seuros/rails/issues/comments/{number}","contents_url":"https://api.github.com/repos/seuros/rails/contents/{+path}","compare_url":"https://api.github.com/repos/seuros/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seuros/rails/merges","archive_url":"https://api.github.com/repos/seuros/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seuros/rails/downloads","issues_url":"https://api.github.com/repos/seuros/rails/issues{/number}","pulls_url":"https://api.github.com/repos/seuros/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/seuros/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/seuros/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seuros/rails/labels{/name}","releases_url":"https://api.github.com/repos/seuros/rails/releases{/id}","created_at":"2014-05-01T19:09:16Z","updated_at":"2014-08-12T10:33:26Z","pushed_at":"2014-08-14T22:54:56Z","git_url":"git://github.com/seuros/rails.git","ssh_url":"git@github.com:seuros/rails.git","clone_url":"https://github.com/seuros/rails.git","svn_url":"https://github.com/seuros/rails","homepage":"http://rubyonrails.org","size":117351,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"rails:master","ref":"master","sha":"dfc3f8831189ca762b942571182228bd2d37ac53","user":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=2","gravatar_id":"30f39a09e233e8369dddf6feb4be0308","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":8514,"name":"rails","full_name":"rails/rails","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=2","gravatar_id":"30f39a09e233e8369dddf6feb4be0308","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/rails","description":"Ruby on Rails","fork":false,"url":"https://api.github.com/repos/rails/rails","forks_url":"https://api.github.com/repos/rails/rails/forks","keys_url":"https://api.github.com/repos/rails/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/rails/teams","hooks_url":"https://api.github.com/repos/rails/rails/hooks","issue_events_url":"https://api.github.com/repos/rails/rails/issues/events{/number}","events_url":"https://api.github.com/repos/rails/rails/events","assignees_url":"https://api.github.com/repos/rails/rails/assignees{/user}","branches_url":"https://api.github.com/repos/rails/rails/branches{/branch}","tags_url":"https://api.github.com/repos/rails/rails/tags","blobs_url":"https://api.github.com/repos/rails/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/rails/languages","stargazers_url":"https://api.github.com/repos/rails/rails/stargazers","contributors_url":"https://api.github.com/repos/rails/rails/contributors","subscribers_url":"https://api.github.com/repos/rails/rails/subscribers","subscription_url":"https://api.github.com/repos/rails/rails/subscription","commits_url":"https://api.github.com/repos/rails/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/rails/issues/comments/{number}","contents_url":"https://api.github.com/repos/rails/rails/contents/{+path}","compare_url":"https://api.github.com/repos/rails/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/rails/merges","archive_url":"https://api.github.com/repos/rails/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/rails/downloads","issues_url":"https://api.github.com/repos/rails/rails/issues{/number}","pulls_url":"https://api.github.com/repos/rails/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/rails/labels{/name}","releases_url":"https://api.github.com/repos/rails/rails/releases{/id}","created_at":"2008-04-11T02:19:47Z","updated_at":"2014-08-15T07:09:28Z","pushed_at":"2014-08-15T08:03:57Z","git_url":"git://github.com/rails/rails.git","ssh_url":"git@github.com:rails/rails.git","clone_url":"https://github.com/rails/rails.git","svn_url":"https://github.com/rails/rails","homepage":"http://rubyonrails.org","size":360893,"stargazers_count":22841,"watchers_count":22841,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"forks_count":8581,"mirror_url":null,"open_issues_count":690,"forks":8581,"open_issues":690,"watchers":22841,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/16485"},"html":{"href":"https://github.com/rails/rails/pull/16485"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/16485"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/16485/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/16485/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/16485/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/8147e22a4d09a159a2084fb7ac5c2cfa527a9422"}}}}