{"action":"created","comment":{"url":"https://api.github.com/repos/trema/trema/pulls/comments/28124265","id":28124265,"diff_hunk":"@@ -1,52 +1,13 @@\n-# encoding: utf-8\n-#\n-# Copyright (C) 2008-2013 NEC Corporation\n-#\n-# This program is free software; you can redistribute it and/or modify\n-# it under the terms of the GNU General Public License, version 2, as\n-# published by the Free Software Foundation.\n-#\n-# This program is distributed in the hope that it will be useful,\n-# but WITHOUT ANY WARRANTY; without even the implied warranty of\n-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n-# GNU General Public License for more details.\n-#\n-# You should have received a copy of the GNU General Public License along\n-# with this program; if not, write to the Free Software Foundation, Inc.,\n-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n-#\n-\n-require 'trema/path'\n-\n-def wait_until_all_pid_files_are_deleted(timeout = 12)\n-  elapsed = 0\n-  loop do\n-    fail 'Failed to clean up remaining processes.' if elapsed > timeout\n-    break if Dir.glob(File.join(Trema.pid, '*.pid')).empty?\n-    sleep 0.1\n-    elapsed += 0.1\n-  end\n-  sleep 1\n-end\n-\n Before do\n-  @aruba_timeout_seconds = 10\n-  run 'trema killall'\n-  wait_until_all_pid_files_are_deleted\n+  @aruba_timeout_seconds = 5\n end\n \n-Before('@slow_process') do\n-  @aruba_io_wait_seconds = 1\n+Before('@sudo') do","path":"features/support/hooks.rb","position":41,"original_position":41,"commit_id":"78a44cd58aa2ee9c096df77bad5970de8f11a559","original_commit_id":"78a44cd58aa2ee9c096df77bad5970de8f11a559","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-04-10T06:17:53Z","updated_at":"2015-04-10T06:17:53Z","html_url":"https://github.com/trema/trema/pull/380#discussion_r28124265","pull_request_url":"https://api.github.com/repos/trema/trema/pulls/380","_links":{"self":{"href":"https://api.github.com/repos/trema/trema/pulls/comments/28124265"},"html":{"href":"https://github.com/trema/trema/pull/380#discussion_r28124265"},"pull_request":{"href":"https://api.github.com/repos/trema/trema/pulls/380"}}},"pull_request":{"url":"https://api.github.com/repos/trema/trema/pulls/380","id":33020710,"html_url":"https://github.com/trema/trema/pull/380","diff_url":"https://github.com/trema/trema/pull/380.diff","patch_url":"https://github.com/trema/trema/pull/380.patch","issue_url":"https://api.github.com/repos/trema/trema/issues/380","number":380,"state":"open","locked":false,"title":"Pure-Ruby Trema (next version)","user":{"login":"yasuhito","id":8810,"avatar_url":"https://avatars.githubusercontent.com/u/8810?v=3","gravatar_id":"","url":"https://api.github.com/users/yasuhito","html_url":"https://github.com/yasuhito","followers_url":"https://api.github.com/users/yasuhito/followers","following_url":"https://api.github.com/users/yasuhito/following{/other_user}","gists_url":"https://api.github.com/users/yasuhito/gists{/gist_id}","starred_url":"https://api.github.com/users/yasuhito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yasuhito/subscriptions","organizations_url":"https://api.github.com/users/yasuhito/orgs","repos_url":"https://api.github.com/users/yasuhito/repos","events_url":"https://api.github.com/users/yasuhito/events{/privacy}","received_events_url":"https://api.github.com/users/yasuhito/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-10T06:17:45Z","updated_at":"2015-04-10T06:17:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"14eaa46c13e45625c7b58ac209b92b7c6cab93ee","assignee":{"login":"yasuhito","id":8810,"avatar_url":"https://avatars.githubusercontent.com/u/8810?v=3","gravatar_id":"","url":"https://api.github.com/users/yasuhito","html_url":"https://github.com/yasuhito","followers_url":"https://api.github.com/users/yasuhito/followers","following_url":"https://api.github.com/users/yasuhito/following{/other_user}","gists_url":"https://api.github.com/users/yasuhito/gists{/gist_id}","starred_url":"https://api.github.com/users/yasuhito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yasuhito/subscriptions","organizations_url":"https://api.github.com/users/yasuhito/orgs","repos_url":"https://api.github.com/users/yasuhito/repos","events_url":"https://api.github.com/users/yasuhito/events{/privacy}","received_events_url":"https://api.github.com/users/yasuhito/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/trema/trema/milestones/2","html_url":"https://github.com/trema/trema/milestones/0.5.0","labels_url":"https://api.github.com/repos/trema/trema/milestones/2/labels","id":662677,"number":2,"title":"0.5.0","description":"","creator":{"login":"yasuhito","id":8810,"avatar_url":"https://avatars.githubusercontent.com/u/8810?v=3","gravatar_id":"","url":"https://api.github.com/users/yasuhito","html_url":"https://github.com/yasuhito","followers_url":"https://api.github.com/users/yasuhito/followers","following_url":"https://api.github.com/users/yasuhito/following{/other_user}","gists_url":"https://api.github.com/users/yasuhito/gists{/gist_id}","starred_url":"https://api.github.com/users/yasuhito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yasuhito/subscriptions","organizations_url":"https://api.github.com/users/yasuhito/orgs","repos_url":"https://api.github.com/users/yasuhito/repos","events_url":"https://api.github.com/users/yasuhito/events{/privacy}","received_events_url":"https://api.github.com/users/yasuhito/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2014-05-18T23:29:20Z","updated_at":"2015-04-10T06:17:45Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/trema/trema/pulls/380/commits","review_comments_url":"https://api.github.com/repos/trema/trema/pulls/380/comments","review_comment_url":"https://api.github.com/repos/trema/trema/pulls/comments{/number}","comments_url":"https://api.github.com/repos/trema/trema/issues/380/comments","statuses_url":"https://api.github.com/repos/trema/trema/statuses/78a44cd58aa2ee9c096df77bad5970de8f11a559","head":{"label":"trema:feature/trema_ruby","ref":"feature/trema_ruby","sha":"78a44cd58aa2ee9c096df77bad5970de8f11a559","user":{"login":"trema","id":696690,"avatar_url":"https://avatars.githubusercontent.com/u/696690?v=3","gravatar_id":"","url":"https://api.github.com/users/trema","html_url":"https://github.com/trema","followers_url":"https://api.github.com/users/trema/followers","following_url":"https://api.github.com/users/trema/following{/other_user}","gists_url":"https://api.github.com/users/trema/gists{/gist_id}","starred_url":"https://api.github.com/users/trema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trema/subscriptions","organizations_url":"https://api.github.com/users/trema/orgs","repos_url":"https://api.github.com/users/trema/repos","events_url":"https://api.github.com/users/trema/events{/privacy}","received_events_url":"https://api.github.com/users/trema/received_events","type":"Organization","site_admin":false},"repo":{"id":1617268,"name":"trema","full_name":"trema/trema","owner":{"login":"trema","id":696690,"avatar_url":"https://avatars.githubusercontent.com/u/696690?v=3","gravatar_id":"","url":"https://api.github.com/users/trema","html_url":"https://github.com/trema","followers_url":"https://api.github.com/users/trema/followers","following_url":"https://api.github.com/users/trema/following{/other_user}","gists_url":"https://api.github.com/users/trema/gists{/gist_id}","starred_url":"https://api.github.com/users/trema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trema/subscriptions","organizations_url":"https://api.github.com/users/trema/orgs","repos_url":"https://api.github.com/users/trema/repos","events_url":"https://api.github.com/users/trema/events{/privacy}","received_events_url":"https://api.github.com/users/trema/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/trema/trema","description":"Full-Stack OpenFlow Framework in Ruby and C","fork":false,"url":"https://api.github.com/repos/trema/trema","forks_url":"https://api.github.com/repos/trema/trema/forks","keys_url":"https://api.github.com/repos/trema/trema/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trema/trema/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trema/trema/teams","hooks_url":"https://api.github.com/repos/trema/trema/hooks","issue_events_url":"https://api.github.com/repos/trema/trema/issues/events{/number}","events_url":"https://api.github.com/repos/trema/trema/events","assignees_url":"https://api.github.com/repos/trema/trema/assignees{/user}","branches_url":"https://api.github.com/repos/trema/trema/branches{/branch}","tags_url":"https://api.github.com/repos/trema/trema/tags","blobs_url":"https://api.github.com/repos/trema/trema/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trema/trema/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trema/trema/git/refs{/sha}","trees_url":"https://api.github.com/repos/trema/trema/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trema/trema/statuses/{sha}","languages_url":"https://api.github.com/repos/trema/trema/languages","stargazers_url":"https://api.github.com/repos/trema/trema/stargazers","contributors_url":"https://api.github.com/repos/trema/trema/contributors","subscribers_url":"https://api.github.com/repos/trema/trema/subscribers","subscription_url":"https://api.github.com/repos/trema/trema/subscription","commits_url":"https://api.github.com/repos/trema/trema/commits{/sha}","git_commits_url":"https://api.github.com/repos/trema/trema/git/commits{/sha}","comments_url":"https://api.github.com/repos/trema/trema/comments{/number}","issue_comment_url":"https://api.github.com/repos/trema/trema/issues/comments{/number}","contents_url":"https://api.github.com/repos/trema/trema/contents/{+path}","compare_url":"https://api.github.com/repos/trema/trema/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trema/trema/merges","archive_url":"https://api.github.com/repos/trema/trema/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trema/trema/downloads","issues_url":"https://api.github.com/repos/trema/trema/issues{/number}","pulls_url":"https://api.github.com/repos/trema/trema/pulls{/number}","milestones_url":"https://api.github.com/repos/trema/trema/milestones{/number}","notifications_url":"https://api.github.com/repos/trema/trema/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trema/trema/labels{/name}","releases_url":"https://api.github.com/repos/trema/trema/releases{/id}","created_at":"2011-04-15T02:38:25Z","updated_at":"2015-04-09T02:08:41Z","pushed_at":"2015-04-10T06:17:46Z","git_url":"git://github.com/trema/trema.git","ssh_url":"git@github.com:trema/trema.git","clone_url":"https://github.com/trema/trema.git","svn_url":"https://github.com/trema/trema","homepage":"http://trema.github.com/trema/","size":24986,"stargazers_count":226,"watchers_count":226,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":75,"mirror_url":null,"open_issues_count":38,"forks":75,"open_issues":38,"watchers":226,"default_branch":"develop"}},"base":{"label":"trema:develop","ref":"develop","sha":"3e77cede34fad44c1b4170f1f5674994521c7cb2","user":{"login":"trema","id":696690,"avatar_url":"https://avatars.githubusercontent.com/u/696690?v=3","gravatar_id":"","url":"https://api.github.com/users/trema","html_url":"https://github.com/trema","followers_url":"https://api.github.com/users/trema/followers","following_url":"https://api.github.com/users/trema/following{/other_user}","gists_url":"https://api.github.com/users/trema/gists{/gist_id}","starred_url":"https://api.github.com/users/trema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trema/subscriptions","organizations_url":"https://api.github.com/users/trema/orgs","repos_url":"https://api.github.com/users/trema/repos","events_url":"https://api.github.com/users/trema/events{/privacy}","received_events_url":"https://api.github.com/users/trema/received_events","type":"Organization","site_admin":false},"repo":{"id":1617268,"name":"trema","full_name":"trema/trema","owner":{"login":"trema","id":696690,"avatar_url":"https://avatars.githubusercontent.com/u/696690?v=3","gravatar_id":"","url":"https://api.github.com/users/trema","html_url":"https://github.com/trema","followers_url":"https://api.github.com/users/trema/followers","following_url":"https://api.github.com/users/trema/following{/other_user}","gists_url":"https://api.github.com/users/trema/gists{/gist_id}","starred_url":"https://api.github.com/users/trema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trema/subscriptions","organizations_url":"https://api.github.com/users/trema/orgs","repos_url":"https://api.github.com/users/trema/repos","events_url":"https://api.github.com/users/trema/events{/privacy}","received_events_url":"https://api.github.com/users/trema/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/trema/trema","description":"Full-Stack OpenFlow Framework in Ruby and C","fork":false,"url":"https://api.github.com/repos/trema/trema","forks_url":"https://api.github.com/repos/trema/trema/forks","keys_url":"https://api.github.com/repos/trema/trema/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trema/trema/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trema/trema/teams","hooks_url":"https://api.github.com/repos/trema/trema/hooks","issue_events_url":"https://api.github.com/repos/trema/trema/issues/events{/number}","events_url":"https://api.github.com/repos/trema/trema/events","assignees_url":"https://api.github.com/repos/trema/trema/assignees{/user}","branches_url":"https://api.github.com/repos/trema/trema/branches{/branch}","tags_url":"https://api.github.com/repos/trema/trema/tags","blobs_url":"https://api.github.com/repos/trema/trema/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trema/trema/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trema/trema/git/refs{/sha}","trees_url":"https://api.github.com/repos/trema/trema/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trema/trema/statuses/{sha}","languages_url":"https://api.github.com/repos/trema/trema/languages","stargazers_url":"https://api.github.com/repos/trema/trema/stargazers","contributors_url":"https://api.github.com/repos/trema/trema/contributors","subscribers_url":"https://api.github.com/repos/trema/trema/subscribers","subscription_url":"https://api.github.com/repos/trema/trema/subscription","commits_url":"https://api.github.com/repos/trema/trema/commits{/sha}","git_commits_url":"https://api.github.com/repos/trema/trema/git/commits{/sha}","comments_url":"https://api.github.com/repos/trema/trema/comments{/number}","issue_comment_url":"https://api.github.com/repos/trema/trema/issues/comments{/number}","contents_url":"https://api.github.com/repos/trema/trema/contents/{+path}","compare_url":"https://api.github.com/repos/trema/trema/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trema/trema/merges","archive_url":"https://api.github.com/repos/trema/trema/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trema/trema/downloads","issues_url":"https://api.github.com/repos/trema/trema/issues{/number}","pulls_url":"https://api.github.com/repos/trema/trema/pulls{/number}","milestones_url":"https://api.github.com/repos/trema/trema/milestones{/number}","notifications_url":"https://api.github.com/repos/trema/trema/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trema/trema/labels{/name}","releases_url":"https://api.github.com/repos/trema/trema/releases{/id}","created_at":"2011-04-15T02:38:25Z","updated_at":"2015-04-09T02:08:41Z","pushed_at":"2015-04-10T06:17:46Z","git_url":"git://github.com/trema/trema.git","ssh_url":"git@github.com:trema/trema.git","clone_url":"https://github.com/trema/trema.git","svn_url":"https://github.com/trema/trema","homepage":"http://trema.github.com/trema/","size":24986,"stargazers_count":226,"watchers_count":226,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":75,"mirror_url":null,"open_issues_count":38,"forks":75,"open_issues":38,"watchers":226,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/trema/trema/pulls/380"},"html":{"href":"https://github.com/trema/trema/pull/380"},"issue":{"href":"https://api.github.com/repos/trema/trema/issues/380"},"comments":{"href":"https://api.github.com/repos/trema/trema/issues/380/comments"},"review_comments":{"href":"https://api.github.com/repos/trema/trema/pulls/380/comments"},"review_comment":{"href":"https://api.github.com/repos/trema/trema/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/trema/trema/pulls/380/commits"},"statuses":{"href":"https://api.github.com/repos/trema/trema/statuses/78a44cd58aa2ee9c096df77bad5970de8f11a559"}}}}