From 4a113d98d98e6a896d2820bd2ad7b95dd408463f Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Sat, 18 May 2019 14:47:28 -0500 Subject: [PATCH] Add Get Info About Your RubyGems Environment as a ruby til --- README.md | 3 ++- ruby/get-info-about-your-ruby-gems-environment.md | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 ruby/get-info-about-your-ruby-gems-environment.md diff --git a/README.md b/README.md index 6a4098c..b848c99 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). For a steady stream of TILs from a variety of rocketeers, checkout [til.hashrocket.com](https://til.hashrocket.com/). -_810 TILs and counting..._ +_811 TILs and counting..._ --- @@ -632,6 +632,7 @@ _810 TILs and counting..._ - [Finding The Source of Ruby Methods](ruby/finding-the-source-of-ruby-methods.md) - [Generate A Signed JWT Token](ruby/generate-a-signed-jwt-token.md) - [Generate Ruby Version And Gemset Files With RVM](ruby/generate-ruby-version-and-gemset-files-with-rvm.md) +- [Get Info About Your RubyGems Environment](ruby/get-info-about-your-ruby-gems-environment.md) - [Identify Outdated Gems](ruby/identify-outdated-gems.md) - [If You Detect None](ruby/if-you-detect-none.md) - [Ins And Outs Of Pry](ruby/ins-and-outs-of-pry.md) diff --git a/ruby/get-info-about-your-ruby-gems-environment.md b/ruby/get-info-about-your-ruby-gems-environment.md new file mode 100644 index 0000000..787f82d --- /dev/null +++ b/ruby/get-info-about-your-ruby-gems-environment.md @@ -0,0 +1,14 @@ +# Get Info About Your Ruby Gems Environment + +Want to know what Ruby version is being used? Or into what directory gems are +being installed? + +```bash +$ gem environment +``` + +This command will answer those questions and give you a whole host of other +information about your RubyGems environment. + +There are more details in their +[documentation](https://guides.rubygems.org/command-reference/#gem-environment).