{"action":"created","comment":{"url":"https://api.github.com/repos/chef/mixlib-install/pulls/comments/57388338","id":57388338,"diff_hunk":"@@ -105,4 +106,47 @@\n       end\n     end\n   end\n+\n+  context \"architecture extraction\" do\n+    let(:channel) { :stable }\n+    let(:product_name) { \"chef\" }\n+\n+    it \"extracts the architecture from file name correctly\" do\n+      {\n+        \"x86_64\" => [\n+          \"chef_12.8.1-1_amd64.deb\",\n+          \"chef_12.8.1-1_x64.deb\",\n+          \"chef_12.8.1-1_x86_64.deb\",\n+          \"chef_12.8.1-1.dmg\",\n+          \"chef_12.8.1-1.sh\",\n+        ],\n+        \"i386\" => [\n+          \"chef_12.8.1-1_i386.deb\",\n+          \"chef_12.8.1-1_i686.deb\",\n+          \"chef_12.8.1-1_x86.deb\",\n+          \"chef_12.8.1-1_i86pc.deb\",\n+          \"chef_12.8.1-1.msi\",\n+        ],\n+        \"powerpc\" => [\n+          \"chef-12.8.1-1.powerpc.bff\",\n+        ],\n+        \"sparc\" => [\n+          \"chef-12.8.1-1.sparc.solaris\",\n+          \"chef-12.8.1-1.sun4u.solaris\",\n+          \"chef-12.8.1-1.sun4v.solaris\",","path":"spec/mixlib/install/backend/bintray_spec.rb","position":39,"original_position":39,"commit_id":"6d069fddc4dda6da6d895096982f89136b54b2ab","original_commit_id":"6d069fddc4dda6da6d895096982f89136b54b2ab","user":{"login":"schisamo","id":6164,"avatar_url":"https://avatars.githubusercontent.com/u/6164?v=3","gravatar_id":"","url":"https://api.github.com/users/schisamo","html_url":"https://github.com/schisamo","followers_url":"https://api.github.com/users/schisamo/followers","following_url":"https://api.github.com/users/schisamo/following{/other_user}","gists_url":"https://api.github.com/users/schisamo/gists{/gist_id}","starred_url":"https://api.github.com/users/schisamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schisamo/subscriptions","organizations_url":"https://api.github.com/users/schisamo/orgs","repos_url":"https://api.github.com/users/schisamo/repos","events_url":"https://api.github.com/users/schisamo/events{/privacy}","received_events_url":"https://api.github.com/users/schisamo/received_events","type":"User","site_admin":false},"body":"Let's add a few of the legacy `solaris2.5.9` artifacts and a few `solaris2.5.10` in the `i386` section.","created_at":"2016-03-24T21:10:54Z","updated_at":"2016-03-24T21:10:54Z","html_url":"https://github.com/chef/mixlib-install/pull/73#discussion_r57388338","pull_request_url":"https://api.github.com/repos/chef/mixlib-install/pulls/73","_links":{"self":{"href":"https://api.github.com/repos/chef/mixlib-install/pulls/comments/57388338"},"html":{"href":"https://github.com/chef/mixlib-install/pull/73#discussion_r57388338"},"pull_request":{"href":"https://api.github.com/repos/chef/mixlib-install/pulls/73"}}},"pull_request":{"url":"https://api.github.com/repos/chef/mixlib-install/pulls/73","id":63964392,"html_url":"https://github.com/chef/mixlib-install/pull/73","diff_url":"https://github.com/chef/mixlib-install/pull/73.diff","patch_url":"https://github.com/chef/mixlib-install/pull/73.patch","issue_url":"https://api.github.com/repos/chef/mixlib-install/issues/73","number":73,"state":"open","locked":false,"title":"Expose private bintray_get method to the world.","user":{"login":"sersut","id":1695955,"avatar_url":"https://avatars.githubusercontent.com/u/1695955?v=3","gravatar_id":"","url":"https://api.github.com/users/sersut","html_url":"https://github.com/sersut","followers_url":"https://api.github.com/users/sersut/followers","following_url":"https://api.github.com/users/sersut/following{/other_user}","gists_url":"https://api.github.com/users/sersut/gists{/gist_id}","starred_url":"https://api.github.com/users/sersut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sersut/subscriptions","organizations_url":"https://api.github.com/users/sersut/orgs","repos_url":"https://api.github.com/users/sersut/repos","events_url":"https://api.github.com/users/sersut/events{/privacy}","received_events_url":"https://api.github.com/users/sersut/received_events","type":"User","site_admin":false},"body":"/cc: @chef/engineering-services \r\n\r\nThis PR goes with https://github.com/chef/omnitruck/pull/168 and exposes the `bintray_get` method to the outside world. We need this in omnitruck while polling bintray.","created_at":"2016-03-23T22:38:17Z","updated_at":"2016-03-24T21:10:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2119616cdd14df8b04f4f6ebf550af05062a3101","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chef/mixlib-install/pulls/73/commits","review_comments_url":"https://api.github.com/repos/chef/mixlib-install/pulls/73/comments","review_comment_url":"https://api.github.com/repos/chef/mixlib-install/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chef/mixlib-install/issues/73/comments","statuses_url":"https://api.github.com/repos/chef/mixlib-install/statuses/6d069fddc4dda6da6d895096982f89136b54b2ab","head":{"label":"chef:sersut/omni","ref":"sersut/omni","sha":"6d069fddc4dda6da6d895096982f89136b54b2ab","user":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"repo":{"id":39073784,"name":"mixlib-install","full_name":"chef/mixlib-install","owner":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chef/mixlib-install","description":"A mixin to help with omnitruck installs","fork":false,"url":"https://api.github.com/repos/chef/mixlib-install","forks_url":"https://api.github.com/repos/chef/mixlib-install/forks","keys_url":"https://api.github.com/repos/chef/mixlib-install/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chef/mixlib-install/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chef/mixlib-install/teams","hooks_url":"https://api.github.com/repos/chef/mixlib-install/hooks","issue_events_url":"https://api.github.com/repos/chef/mixlib-install/issues/events{/number}","events_url":"https://api.github.com/repos/chef/mixlib-install/events","assignees_url":"https://api.github.com/repos/chef/mixlib-install/assignees{/user}","branches_url":"https://api.github.com/repos/chef/mixlib-install/branches{/branch}","tags_url":"https://api.github.com/repos/chef/mixlib-install/tags","blobs_url":"https://api.github.com/repos/chef/mixlib-install/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chef/mixlib-install/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chef/mixlib-install/git/refs{/sha}","trees_url":"https://api.github.com/repos/chef/mixlib-install/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chef/mixlib-install/statuses/{sha}","languages_url":"https://api.github.com/repos/chef/mixlib-install/languages","stargazers_url":"https://api.github.com/repos/chef/mixlib-install/stargazers","contributors_url":"https://api.github.com/repos/chef/mixlib-install/contributors","subscribers_url":"https://api.github.com/repos/chef/mixlib-install/subscribers","subscription_url":"https://api.github.com/repos/chef/mixlib-install/subscription","commits_url":"https://api.github.com/repos/chef/mixlib-install/commits{/sha}","git_commits_url":"https://api.github.com/repos/chef/mixlib-install/git/commits{/sha}","comments_url":"https://api.github.com/repos/chef/mixlib-install/comments{/number}","issue_comment_url":"https://api.github.com/repos/chef/mixlib-install/issues/comments{/number}","contents_url":"https://api.github.com/repos/chef/mixlib-install/contents/{+path}","compare_url":"https://api.github.com/repos/chef/mixlib-install/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chef/mixlib-install/merges","archive_url":"https://api.github.com/repos/chef/mixlib-install/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chef/mixlib-install/downloads","issues_url":"https://api.github.com/repos/chef/mixlib-install/issues{/number}","pulls_url":"https://api.github.com/repos/chef/mixlib-install/pulls{/number}","milestones_url":"https://api.github.com/repos/chef/mixlib-install/milestones{/number}","notifications_url":"https://api.github.com/repos/chef/mixlib-install/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chef/mixlib-install/labels{/name}","releases_url":"https://api.github.com/repos/chef/mixlib-install/releases{/id}","deployments_url":"https://api.github.com/repos/chef/mixlib-install/deployments","created_at":"2015-07-14T12:34:25Z","updated_at":"2016-01-12T17:26:55Z","pushed_at":"2016-03-24T20:52:14Z","git_url":"git://github.com/chef/mixlib-install.git","ssh_url":"git@github.com:chef/mixlib-install.git","clone_url":"https://github.com/chef/mixlib-install.git","svn_url":"https://github.com/chef/mixlib-install","homepage":"","size":228,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":11,"forks":11,"open_issues":11,"watchers":3,"default_branch":"master"}},"base":{"label":"chef:master","ref":"master","sha":"405dad6047d8e47dc93558e60912c7f5b85b7093","user":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"repo":{"id":39073784,"name":"mixlib-install","full_name":"chef/mixlib-install","owner":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chef/mixlib-install","description":"A mixin to help with omnitruck installs","fork":false,"url":"https://api.github.com/repos/chef/mixlib-install","forks_url":"https://api.github.com/repos/chef/mixlib-install/forks","keys_url":"https://api.github.com/repos/chef/mixlib-install/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chef/mixlib-install/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chef/mixlib-install/teams","hooks_url":"https://api.github.com/repos/chef/mixlib-install/hooks","issue_events_url":"https://api.github.com/repos/chef/mixlib-install/issues/events{/number}","events_url":"https://api.github.com/repos/chef/mixlib-install/events","assignees_url":"https://api.github.com/repos/chef/mixlib-install/assignees{/user}","branches_url":"https://api.github.com/repos/chef/mixlib-install/branches{/branch}","tags_url":"https://api.github.com/repos/chef/mixlib-install/tags","blobs_url":"https://api.github.com/repos/chef/mixlib-install/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chef/mixlib-install/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chef/mixlib-install/git/refs{/sha}","trees_url":"https://api.github.com/repos/chef/mixlib-install/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chef/mixlib-install/statuses/{sha}","languages_url":"https://api.github.com/repos/chef/mixlib-install/languages","stargazers_url":"https://api.github.com/repos/chef/mixlib-install/stargazers","contributors_url":"https://api.github.com/repos/chef/mixlib-install/contributors","subscribers_url":"https://api.github.com/repos/chef/mixlib-install/subscribers","subscription_url":"https://api.github.com/repos/chef/mixlib-install/subscription","commits_url":"https://api.github.com/repos/chef/mixlib-install/commits{/sha}","git_commits_url":"https://api.github.com/repos/chef/mixlib-install/git/commits{/sha}","comments_url":"https://api.github.com/repos/chef/mixlib-install/comments{/number}","issue_comment_url":"https://api.github.com/repos/chef/mixlib-install/issues/comments{/number}","contents_url":"https://api.github.com/repos/chef/mixlib-install/contents/{+path}","compare_url":"https://api.github.com/repos/chef/mixlib-install/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chef/mixlib-install/merges","archive_url":"https://api.github.com/repos/chef/mixlib-install/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chef/mixlib-install/downloads","issues_url":"https://api.github.com/repos/chef/mixlib-install/issues{/number}","pulls_url":"https://api.github.com/repos/chef/mixlib-install/pulls{/number}","milestones_url":"https://api.github.com/repos/chef/mixlib-install/milestones{/number}","notifications_url":"https://api.github.com/repos/chef/mixlib-install/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chef/mixlib-install/labels{/name}","releases_url":"https://api.github.com/repos/chef/mixlib-install/releases{/id}","deployments_url":"https://api.github.com/repos/chef/mixlib-install/deployments","created_at":"2015-07-14T12:34:25Z","updated_at":"2016-01-12T17:26:55Z","pushed_at":"2016-03-24T20:52:14Z","git_url":"git://github.com/chef/mixlib-install.git","ssh_url":"git@github.com:chef/mixlib-install.git","clone_url":"https://github.com/chef/mixlib-install.git","svn_url":"https://github.com/chef/mixlib-install","homepage":"","size":228,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":11,"forks":11,"open_issues":11,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chef/mixlib-install/pulls/73"},"html":{"href":"https://github.com/chef/mixlib-install/pull/73"},"issue":{"href":"https://api.github.com/repos/chef/mixlib-install/issues/73"},"comments":{"href":"https://api.github.com/repos/chef/mixlib-install/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/chef/mixlib-install/pulls/73/comments"},"review_comment":{"href":"https://api.github.com/repos/chef/mixlib-install/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chef/mixlib-install/pulls/73/commits"},"statuses":{"href":"https://api.github.com/repos/chef/mixlib-install/statuses/6d069fddc4dda6da6d895096982f89136b54b2ab"}}}}