{"action":"created","comment":{"url":"https://api.github.com/repos/chef/chef/pulls/comments/29382671","id":29382671,"diff_hunk":"@@ -464,10 +464,7 @@ def current_version_array\n \n       # @return [Array] new_version(s) as an array\n       def new_version_array\n-        @new_version_array ||=\n-            [ new_resource.version ].flatten.map do |v|\n-              ( v.nil? || v.empty? ) ? nil : v\n-            end\n+        [ new_resource.version ].flatten","path":"lib/chef/provider/package.rb","position":8,"original_position":8,"commit_id":"2cb57faf18ec01e38035992074656ec74c208c08","original_commit_id":"2cb57faf18ec01e38035992074656ec74c208c08","user":{"login":"jaymzh","id":938467,"avatar_url":"https://avatars.githubusercontent.com/u/938467?v=3","gravatar_id":"","url":"https://api.github.com/users/jaymzh","html_url":"https://github.com/jaymzh","followers_url":"https://api.github.com/users/jaymzh/followers","following_url":"https://api.github.com/users/jaymzh/following{/other_user}","gists_url":"https://api.github.com/users/jaymzh/gists{/gist_id}","starred_url":"https://api.github.com/users/jaymzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaymzh/subscriptions","organizations_url":"https://api.github.com/users/jaymzh/orgs","repos_url":"https://api.github.com/users/jaymzh/repos","events_url":"https://api.github.com/users/jaymzh/events{/privacy}","received_events_url":"https://api.github.com/users/jaymzh/received_events","type":"User","site_admin":false},"body":"ah. That makes sense.\r\n\r\nI'm cool with dropping the cache, I think. But we should add the `map` back... I think that's necessary.","created_at":"2015-04-29T21:25:24Z","updated_at":"2015-04-29T21:25:24Z","html_url":"https://github.com/chef/chef/pull/3155#discussion_r29382671","pull_request_url":"https://api.github.com/repos/chef/chef/pulls/3155","_links":{"self":{"href":"https://api.github.com/repos/chef/chef/pulls/comments/29382671"},"html":{"href":"https://github.com/chef/chef/pull/3155#discussion_r29382671"},"pull_request":{"href":"https://api.github.com/repos/chef/chef/pulls/3155"}}},"pull_request":{"url":"https://api.github.com/repos/chef/chef/pulls/3155","id":32098903,"html_url":"https://github.com/chef/chef/pull/3155","diff_url":"https://github.com/chef/chef/pull/3155.diff","patch_url":"https://github.com/chef/chef/pull/3155.patch","issue_url":"https://api.github.com/repos/chef/chef/issues/3155","number":3155,"state":"open","locked":false,"title":"Fix installation of yum packages with version constraints","user":{"login":"ojab","id":153388,"avatar_url":"https://avatars.githubusercontent.com/u/153388?v=3","gravatar_id":"","url":"https://api.github.com/users/ojab","html_url":"https://github.com/ojab","followers_url":"https://api.github.com/users/ojab/followers","following_url":"https://api.github.com/users/ojab/following{/other_user}","gists_url":"https://api.github.com/users/ojab/gists{/gist_id}","starred_url":"https://api.github.com/users/ojab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojab/subscriptions","organizations_url":"https://api.github.com/users/ojab/orgs","repos_url":"https://api.github.com/users/ojab/repos","events_url":"https://api.github.com/users/ojab/events{/privacy}","received_events_url":"https://api.github.com/users/ojab/received_events","type":"User","site_admin":false},"body":"Right now `yum_package 'pkg >= 1.0` doesn't work if pkg < 1.0 is already installed.\r\n\r\nFixes #2778.","created_at":"2015-03-27T11:12:24Z","updated_at":"2015-04-29T21:25:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6d23051fb0c24dac2c87d89ca2267f67016c3a8d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chef/chef/pulls/3155/commits","review_comments_url":"https://api.github.com/repos/chef/chef/pulls/3155/comments","review_comment_url":"https://api.github.com/repos/chef/chef/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chef/chef/issues/3155/comments","statuses_url":"https://api.github.com/repos/chef/chef/statuses/2cb57faf18ec01e38035992074656ec74c208c08","head":{"label":"ojab:yum_fix","ref":"yum_fix","sha":"2cb57faf18ec01e38035992074656ec74c208c08","user":{"login":"ojab","id":153388,"avatar_url":"https://avatars.githubusercontent.com/u/153388?v=3","gravatar_id":"","url":"https://api.github.com/users/ojab","html_url":"https://github.com/ojab","followers_url":"https://api.github.com/users/ojab/followers","following_url":"https://api.github.com/users/ojab/following{/other_user}","gists_url":"https://api.github.com/users/ojab/gists{/gist_id}","starred_url":"https://api.github.com/users/ojab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojab/subscriptions","organizations_url":"https://api.github.com/users/ojab/orgs","repos_url":"https://api.github.com/users/ojab/repos","events_url":"https://api.github.com/users/ojab/events{/privacy}","received_events_url":"https://api.github.com/users/ojab/received_events","type":"User","site_admin":false},"repo":{"id":32945007,"name":"chef","full_name":"ojab/chef","owner":{"login":"ojab","id":153388,"avatar_url":"https://avatars.githubusercontent.com/u/153388?v=3","gravatar_id":"","url":"https://api.github.com/users/ojab","html_url":"https://github.com/ojab","followers_url":"https://api.github.com/users/ojab/followers","following_url":"https://api.github.com/users/ojab/following{/other_user}","gists_url":"https://api.github.com/users/ojab/gists{/gist_id}","starred_url":"https://api.github.com/users/ojab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojab/subscriptions","organizations_url":"https://api.github.com/users/ojab/orgs","repos_url":"https://api.github.com/users/ojab/repos","events_url":"https://api.github.com/users/ojab/events{/privacy}","received_events_url":"https://api.github.com/users/ojab/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ojab/chef","description":"A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.","fork":true,"url":"https://api.github.com/repos/ojab/chef","forks_url":"https://api.github.com/repos/ojab/chef/forks","keys_url":"https://api.github.com/repos/ojab/chef/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ojab/chef/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ojab/chef/teams","hooks_url":"https://api.github.com/repos/ojab/chef/hooks","issue_events_url":"https://api.github.com/repos/ojab/chef/issues/events{/number}","events_url":"https://api.github.com/repos/ojab/chef/events","assignees_url":"https://api.github.com/repos/ojab/chef/assignees{/user}","branches_url":"https://api.github.com/repos/ojab/chef/branches{/branch}","tags_url":"https://api.github.com/repos/ojab/chef/tags","blobs_url":"https://api.github.com/repos/ojab/chef/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ojab/chef/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ojab/chef/git/refs{/sha}","trees_url":"https://api.github.com/repos/ojab/chef/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ojab/chef/statuses/{sha}","languages_url":"https://api.github.com/repos/ojab/chef/languages","stargazers_url":"https://api.github.com/repos/ojab/chef/stargazers","contributors_url":"https://api.github.com/repos/ojab/chef/contributors","subscribers_url":"https://api.github.com/repos/ojab/chef/subscribers","subscription_url":"https://api.github.com/repos/ojab/chef/subscription","commits_url":"https://api.github.com/repos/ojab/chef/commits{/sha}","git_commits_url":"https://api.github.com/repos/ojab/chef/git/commits{/sha}","comments_url":"https://api.github.com/repos/ojab/chef/comments{/number}","issue_comment_url":"https://api.github.com/repos/ojab/chef/issues/comments{/number}","contents_url":"https://api.github.com/repos/ojab/chef/contents/{+path}","compare_url":"https://api.github.com/repos/ojab/chef/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ojab/chef/merges","archive_url":"https://api.github.com/repos/ojab/chef/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ojab/chef/downloads","issues_url":"https://api.github.com/repos/ojab/chef/issues{/number}","pulls_url":"https://api.github.com/repos/ojab/chef/pulls{/number}","milestones_url":"https://api.github.com/repos/ojab/chef/milestones{/number}","notifications_url":"https://api.github.com/repos/ojab/chef/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ojab/chef/labels{/name}","releases_url":"https://api.github.com/repos/ojab/chef/releases{/id}","created_at":"2015-03-26T18:31:53Z","updated_at":"2015-03-26T18:46:16Z","pushed_at":"2015-03-30T16:02:03Z","git_url":"git://github.com/ojab/chef.git","ssh_url":"git@github.com:ojab/chef.git","clone_url":"https://github.com/ojab/chef.git","svn_url":"https://github.com/ojab/chef","homepage":"http://www.chef.io/chef/","size":78728,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"chef:master","ref":"master","sha":"8bb31f986e19d108485312e6b20524b38f2facae","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":108278,"name":"chef","full_name":"chef/chef","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/chef","description":"A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.","fork":false,"url":"https://api.github.com/repos/chef/chef","forks_url":"https://api.github.com/repos/chef/chef/forks","keys_url":"https://api.github.com/repos/chef/chef/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chef/chef/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chef/chef/teams","hooks_url":"https://api.github.com/repos/chef/chef/hooks","issue_events_url":"https://api.github.com/repos/chef/chef/issues/events{/number}","events_url":"https://api.github.com/repos/chef/chef/events","assignees_url":"https://api.github.com/repos/chef/chef/assignees{/user}","branches_url":"https://api.github.com/repos/chef/chef/branches{/branch}","tags_url":"https://api.github.com/repos/chef/chef/tags","blobs_url":"https://api.github.com/repos/chef/chef/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chef/chef/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chef/chef/git/refs{/sha}","trees_url":"https://api.github.com/repos/chef/chef/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chef/chef/statuses/{sha}","languages_url":"https://api.github.com/repos/chef/chef/languages","stargazers_url":"https://api.github.com/repos/chef/chef/stargazers","contributors_url":"https://api.github.com/repos/chef/chef/contributors","subscribers_url":"https://api.github.com/repos/chef/chef/subscribers","subscription_url":"https://api.github.com/repos/chef/chef/subscription","commits_url":"https://api.github.com/repos/chef/chef/commits{/sha}","git_commits_url":"https://api.github.com/repos/chef/chef/git/commits{/sha}","comments_url":"https://api.github.com/repos/chef/chef/comments{/number}","issue_comment_url":"https://api.github.com/repos/chef/chef/issues/comments{/number}","contents_url":"https://api.github.com/repos/chef/chef/contents/{+path}","compare_url":"https://api.github.com/repos/chef/chef/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chef/chef/merges","archive_url":"https://api.github.com/repos/chef/chef/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chef/chef/downloads","issues_url":"https://api.github.com/repos/chef/chef/issues{/number}","pulls_url":"https://api.github.com/repos/chef/chef/pulls{/number}","milestones_url":"https://api.github.com/repos/chef/chef/milestones{/number}","notifications_url":"https://api.github.com/repos/chef/chef/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chef/chef/labels{/name}","releases_url":"https://api.github.com/repos/chef/chef/releases{/id}","created_at":"2009-01-15T20:40:48Z","updated_at":"2015-04-29T19:58:02Z","pushed_at":"2015-04-29T20:36:16Z","git_url":"git://github.com/chef/chef.git","ssh_url":"git@github.com:chef/chef.git","clone_url":"https://github.com/chef/chef.git","svn_url":"https://github.com/chef/chef","homepage":"http://www.chef.io/chef/","size":166620,"stargazers_count":3554,"watchers_count":3554,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1439,"mirror_url":null,"open_issues_count":438,"forks":1439,"open_issues":438,"watchers":3554,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chef/chef/pulls/3155"},"html":{"href":"https://github.com/chef/chef/pull/3155"},"issue":{"href":"https://api.github.com/repos/chef/chef/issues/3155"},"comments":{"href":"https://api.github.com/repos/chef/chef/issues/3155/comments"},"review_comments":{"href":"https://api.github.com/repos/chef/chef/pulls/3155/comments"},"review_comment":{"href":"https://api.github.com/repos/chef/chef/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chef/chef/pulls/3155/commits"},"statuses":{"href":"https://api.github.com/repos/chef/chef/statuses/2cb57faf18ec01e38035992074656ec74c208c08"}}}}