{"action":"created","comment":{"url":"https://api.github.com/repos/bundler/bundler/pulls/comments/38263901","id":38263901,"diff_hunk":"@@ -260,8 +289,20 @@ def get_array(key)\n       self[key] ? self[key].split(\":\").map(&:to_sym) : []\n     end\n \n-    def set_array(key, array)\n-      self[key] = (array.empty? ? nil : array.join(\":\")) if array\n+    def set_array(key, array, scope)\n+      unless [:current, :local, :global].include? scope\n+        Bundler.ui.error \"Invalid scope #{scope} given. Please use :local or :global.\"","path":"lib/bundler/settings.rb","position":140,"original_position":140,"commit_id":"7125e07ca4274ca363c5d05ef90568d34cdfe5d6","original_commit_id":"7125e07ca4274ca363c5d05ef90568d34cdfe5d6","user":{"login":"segiddins","id":1946610,"avatar_url":"https://avatars.githubusercontent.com/u/1946610?v=3","gravatar_id":"","url":"https://api.github.com/users/segiddins","html_url":"https://github.com/segiddins","followers_url":"https://api.github.com/users/segiddins/followers","following_url":"https://api.github.com/users/segiddins/following{/other_user}","gists_url":"https://api.github.com/users/segiddins/gists{/gist_id}","starred_url":"https://api.github.com/users/segiddins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segiddins/subscriptions","organizations_url":"https://api.github.com/users/segiddins/orgs","repos_url":"https://api.github.com/users/segiddins/repos","events_url":"https://api.github.com/users/segiddins/events{/privacy}","received_events_url":"https://api.github.com/users/segiddins/received_events","type":"User","site_admin":false},"body":"raise an exception?","created_at":"2015-08-29T16:55:23Z","updated_at":"2015-08-29T16:55:23Z","html_url":"https://github.com/bundler/bundler/pull/3955#discussion_r38263901","pull_request_url":"https://api.github.com/repos/bundler/bundler/pulls/3955","_links":{"self":{"href":"https://api.github.com/repos/bundler/bundler/pulls/comments/38263901"},"html":{"href":"https://github.com/bundler/bundler/pull/3955#discussion_r38263901"},"pull_request":{"href":"https://api.github.com/repos/bundler/bundler/pulls/3955"}}},"pull_request":{"url":"https://api.github.com/repos/bundler/bundler/pulls/3955","id":43052012,"html_url":"https://github.com/bundler/bundler/pull/3955","diff_url":"https://github.com/bundler/bundler/pull/3955.diff","patch_url":"https://github.com/bundler/bundler/pull/3955.patch","issue_url":"https://api.github.com/repos/bundler/bundler/issues/3955","number":3955,"state":"open","locked":false,"title":"Don't autoremember flags [WIP]","user":{"login":"smlance","id":4031210,"avatar_url":"https://avatars.githubusercontent.com/u/4031210?v=3","gravatar_id":"","url":"https://api.github.com/users/smlance","html_url":"https://github.com/smlance","followers_url":"https://api.github.com/users/smlance/followers","following_url":"https://api.github.com/users/smlance/following{/other_user}","gists_url":"https://api.github.com/users/smlance/gists{/gist_id}","starred_url":"https://api.github.com/users/smlance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smlance/subscriptions","organizations_url":"https://api.github.com/users/smlance/orgs","repos_url":"https://api.github.com/users/smlance/repos","events_url":"https://api.github.com/users/smlance/events{/privacy}","received_events_url":"https://api.github.com/users/smlance/received_events","type":"User","site_admin":false},"body":"Based on https://github.com/bundler/bundler/pull/3744.","created_at":"2015-08-21T15:48:23Z","updated_at":"2015-08-29T16:55:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"45b5a1b7949c7ce4160a806a60454e1b6e85e58e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bundler/bundler/pulls/3955/commits","review_comments_url":"https://api.github.com/repos/bundler/bundler/pulls/3955/comments","review_comment_url":"https://api.github.com/repos/bundler/bundler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/3955/comments","statuses_url":"https://api.github.com/repos/bundler/bundler/statuses/7125e07ca4274ca363c5d05ef90568d34cdfe5d6","head":{"label":"smlance:sml-dont-autoremember-flags-2-0-dev","ref":"sml-dont-autoremember-flags-2-0-dev","sha":"7125e07ca4274ca363c5d05ef90568d34cdfe5d6","user":{"login":"smlance","id":4031210,"avatar_url":"https://avatars.githubusercontent.com/u/4031210?v=3","gravatar_id":"","url":"https://api.github.com/users/smlance","html_url":"https://github.com/smlance","followers_url":"https://api.github.com/users/smlance/followers","following_url":"https://api.github.com/users/smlance/following{/other_user}","gists_url":"https://api.github.com/users/smlance/gists{/gist_id}","starred_url":"https://api.github.com/users/smlance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smlance/subscriptions","organizations_url":"https://api.github.com/users/smlance/orgs","repos_url":"https://api.github.com/users/smlance/repos","events_url":"https://api.github.com/users/smlance/events{/privacy}","received_events_url":"https://api.github.com/users/smlance/received_events","type":"User","site_admin":false},"repo":{"id":32434229,"name":"bundler","full_name":"smlance/bundler","owner":{"login":"smlance","id":4031210,"avatar_url":"https://avatars.githubusercontent.com/u/4031210?v=3","gravatar_id":"","url":"https://api.github.com/users/smlance","html_url":"https://github.com/smlance","followers_url":"https://api.github.com/users/smlance/followers","following_url":"https://api.github.com/users/smlance/following{/other_user}","gists_url":"https://api.github.com/users/smlance/gists{/gist_id}","starred_url":"https://api.github.com/users/smlance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smlance/subscriptions","organizations_url":"https://api.github.com/users/smlance/orgs","repos_url":"https://api.github.com/users/smlance/repos","events_url":"https://api.github.com/users/smlance/events{/privacy}","received_events_url":"https://api.github.com/users/smlance/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/smlance/bundler","description":"Manage your application's gem dependencies with less pain","fork":true,"url":"https://api.github.com/repos/smlance/bundler","forks_url":"https://api.github.com/repos/smlance/bundler/forks","keys_url":"https://api.github.com/repos/smlance/bundler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smlance/bundler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smlance/bundler/teams","hooks_url":"https://api.github.com/repos/smlance/bundler/hooks","issue_events_url":"https://api.github.com/repos/smlance/bundler/issues/events{/number}","events_url":"https://api.github.com/repos/smlance/bundler/events","assignees_url":"https://api.github.com/repos/smlance/bundler/assignees{/user}","branches_url":"https://api.github.com/repos/smlance/bundler/branches{/branch}","tags_url":"https://api.github.com/repos/smlance/bundler/tags","blobs_url":"https://api.github.com/repos/smlance/bundler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smlance/bundler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smlance/bundler/git/refs{/sha}","trees_url":"https://api.github.com/repos/smlance/bundler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smlance/bundler/statuses/{sha}","languages_url":"https://api.github.com/repos/smlance/bundler/languages","stargazers_url":"https://api.github.com/repos/smlance/bundler/stargazers","contributors_url":"https://api.github.com/repos/smlance/bundler/contributors","subscribers_url":"https://api.github.com/repos/smlance/bundler/subscribers","subscription_url":"https://api.github.com/repos/smlance/bundler/subscription","commits_url":"https://api.github.com/repos/smlance/bundler/commits{/sha}","git_commits_url":"https://api.github.com/repos/smlance/bundler/git/commits{/sha}","comments_url":"https://api.github.com/repos/smlance/bundler/comments{/number}","issue_comment_url":"https://api.github.com/repos/smlance/bundler/issues/comments{/number}","contents_url":"https://api.github.com/repos/smlance/bundler/contents/{+path}","compare_url":"https://api.github.com/repos/smlance/bundler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smlance/bundler/merges","archive_url":"https://api.github.com/repos/smlance/bundler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smlance/bundler/downloads","issues_url":"https://api.github.com/repos/smlance/bundler/issues{/number}","pulls_url":"https://api.github.com/repos/smlance/bundler/pulls{/number}","milestones_url":"https://api.github.com/repos/smlance/bundler/milestones{/number}","notifications_url":"https://api.github.com/repos/smlance/bundler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smlance/bundler/labels{/name}","releases_url":"https://api.github.com/repos/smlance/bundler/releases{/id}","created_at":"2015-03-18T02:52:15Z","updated_at":"2015-03-31T22:25:19Z","pushed_at":"2015-08-28T20:06:37Z","git_url":"git://github.com/smlance/bundler.git","ssh_url":"git@github.com:smlance/bundler.git","clone_url":"https://github.com/smlance/bundler.git","svn_url":"https://github.com/smlance/bundler","homepage":"http://bundler.io","size":19318,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bundler:2-0-dev","ref":"2-0-dev","sha":"983dec51603215b198a7dfafd6ca2b46b67fc6a9","user":{"login":"bundler","id":1137638,"avatar_url":"https://avatars.githubusercontent.com/u/1137638?v=3","gravatar_id":"","url":"https://api.github.com/users/bundler","html_url":"https://github.com/bundler","followers_url":"https://api.github.com/users/bundler/followers","following_url":"https://api.github.com/users/bundler/following{/other_user}","gists_url":"https://api.github.com/users/bundler/gists{/gist_id}","starred_url":"https://api.github.com/users/bundler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bundler/subscriptions","organizations_url":"https://api.github.com/users/bundler/orgs","repos_url":"https://api.github.com/users/bundler/repos","events_url":"https://api.github.com/users/bundler/events{/privacy}","received_events_url":"https://api.github.com/users/bundler/received_events","type":"Organization","site_admin":false},"repo":{"id":488514,"name":"bundler","full_name":"bundler/bundler","owner":{"login":"bundler","id":1137638,"avatar_url":"https://avatars.githubusercontent.com/u/1137638?v=3","gravatar_id":"","url":"https://api.github.com/users/bundler","html_url":"https://github.com/bundler","followers_url":"https://api.github.com/users/bundler/followers","following_url":"https://api.github.com/users/bundler/following{/other_user}","gists_url":"https://api.github.com/users/bundler/gists{/gist_id}","starred_url":"https://api.github.com/users/bundler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bundler/subscriptions","organizations_url":"https://api.github.com/users/bundler/orgs","repos_url":"https://api.github.com/users/bundler/repos","events_url":"https://api.github.com/users/bundler/events{/privacy}","received_events_url":"https://api.github.com/users/bundler/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bundler/bundler","description":"Manage your application's gem dependencies with less pain","fork":false,"url":"https://api.github.com/repos/bundler/bundler","forks_url":"https://api.github.com/repos/bundler/bundler/forks","keys_url":"https://api.github.com/repos/bundler/bundler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bundler/bundler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bundler/bundler/teams","hooks_url":"https://api.github.com/repos/bundler/bundler/hooks","issue_events_url":"https://api.github.com/repos/bundler/bundler/issues/events{/number}","events_url":"https://api.github.com/repos/bundler/bundler/events","assignees_url":"https://api.github.com/repos/bundler/bundler/assignees{/user}","branches_url":"https://api.github.com/repos/bundler/bundler/branches{/branch}","tags_url":"https://api.github.com/repos/bundler/bundler/tags","blobs_url":"https://api.github.com/repos/bundler/bundler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bundler/bundler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bundler/bundler/git/refs{/sha}","trees_url":"https://api.github.com/repos/bundler/bundler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bundler/bundler/statuses/{sha}","languages_url":"https://api.github.com/repos/bundler/bundler/languages","stargazers_url":"https://api.github.com/repos/bundler/bundler/stargazers","contributors_url":"https://api.github.com/repos/bundler/bundler/contributors","subscribers_url":"https://api.github.com/repos/bundler/bundler/subscribers","subscription_url":"https://api.github.com/repos/bundler/bundler/subscription","commits_url":"https://api.github.com/repos/bundler/bundler/commits{/sha}","git_commits_url":"https://api.github.com/repos/bundler/bundler/git/commits{/sha}","comments_url":"https://api.github.com/repos/bundler/bundler/comments{/number}","issue_comment_url":"https://api.github.com/repos/bundler/bundler/issues/comments{/number}","contents_url":"https://api.github.com/repos/bundler/bundler/contents/{+path}","compare_url":"https://api.github.com/repos/bundler/bundler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bundler/bundler/merges","archive_url":"https://api.github.com/repos/bundler/bundler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bundler/bundler/downloads","issues_url":"https://api.github.com/repos/bundler/bundler/issues{/number}","pulls_url":"https://api.github.com/repos/bundler/bundler/pulls{/number}","milestones_url":"https://api.github.com/repos/bundler/bundler/milestones{/number}","notifications_url":"https://api.github.com/repos/bundler/bundler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bundler/bundler/labels{/name}","releases_url":"https://api.github.com/repos/bundler/bundler/releases{/id}","created_at":"2010-01-26T00:46:38Z","updated_at":"2015-08-29T16:20:33Z","pushed_at":"2015-08-29T08:54:46Z","git_url":"git://github.com/bundler/bundler.git","ssh_url":"git@github.com:bundler/bundler.git","clone_url":"https://github.com/bundler/bundler.git","svn_url":"https://github.com/bundler/bundler","homepage":"http://bundler.io","size":34919,"stargazers_count":3001,"watchers_count":3001,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1367,"mirror_url":null,"open_issues_count":94,"forks":1367,"open_issues":94,"watchers":3001,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bundler/bundler/pulls/3955"},"html":{"href":"https://github.com/bundler/bundler/pull/3955"},"issue":{"href":"https://api.github.com/repos/bundler/bundler/issues/3955"},"comments":{"href":"https://api.github.com/repos/bundler/bundler/issues/3955/comments"},"review_comments":{"href":"https://api.github.com/repos/bundler/bundler/pulls/3955/comments"},"review_comment":{"href":"https://api.github.com/repos/bundler/bundler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bundler/bundler/pulls/3955/commits"},"statuses":{"href":"https://api.github.com/repos/bundler/bundler/statuses/7125e07ca4274ca363c5d05ef90568d34cdfe5d6"}}}}