前提・実現したいこと
現在Ruby on Railsの環境構築などで色々検証していたのですが、
気づいたら、gemがかなり大量になっており、railsで使用するライブラリがたくさんインストールされているのだろうと思っているのですが、
gem uninstall railsを実行しても残っているものが多くあるのですが、
今現在、依存関係にないgemライブラリを削除する方法などはありますか?
railsインストール時のgem list
actioncable (5.1.4) actionmailer (5.1.4) actionpack (5.1.4) actionview (5.1.4) activejob (5.1.4) activemodel (5.1.4) activerecord (5.1.4) activesupport (5.1.4) arel (8.0.0) bigdecimal (default: 1.3.0) builder (3.2.3) bundler (1.16.1) concurrent-ruby (1.0.5) crass (1.0.3) did_you_mean (1.1.0) erubi (1.7.0) globalid (0.4.1) i18n (0.9.4) io-console (default: 0.4.6) json (default: 2.0.2) loofah (2.2.0) mail (2.7.0) method_source (0.9.0) mini_mime (1.0.0) mini_portile2 (2.3.0) minitest (5.10.1) net-telnet (0.1.1) nio4r (2.2.0) nokogiri (1.8.2) openssl (default: 2.0.2) power_assert (0.4.1) psych (default: 2.2.2) rack (2.0.4) rack-test (0.8.2) rails (5.1.4) rails-dom-testing (2.0.3) rails-html-sanitizer (1.0.3) railties (5.1.4) rake (12.0.0) rdoc (default: 5.0.0) sprockets (3.7.1) sprockets-rails (3.2.1) test-unit (3.2.3) thor (0.20.0) thread_safe (0.3.6) tzinfo (1.2.5) websocket-driver (0.6.5) websocket-extensions (0.1.3) xmlrpc (0.2.1)
rails削除後のgem list
actioncable (5.1.4) actionmailer (5.1.4) actionpack (5.1.4) actionview (5.1.4) activejob (5.1.4) activemodel (5.1.4) activerecord (5.1.4) activesupport (5.1.4) arel (8.0.0) bigdecimal (default: 1.3.0) builder (3.2.3) bundler (1.16.1) concurrent-ruby (1.0.5) crass (1.0.3) did_you_mean (1.1.0) erubi (1.7.0) globalid (0.4.1) i18n (0.9.4) io-console (default: 0.4.6) json (default: 2.0.2) loofah (2.2.0) mail (2.7.0) method_source (0.9.0) mini_mime (1.0.0) mini_portile2 (2.3.0) minitest (5.10.1) net-telnet (0.1.1) nio4r (2.2.0) nokogiri (1.8.2) openssl (default: 2.0.2) power_assert (0.4.1) psych (default: 2.2.2) rack (2.0.4) rack-test (0.8.2) rails (5.1.4) rails-dom-testing (2.0.3) rails-html-sanitizer (1.0.3) railties (5.1.4) rake (12.0.0) rdoc (default: 5.0.0) sprockets (3.7.1) sprockets-rails (3.2.1) test-unit (3.2.3) thor (0.20.0) thread_safe (0.3.6) tzinfo (1.2.5) websocket-driver (0.6.5) websocket-extensions (0.1.3) xmlrpc (0.2.1)
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。