title: Viewing a Gem's Source Code
body: <p>Ruby dabbler/newbie here who's not familiar with the ecosystem, so apologies if this is one of those super duh questions. </p>
  
  <p>Is there a way to view <strong>all</strong> the files and/or source code installed by a gem?  That is, I just ran </p>
  
  <pre><code>$ gem install sass
  </code></pre>
  
  <p>And the sass gem is now a part of my local system</p>
  
  <pre><code>$ gem list --local
  ...
  sass (3.1.16, 3.1.2)
  ...
  </code></pre>
  
  <p>I want to know what the <code>gem install</code> command put on my system.  Is there a command I can run to see <strong>all</strong> the files installed by the gem?  </p>
  
  <p>After some googling, <code>man gem</code> and <code>gem help commands</code>, I discovered the <code>contents</code> command.  </p>
  
  <p>$ gem contents sass</p>
  
  <p><strong>However</strong>, when I run this command with the aforementioned sass gem, I get the following results</p>
  
  <pre><code>.../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/test/sass/engine_test.rb
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/test/sass/functions_test.rb
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/test/sass/extend_test.rb
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/test/sass/logger_test.rb
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/test/sass/css2sass_test.rb
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/test/sass/conversion_test.rb
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/test/sass/script_test.rb
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/test/sass/util/subset_map_test.rb
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/test/sass/util/multibyte_string_scanner_test.rb
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/test/sass/callbacks_test.rb
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/test/sass/importer_test.rb
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/test/sass/scss/css_test.rb
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/test/sass/scss/scss_test.rb
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/test/sass/scss/rx_test.rb
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/test/sass/util_test.rb
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/test/sass/script_conversion_test.rb
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/test/sass/less_conversion_test.rb
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/test/sass/cache_test.rb
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/test/sass/plugin_test.rb
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/bin/sass
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/bin/sass-convert
  .../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.16/bin/scss
  </code></pre>
  
  <p>However, this list seems incomplete as I know there are files in </p>
  
  <pre><code>.../.rvm/gems/ruby-1.9.2-p180/gems/sass-3.1.2/lib/
  </code></pre>
  
  <p>Why does <code>contents</code> not show the files from <code>lib</code>?</p>
  
  <p>Is it possible for a <code>gem</code> installer to install files outside of the gems folder?</p>
  
  <p>Is there a command that can show <strong>everything</strong> installed by a gem?</p>