{"action":"created","comment":{"url":"https://api.github.com/repos/puppetlabs/leatherman/pulls/comments/34819822","id":34819822,"diff_hunk":"@@ -0,0 +1,509 @@\n+#include <leatherman/ruby/api.hpp>\n+#include <leatherman/util/environment.hpp>\n+#include <leatherman/execution/execution.hpp>\n+#include <leatherman/logging/logging.hpp>\n+#include <boost/algorithm/string.hpp>\n+#include <boost/filesystem/path.hpp>\n+#include <boost/filesystem/operations.hpp>\n+#include <sstream>\n+\n+using namespace std;\n+using namespace leatherman::util;\n+using namespace leatherman::execution;\n+using namespace boost::filesystem;\n+\n+namespace lth_lib = leatherman::dynamic_library;","path":"ruby/src/api.cc","position":15,"original_position":15,"commit_id":"3b8c5b29c2e9fda3dd12b90a566a7e8b1d90c471","original_commit_id":"3b8c5b29c2e9fda3dd12b90a566a7e8b1d90c471","user":{"login":"Magisus","id":839145,"avatar_url":"https://avatars.githubusercontent.com/u/839145?v=3","gravatar_id":"","url":"https://api.github.com/users/Magisus","html_url":"https://github.com/Magisus","followers_url":"https://api.github.com/users/Magisus/followers","following_url":"https://api.github.com/users/Magisus/following{/other_user}","gists_url":"https://api.github.com/users/Magisus/gists{/gist_id}","starred_url":"https://api.github.com/users/Magisus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Magisus/subscriptions","organizations_url":"https://api.github.com/users/Magisus/orgs","repos_url":"https://api.github.com/users/Magisus/repos","events_url":"https://api.github.com/users/Magisus/events{/privacy}","received_events_url":"https://api.github.com/users/Magisus/received_events","type":"User","site_admin":false},"body":"gcc does it too. `error: ‘dynamic_library’ does not name a type`.","created_at":"2015-07-16T18:18:29Z","updated_at":"2015-07-16T18:18:29Z","html_url":"https://github.com/puppetlabs/leatherman/pull/55#discussion_r34819822","pull_request_url":"https://api.github.com/repos/puppetlabs/leatherman/pulls/55","_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/leatherman/pulls/comments/34819822"},"html":{"href":"https://github.com/puppetlabs/leatherman/pull/55#discussion_r34819822"},"pull_request":{"href":"https://api.github.com/repos/puppetlabs/leatherman/pulls/55"}}},"pull_request":{"url":"https://api.github.com/repos/puppetlabs/leatherman/pulls/55","id":40078922,"html_url":"https://github.com/puppetlabs/leatherman/pull/55","diff_url":"https://github.com/puppetlabs/leatherman/pull/55.diff","patch_url":"https://github.com/puppetlabs/leatherman/pull/55.patch","issue_url":"https://api.github.com/repos/puppetlabs/leatherman/issues/55","number":55,"state":"open","locked":false,"title":"(LTH-15) Extract facter's Ruby VM hosting to Leatherman","user":{"login":"Magisus","id":839145,"avatar_url":"https://avatars.githubusercontent.com/u/839145?v=3","gravatar_id":"","url":"https://api.github.com/users/Magisus","html_url":"https://github.com/Magisus","followers_url":"https://api.github.com/users/Magisus/followers","following_url":"https://api.github.com/users/Magisus/following{/other_user}","gists_url":"https://api.github.com/users/Magisus/gists{/gist_id}","starred_url":"https://api.github.com/users/Magisus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Magisus/subscriptions","organizations_url":"https://api.github.com/users/Magisus/orgs","repos_url":"https://api.github.com/users/Magisus/repos","events_url":"https://api.github.com/users/Magisus/events{/privacy}","received_events_url":"https://api.github.com/users/Magisus/received_events","type":"User","site_admin":false},"body":"Moves facter's Ruby API to Leatherman.","created_at":"2015-07-15T22:57:33Z","updated_at":"2015-07-16T18:18:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a1995dd3bdb2708b0bfa53242de3ab4ecaa5fdd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/leatherman/pulls/55/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/leatherman/pulls/55/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/leatherman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/leatherman/issues/55/comments","statuses_url":"https://api.github.com/repos/puppetlabs/leatherman/statuses/3b8c5b29c2e9fda3dd12b90a566a7e8b1d90c471","head":{"label":"Magisus:ruby-api","ref":"ruby-api","sha":"3b8c5b29c2e9fda3dd12b90a566a7e8b1d90c471","user":{"login":"Magisus","id":839145,"avatar_url":"https://avatars.githubusercontent.com/u/839145?v=3","gravatar_id":"","url":"https://api.github.com/users/Magisus","html_url":"https://github.com/Magisus","followers_url":"https://api.github.com/users/Magisus/followers","following_url":"https://api.github.com/users/Magisus/following{/other_user}","gists_url":"https://api.github.com/users/Magisus/gists{/gist_id}","starred_url":"https://api.github.com/users/Magisus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Magisus/subscriptions","organizations_url":"https://api.github.com/users/Magisus/orgs","repos_url":"https://api.github.com/users/Magisus/repos","events_url":"https://api.github.com/users/Magisus/events{/privacy}","received_events_url":"https://api.github.com/users/Magisus/received_events","type":"User","site_admin":false},"repo":{"id":37147341,"name":"leatherman","full_name":"Magisus/leatherman","owner":{"login":"Magisus","id":839145,"avatar_url":"https://avatars.githubusercontent.com/u/839145?v=3","gravatar_id":"","url":"https://api.github.com/users/Magisus","html_url":"https://github.com/Magisus","followers_url":"https://api.github.com/users/Magisus/followers","following_url":"https://api.github.com/users/Magisus/following{/other_user}","gists_url":"https://api.github.com/users/Magisus/gists{/gist_id}","starred_url":"https://api.github.com/users/Magisus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Magisus/subscriptions","organizations_url":"https://api.github.com/users/Magisus/orgs","repos_url":"https://api.github.com/users/Magisus/repos","events_url":"https://api.github.com/users/Magisus/events{/privacy}","received_events_url":"https://api.github.com/users/Magisus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Magisus/leatherman","description":"A collection of C++ and CMake utility libraries.","fork":true,"url":"https://api.github.com/repos/Magisus/leatherman","forks_url":"https://api.github.com/repos/Magisus/leatherman/forks","keys_url":"https://api.github.com/repos/Magisus/leatherman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Magisus/leatherman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Magisus/leatherman/teams","hooks_url":"https://api.github.com/repos/Magisus/leatherman/hooks","issue_events_url":"https://api.github.com/repos/Magisus/leatherman/issues/events{/number}","events_url":"https://api.github.com/repos/Magisus/leatherman/events","assignees_url":"https://api.github.com/repos/Magisus/leatherman/assignees{/user}","branches_url":"https://api.github.com/repos/Magisus/leatherman/branches{/branch}","tags_url":"https://api.github.com/repos/Magisus/leatherman/tags","blobs_url":"https://api.github.com/repos/Magisus/leatherman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Magisus/leatherman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Magisus/leatherman/git/refs{/sha}","trees_url":"https://api.github.com/repos/Magisus/leatherman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Magisus/leatherman/statuses/{sha}","languages_url":"https://api.github.com/repos/Magisus/leatherman/languages","stargazers_url":"https://api.github.com/repos/Magisus/leatherman/stargazers","contributors_url":"https://api.github.com/repos/Magisus/leatherman/contributors","subscribers_url":"https://api.github.com/repos/Magisus/leatherman/subscribers","subscription_url":"https://api.github.com/repos/Magisus/leatherman/subscription","commits_url":"https://api.github.com/repos/Magisus/leatherman/commits{/sha}","git_commits_url":"https://api.github.com/repos/Magisus/leatherman/git/commits{/sha}","comments_url":"https://api.github.com/repos/Magisus/leatherman/comments{/number}","issue_comment_url":"https://api.github.com/repos/Magisus/leatherman/issues/comments{/number}","contents_url":"https://api.github.com/repos/Magisus/leatherman/contents/{+path}","compare_url":"https://api.github.com/repos/Magisus/leatherman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Magisus/leatherman/merges","archive_url":"https://api.github.com/repos/Magisus/leatherman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Magisus/leatherman/downloads","issues_url":"https://api.github.com/repos/Magisus/leatherman/issues{/number}","pulls_url":"https://api.github.com/repos/Magisus/leatherman/pulls{/number}","milestones_url":"https://api.github.com/repos/Magisus/leatherman/milestones{/number}","notifications_url":"https://api.github.com/repos/Magisus/leatherman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Magisus/leatherman/labels{/name}","releases_url":"https://api.github.com/repos/Magisus/leatherman/releases{/id}","created_at":"2015-06-09T17:31:19Z","updated_at":"2015-06-09T17:31:19Z","pushed_at":"2015-07-15T23:32:44Z","git_url":"git://github.com/Magisus/leatherman.git","ssh_url":"git@github.com:Magisus/leatherman.git","clone_url":"https://github.com/Magisus/leatherman.git","svn_url":"https://github.com/Magisus/leatherman","homepage":"","size":711,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"puppetlabs:master","ref":"master","sha":"cd6d262840d2666fdd42e728942df550ef0622c3","user":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":31226286,"name":"leatherman","full_name":"puppetlabs/leatherman","owner":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppetlabs/leatherman","description":"A collection of C++ and CMake utility libraries.","fork":false,"url":"https://api.github.com/repos/puppetlabs/leatherman","forks_url":"https://api.github.com/repos/puppetlabs/leatherman/forks","keys_url":"https://api.github.com/repos/puppetlabs/leatherman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/leatherman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/leatherman/teams","hooks_url":"https://api.github.com/repos/puppetlabs/leatherman/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/leatherman/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/leatherman/events","assignees_url":"https://api.github.com/repos/puppetlabs/leatherman/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/leatherman/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/leatherman/tags","blobs_url":"https://api.github.com/repos/puppetlabs/leatherman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/leatherman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/leatherman/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/leatherman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/leatherman/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/leatherman/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/leatherman/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/leatherman/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/leatherman/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/leatherman/subscription","commits_url":"https://api.github.com/repos/puppetlabs/leatherman/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/leatherman/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/leatherman/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/leatherman/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/leatherman/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/leatherman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/leatherman/merges","archive_url":"https://api.github.com/repos/puppetlabs/leatherman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/leatherman/downloads","issues_url":"https://api.github.com/repos/puppetlabs/leatherman/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/leatherman/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/leatherman/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/leatherman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/leatherman/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/leatherman/releases{/id}","created_at":"2015-02-23T19:50:46Z","updated_at":"2015-05-13T14:58:37Z","pushed_at":"2015-07-15T22:57:34Z","git_url":"git://github.com/puppetlabs/leatherman.git","ssh_url":"git@github.com:puppetlabs/leatherman.git","clone_url":"https://github.com/puppetlabs/leatherman.git","svn_url":"https://github.com/puppetlabs/leatherman","homepage":"","size":1019,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":1,"forks":9,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/leatherman/pulls/55"},"html":{"href":"https://github.com/puppetlabs/leatherman/pull/55"},"issue":{"href":"https://api.github.com/repos/puppetlabs/leatherman/issues/55"},"comments":{"href":"https://api.github.com/repos/puppetlabs/leatherman/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/leatherman/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/leatherman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/leatherman/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/leatherman/statuses/3b8c5b29c2e9fda3dd12b90a566a7e8b1d90c471"}}}}