From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 88C9919C03EF for ; Tue, 24 Nov 2015 08:54:23 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id AD89EB5DA2E for ; Mon, 23 Nov 2015 05:56:51 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id B0B9118CC7AF for ; Mon, 23 Nov 2015 05:56:51 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 136C112045E; Mon, 23 Nov 2015 05:56:50 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id 7B34A12044C for ; Mon, 23 Nov 2015 05:56:46 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=12uQiiQVVho7WgInVhaHbszGiko=; b=QqVku9Vyvih+HdsfXg TAzMG+o9GsIoWUA9DnGs8GzgnIucVBSlT+nvHgwrMwd2VqD82qORbl034n+eBFZE VHrKAfOxJfmCvt4fXKRPGgbXy4yCslYLgAmMBxJ+0b0FiGGX6WtJZIiRB/4gaWcE sr7Ocl6M1/g/PeZCAvYOTx1xQ= Received: by filter0500p1mdw1.sendgrid.net with SMTP id filter0500p1mdw1.30141.56522C0B14 2015-11-22 20:56:43.396445721 +0000 UTC Received: from herokuapp.com (ec2-54-159-99-107.compute-1.amazonaws.com [54.159.99.107]) by ismtpd0001p1iad1.sendgrid.net (SG) with ESMTP id or3RsQSgSXCVt9MDg7L9_A for ; Sun, 22 Nov 2015 20:56:43.408 +0000 (UTC) Date: Sun, 22 Nov 2015 20:56:43 +0000 From: kallisti5@unixzen.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 46302 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11731 X-Redmine-Issue-Author: kallisti5 X-Redmine-Sender: kallisti5 X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS5SPs9MVwctTKdezpKkB4mn06bdQFkwvQa+z2 AVNxuZK5OWLZuHZHW4/7SWkUhKHLgqqNmM3D3bYO1XsO/8GgHVVo4p+XFSr7apgB7W5fFAJGJmTRUG VUuYBFRGPw9G+VXsJj/pYWi0G5fRf+OwXFfV X-ML-Name: ruby-core X-Mail-Count: 71631 Subject: [ruby-core:71631] [Ruby trunk - Feature #11731] Make ruby gem install to user-directory by default X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #11731 has been updated by Alexander von Gluck. There would be a few minor logic issues around gem looking for --install-dir + --user-directory and erroring out... that check would need to be changed to --no-user-directory + --install-dir This definitely would need some discussion as it has a moderate scope (which tools using gem expect system-wide installation?) To keep compatibility in logic, gem might need to detect the root/administrator user and install system-wide by default to ensure when someone sudo gem install XXX the gem isn't *just* installed for the root user. ---------------------------------------- Feature #11731: Make ruby gem install to user-directory by default https://bugs.ruby-lang.org/issues/11731#change-55031 * Author: Alexander von Gluck * Status: Open * Priority: Normal * Assignee: ---------------------------------------- Installing gem's system-wide doesn't make sense 99% of the time... * Linux -- Need root access via sudo * Windows -- Need administrator * Max OS X -- Need root access via sudo * Haiku -- /boot/system read-only gem currently installs gems system-wide by default Since the most common use-case is to install gems for your own user, why doesn't gem --user-directory by default? Tools like rvm already set this manually. Making --user-directory default means package maintainers only need to --no-user-directory while everyone else just gem install's -- https://bugs.ruby-lang.org/