{"action":"closed","number":6,"pull_request":{"url":"https://api.github.com/repos/alice345/kozumeru/pulls/6","id":32881560,"html_url":"https://github.com/alice345/kozumeru/pull/6","diff_url":"https://github.com/alice345/kozumeru/pull/6.diff","patch_url":"https://github.com/alice345/kozumeru/pull/6.patch","issue_url":"https://api.github.com/repos/alice345/kozumeru/issues/6","number":6,"state":"closed","locked":false,"title":"cronで定期的にメイドさんのツイートを取得する","user":{"login":"alice345","id":5152601,"avatar_url":"https://avatars.githubusercontent.com/u/5152601?v=3","gravatar_id":"","url":"https://api.github.com/users/alice345","html_url":"https://github.com/alice345","followers_url":"https://api.github.com/users/alice345/followers","following_url":"https://api.github.com/users/alice345/following{/other_user}","gists_url":"https://api.github.com/users/alice345/gists{/gist_id}","starred_url":"https://api.github.com/users/alice345/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alice345/subscriptions","organizations_url":"https://api.github.com/users/alice345/orgs","repos_url":"https://api.github.com/users/alice345/repos","events_url":"https://api.github.com/users/alice345/events{/privacy}","received_events_url":"https://api.github.com/users/alice345/received_events","type":"User","site_admin":false},"body":"ref #5 \r\n@gaoch @kirikiriyamama\r\n\r\n## やったこと\r\n- `whenever`の`runner`を使って，TwitterAccountを持っているメイドさんのツイートを1時間に1回取得してくる機能の作成\r\n- 各カラムにユニークなindexの追加\r\n\r\n以上2点を行いました\r\n\r\n## 相談したいこと\r\nwheneverを導入したのですが，これを開発環境でどのように動作させていいかわかりません…\r\n現在，以下のようにwheneverを設定しています\r\n\r\n```\r\n$whenever -s 'environment=development' -w\r\n$whenever crontab -e\r\n=>\r\n[cron-to-get-tweet]\r\n0 * * * * /bin/bash -l -c 'cd /Users/Alice/work/kozumeru && bin/rails runner -e development '\\''Tweet.import_recent_tweet'\\'''\r\n```\r\n\r\n実際にこれが正常に動作しているかどうかを確認するためには，設定している時間だけ待てば(今回の場合は1時間)よいのでしょうか...？","created_at":"2015-04-08T17:12:51Z","updated_at":"2015-04-15T16:34:00Z","closed_at":"2015-04-15T16:34:00Z","merged_at":null,"merge_commit_sha":"24af00aa1f4cfd61fbb280e749043e83aed9a227","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alice345/kozumeru/pulls/6/commits","review_comments_url":"https://api.github.com/repos/alice345/kozumeru/pulls/6/comments","review_comment_url":"https://api.github.com/repos/alice345/kozumeru/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alice345/kozumeru/issues/6/comments","statuses_url":"https://api.github.com/repos/alice345/kozumeru/statuses/4677bf7657beb66e5b02acc607a50ab2c36c5bdd","head":{"label":"alice345:cron-to-get-tweet","ref":"cron-to-get-tweet","sha":"4677bf7657beb66e5b02acc607a50ab2c36c5bdd","user":{"login":"alice345","id":5152601,"avatar_url":"https://avatars.githubusercontent.com/u/5152601?v=3","gravatar_id":"","url":"https://api.github.com/users/alice345","html_url":"https://github.com/alice345","followers_url":"https://api.github.com/users/alice345/followers","following_url":"https://api.github.com/users/alice345/following{/other_user}","gists_url":"https://api.github.com/users/alice345/gists{/gist_id}","starred_url":"https://api.github.com/users/alice345/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alice345/subscriptions","organizations_url":"https://api.github.com/users/alice345/orgs","repos_url":"https://api.github.com/users/alice345/repos","events_url":"https://api.github.com/users/alice345/events{/privacy}","received_events_url":"https://api.github.com/users/alice345/received_events","type":"User","site_admin":false},"repo":{"id":33018940,"name":"kozumeru","full_name":"alice345/kozumeru","owner":{"login":"alice345","id":5152601,"avatar_url":"https://avatars.githubusercontent.com/u/5152601?v=3","gravatar_id":"","url":"https://api.github.com/users/alice345","html_url":"https://github.com/alice345","followers_url":"https://api.github.com/users/alice345/followers","following_url":"https://api.github.com/users/alice345/following{/other_user}","gists_url":"https://api.github.com/users/alice345/gists{/gist_id}","starred_url":"https://api.github.com/users/alice345/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alice345/subscriptions","organizations_url":"https://api.github.com/users/alice345/orgs","repos_url":"https://api.github.com/users/alice345/repos","events_url":"https://api.github.com/users/alice345/events{/privacy}","received_events_url":"https://api.github.com/users/alice345/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alice345/kozumeru","description":"Maid Stalker Tool","fork":false,"url":"https://api.github.com/repos/alice345/kozumeru","forks_url":"https://api.github.com/repos/alice345/kozumeru/forks","keys_url":"https://api.github.com/repos/alice345/kozumeru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alice345/kozumeru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alice345/kozumeru/teams","hooks_url":"https://api.github.com/repos/alice345/kozumeru/hooks","issue_events_url":"https://api.github.com/repos/alice345/kozumeru/issues/events{/number}","events_url":"https://api.github.com/repos/alice345/kozumeru/events","assignees_url":"https://api.github.com/repos/alice345/kozumeru/assignees{/user}","branches_url":"https://api.github.com/repos/alice345/kozumeru/branches{/branch}","tags_url":"https://api.github.com/repos/alice345/kozumeru/tags","blobs_url":"https://api.github.com/repos/alice345/kozumeru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alice345/kozumeru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alice345/kozumeru/git/refs{/sha}","trees_url":"https://api.github.com/repos/alice345/kozumeru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alice345/kozumeru/statuses/{sha}","languages_url":"https://api.github.com/repos/alice345/kozumeru/languages","stargazers_url":"https://api.github.com/repos/alice345/kozumeru/stargazers","contributors_url":"https://api.github.com/repos/alice345/kozumeru/contributors","subscribers_url":"https://api.github.com/repos/alice345/kozumeru/subscribers","subscription_url":"https://api.github.com/repos/alice345/kozumeru/subscription","commits_url":"https://api.github.com/repos/alice345/kozumeru/commits{/sha}","git_commits_url":"https://api.github.com/repos/alice345/kozumeru/git/commits{/sha}","comments_url":"https://api.github.com/repos/alice345/kozumeru/comments{/number}","issue_comment_url":"https://api.github.com/repos/alice345/kozumeru/issues/comments{/number}","contents_url":"https://api.github.com/repos/alice345/kozumeru/contents/{+path}","compare_url":"https://api.github.com/repos/alice345/kozumeru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alice345/kozumeru/merges","archive_url":"https://api.github.com/repos/alice345/kozumeru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alice345/kozumeru/downloads","issues_url":"https://api.github.com/repos/alice345/kozumeru/issues{/number}","pulls_url":"https://api.github.com/repos/alice345/kozumeru/pulls{/number}","milestones_url":"https://api.github.com/repos/alice345/kozumeru/milestones{/number}","notifications_url":"https://api.github.com/repos/alice345/kozumeru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alice345/kozumeru/labels{/name}","releases_url":"https://api.github.com/repos/alice345/kozumeru/releases{/id}","created_at":"2015-03-28T02:57:24Z","updated_at":"2015-04-05T15:55:01Z","pushed_at":"2015-04-15T14:43:58Z","git_url":"git://github.com/alice345/kozumeru.git","ssh_url":"git@github.com:alice345/kozumeru.git","clone_url":"https://github.com/alice345/kozumeru.git","svn_url":"https://github.com/alice345/kozumeru","homepage":null,"size":248,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"alice345:master","ref":"master","sha":"99e9be38c13018dfd8e7e4e865a5b095d6ddff90","user":{"login":"alice345","id":5152601,"avatar_url":"https://avatars.githubusercontent.com/u/5152601?v=3","gravatar_id":"","url":"https://api.github.com/users/alice345","html_url":"https://github.com/alice345","followers_url":"https://api.github.com/users/alice345/followers","following_url":"https://api.github.com/users/alice345/following{/other_user}","gists_url":"https://api.github.com/users/alice345/gists{/gist_id}","starred_url":"https://api.github.com/users/alice345/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alice345/subscriptions","organizations_url":"https://api.github.com/users/alice345/orgs","repos_url":"https://api.github.com/users/alice345/repos","events_url":"https://api.github.com/users/alice345/events{/privacy}","received_events_url":"https://api.github.com/users/alice345/received_events","type":"User","site_admin":false},"repo":{"id":33018940,"name":"kozumeru","full_name":"alice345/kozumeru","owner":{"login":"alice345","id":5152601,"avatar_url":"https://avatars.githubusercontent.com/u/5152601?v=3","gravatar_id":"","url":"https://api.github.com/users/alice345","html_url":"https://github.com/alice345","followers_url":"https://api.github.com/users/alice345/followers","following_url":"https://api.github.com/users/alice345/following{/other_user}","gists_url":"https://api.github.com/users/alice345/gists{/gist_id}","starred_url":"https://api.github.com/users/alice345/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alice345/subscriptions","organizations_url":"https://api.github.com/users/alice345/orgs","repos_url":"https://api.github.com/users/alice345/repos","events_url":"https://api.github.com/users/alice345/events{/privacy}","received_events_url":"https://api.github.com/users/alice345/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alice345/kozumeru","description":"Maid Stalker Tool","fork":false,"url":"https://api.github.com/repos/alice345/kozumeru","forks_url":"https://api.github.com/repos/alice345/kozumeru/forks","keys_url":"https://api.github.com/repos/alice345/kozumeru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alice345/kozumeru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alice345/kozumeru/teams","hooks_url":"https://api.github.com/repos/alice345/kozumeru/hooks","issue_events_url":"https://api.github.com/repos/alice345/kozumeru/issues/events{/number}","events_url":"https://api.github.com/repos/alice345/kozumeru/events","assignees_url":"https://api.github.com/repos/alice345/kozumeru/assignees{/user}","branches_url":"https://api.github.com/repos/alice345/kozumeru/branches{/branch}","tags_url":"https://api.github.com/repos/alice345/kozumeru/tags","blobs_url":"https://api.github.com/repos/alice345/kozumeru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alice345/kozumeru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alice345/kozumeru/git/refs{/sha}","trees_url":"https://api.github.com/repos/alice345/kozumeru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alice345/kozumeru/statuses/{sha}","languages_url":"https://api.github.com/repos/alice345/kozumeru/languages","stargazers_url":"https://api.github.com/repos/alice345/kozumeru/stargazers","contributors_url":"https://api.github.com/repos/alice345/kozumeru/contributors","subscribers_url":"https://api.github.com/repos/alice345/kozumeru/subscribers","subscription_url":"https://api.github.com/repos/alice345/kozumeru/subscription","commits_url":"https://api.github.com/repos/alice345/kozumeru/commits{/sha}","git_commits_url":"https://api.github.com/repos/alice345/kozumeru/git/commits{/sha}","comments_url":"https://api.github.com/repos/alice345/kozumeru/comments{/number}","issue_comment_url":"https://api.github.com/repos/alice345/kozumeru/issues/comments{/number}","contents_url":"https://api.github.com/repos/alice345/kozumeru/contents/{+path}","compare_url":"https://api.github.com/repos/alice345/kozumeru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alice345/kozumeru/merges","archive_url":"https://api.github.com/repos/alice345/kozumeru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alice345/kozumeru/downloads","issues_url":"https://api.github.com/repos/alice345/kozumeru/issues{/number}","pulls_url":"https://api.github.com/repos/alice345/kozumeru/pulls{/number}","milestones_url":"https://api.github.com/repos/alice345/kozumeru/milestones{/number}","notifications_url":"https://api.github.com/repos/alice345/kozumeru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alice345/kozumeru/labels{/name}","releases_url":"https://api.github.com/repos/alice345/kozumeru/releases{/id}","created_at":"2015-03-28T02:57:24Z","updated_at":"2015-04-05T15:55:01Z","pushed_at":"2015-04-15T14:43:58Z","git_url":"git://github.com/alice345/kozumeru.git","ssh_url":"git@github.com:alice345/kozumeru.git","clone_url":"https://github.com/alice345/kozumeru.git","svn_url":"https://github.com/alice345/kozumeru","homepage":null,"size":248,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alice345/kozumeru/pulls/6"},"html":{"href":"https://github.com/alice345/kozumeru/pull/6"},"issue":{"href":"https://api.github.com/repos/alice345/kozumeru/issues/6"},"comments":{"href":"https://api.github.com/repos/alice345/kozumeru/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/alice345/kozumeru/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/alice345/kozumeru/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alice345/kozumeru/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/alice345/kozumeru/statuses/4677bf7657beb66e5b02acc607a50ab2c36c5bdd"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":28,"review_comments":7,"commits":51,"additions":11188,"deletions":98,"changed_files":50}}