{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/pulls/3","id":29836243,"html_url":"https://github.com/xdbr/App-OS-Detect-MachineCores/pull/3","diff_url":"https://github.com/xdbr/App-OS-Detect-MachineCores/pull/3.diff","patch_url":"https://github.com/xdbr/App-OS-Detect-MachineCores/pull/3.patch","issue_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/issues/3","number":3,"state":"open","locked":false,"title":"Support more oses (WIP)","user":{"login":"jbarrett","id":444449,"avatar_url":"https://avatars.githubusercontent.com/u/444449?v=3","gravatar_id":"","url":"https://api.github.com/users/jbarrett","html_url":"https://github.com/jbarrett","followers_url":"https://api.github.com/users/jbarrett/followers","following_url":"https://api.github.com/users/jbarrett/following{/other_user}","gists_url":"https://api.github.com/users/jbarrett/gists{/gist_id}","starred_url":"https://api.github.com/users/jbarrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbarrett/subscriptions","organizations_url":"https://api.github.com/users/jbarrett/orgs","repos_url":"https://api.github.com/users/jbarrett/repos","events_url":"https://api.github.com/users/jbarrett/events{/privacy}","received_events_url":"https://api.github.com/users/jbarrett/received_events","type":"User","site_admin":false},"body":"Hi,\r\n\r\nI was assigned this for Feb in the PR challenge: \r\n\r\nhttp://blogs.perl.org/users/neilb/2014/12/take-the-2015-cpan-pull-request-challenge.html\r\n\r\nSo, this PR attempts to broaden the OS support. The `POSIX::sysconf` call should work on basically any *nix. If sysconf fails or we know it's not available, we fall back to a system-specific command to get num cores from /proc, environment, etc.\r\n\r\nTODO:\r\n\r\n- Check out robustness of sysconf across any platforms I can get my hands on.\r\n- Create more fallbacks (multiple per-OS?).\r\n- Count processors online vs processors configured?\r\n\r\nI'm opening the PR at this stage to find out whether you like the look of the changes or not - if not, I'll back off. If so (or if I hear nothing), I'll continue :)\r\n\r\nThanks!","created_at":"2015-02-23T19:14:08Z","updated_at":"2015-02-23T19:14:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/pulls/3/commits","review_comments_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/pulls/3/comments","review_comment_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/issues/3/comments","statuses_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/statuses/097704338ecfe04632b3a941c22744aa82b98c00","head":{"label":"jbarrett:support-more-oses","ref":"support-more-oses","sha":"097704338ecfe04632b3a941c22744aa82b98c00","user":{"login":"jbarrett","id":444449,"avatar_url":"https://avatars.githubusercontent.com/u/444449?v=3","gravatar_id":"","url":"https://api.github.com/users/jbarrett","html_url":"https://github.com/jbarrett","followers_url":"https://api.github.com/users/jbarrett/followers","following_url":"https://api.github.com/users/jbarrett/following{/other_user}","gists_url":"https://api.github.com/users/jbarrett/gists{/gist_id}","starred_url":"https://api.github.com/users/jbarrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbarrett/subscriptions","organizations_url":"https://api.github.com/users/jbarrett/orgs","repos_url":"https://api.github.com/users/jbarrett/repos","events_url":"https://api.github.com/users/jbarrett/events{/privacy}","received_events_url":"https://api.github.com/users/jbarrett/received_events","type":"User","site_admin":false},"repo":{"id":30241601,"name":"App-OS-Detect-MachineCores","full_name":"jbarrett/App-OS-Detect-MachineCores","owner":{"login":"jbarrett","id":444449,"avatar_url":"https://avatars.githubusercontent.com/u/444449?v=3","gravatar_id":"","url":"https://api.github.com/users/jbarrett","html_url":"https://github.com/jbarrett","followers_url":"https://api.github.com/users/jbarrett/followers","following_url":"https://api.github.com/users/jbarrett/following{/other_user}","gists_url":"https://api.github.com/users/jbarrett/gists{/gist_id}","starred_url":"https://api.github.com/users/jbarrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbarrett/subscriptions","organizations_url":"https://api.github.com/users/jbarrett/orgs","repos_url":"https://api.github.com/users/jbarrett/repos","events_url":"https://api.github.com/users/jbarrett/events{/privacy}","received_events_url":"https://api.github.com/users/jbarrett/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jbarrett/App-OS-Detect-MachineCores","description":"simple app to detect the number of cores on your machine (os-independent)","fork":true,"url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores","forks_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/forks","keys_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/teams","hooks_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/hooks","issue_events_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/issues/events{/number}","events_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/events","assignees_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/assignees{/user}","branches_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/branches{/branch}","tags_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/tags","blobs_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/git/refs{/sha}","trees_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/statuses/{sha}","languages_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/languages","stargazers_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/stargazers","contributors_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/contributors","subscribers_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/subscribers","subscription_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/subscription","commits_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/commits{/sha}","git_commits_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/git/commits{/sha}","comments_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/comments{/number}","issue_comment_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/issues/comments{/number}","contents_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/contents/{+path}","compare_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/merges","archive_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/downloads","issues_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/issues{/number}","pulls_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/pulls{/number}","milestones_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/milestones{/number}","notifications_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/labels{/name}","releases_url":"https://api.github.com/repos/jbarrett/App-OS-Detect-MachineCores/releases{/id}","created_at":"2015-02-03T12:29:17Z","updated_at":"2015-02-03T12:29:17Z","pushed_at":"2015-02-10T09:31:00Z","git_url":"git://github.com/jbarrett/App-OS-Detect-MachineCores.git","ssh_url":"git@github.com:jbarrett/App-OS-Detect-MachineCores.git","clone_url":"https://github.com/jbarrett/App-OS-Detect-MachineCores.git","svn_url":"https://github.com/jbarrett/App-OS-Detect-MachineCores","homepage":null,"size":101,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"xdbr:master","ref":"master","sha":"a20049bc34ae215981208c23596447299d5bbbd8","user":{"login":"xdbr","id":541783,"avatar_url":"https://avatars.githubusercontent.com/u/541783?v=3","gravatar_id":"","url":"https://api.github.com/users/xdbr","html_url":"https://github.com/xdbr","followers_url":"https://api.github.com/users/xdbr/followers","following_url":"https://api.github.com/users/xdbr/following{/other_user}","gists_url":"https://api.github.com/users/xdbr/gists{/gist_id}","starred_url":"https://api.github.com/users/xdbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xdbr/subscriptions","organizations_url":"https://api.github.com/users/xdbr/orgs","repos_url":"https://api.github.com/users/xdbr/repos","events_url":"https://api.github.com/users/xdbr/events{/privacy}","received_events_url":"https://api.github.com/users/xdbr/received_events","type":"User","site_admin":false},"repo":{"id":13071065,"name":"App-OS-Detect-MachineCores","full_name":"xdbr/App-OS-Detect-MachineCores","owner":{"login":"xdbr","id":541783,"avatar_url":"https://avatars.githubusercontent.com/u/541783?v=3","gravatar_id":"","url":"https://api.github.com/users/xdbr","html_url":"https://github.com/xdbr","followers_url":"https://api.github.com/users/xdbr/followers","following_url":"https://api.github.com/users/xdbr/following{/other_user}","gists_url":"https://api.github.com/users/xdbr/gists{/gist_id}","starred_url":"https://api.github.com/users/xdbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xdbr/subscriptions","organizations_url":"https://api.github.com/users/xdbr/orgs","repos_url":"https://api.github.com/users/xdbr/repos","events_url":"https://api.github.com/users/xdbr/events{/privacy}","received_events_url":"https://api.github.com/users/xdbr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xdbr/App-OS-Detect-MachineCores","description":"simple app to detect the number of cores on your machine (os-independent)","fork":false,"url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores","forks_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/forks","keys_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/teams","hooks_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/hooks","issue_events_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/issues/events{/number}","events_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/events","assignees_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/assignees{/user}","branches_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/branches{/branch}","tags_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/tags","blobs_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/git/refs{/sha}","trees_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/statuses/{sha}","languages_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/languages","stargazers_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/stargazers","contributors_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/contributors","subscribers_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/subscribers","subscription_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/subscription","commits_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/commits{/sha}","git_commits_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/git/commits{/sha}","comments_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/comments{/number}","issue_comment_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/issues/comments{/number}","contents_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/contents/{+path}","compare_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/merges","archive_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/downloads","issues_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/issues{/number}","pulls_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/pulls{/number}","milestones_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/milestones{/number}","notifications_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/labels{/name}","releases_url":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/releases{/id}","created_at":"2013-09-24T16:59:56Z","updated_at":"2015-01-01T22:15:34Z","pushed_at":"2015-01-01T22:15:34Z","git_url":"git://github.com/xdbr/App-OS-Detect-MachineCores.git","ssh_url":"git@github.com:xdbr/App-OS-Detect-MachineCores.git","clone_url":"https://github.com/xdbr/App-OS-Detect-MachineCores.git","svn_url":"https://github.com/xdbr/App-OS-Detect-MachineCores","homepage":null,"size":144,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/pulls/3"},"html":{"href":"https://github.com/xdbr/App-OS-Detect-MachineCores/pull/3"},"issue":{"href":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/issues/3"},"comments":{"href":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/xdbr/App-OS-Detect-MachineCores/statuses/097704338ecfe04632b3a941c22744aa82b98c00"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":36,"deletions":3,"changed_files":1}}