What directory are gems installed in?


#1

Hello. I am using the Camaleon CMS based on Ruby on Rails. The CMS is installed as a gem. Because of this, I cannot access any of the css, javacript or html files that I need. I have to be able to customize my current theme in order to proceed with my project. Can I please have access to my assets? Or, what do you recommend that I do?

Thanks in advanced,

Marissa


#2

Cloud 9 does not restrict access to installed gems or anything you install. How you access the files you need is up to the application. I suggest checking the application’s docs on how to proceed.


#3

This is what I found when I reviewed the documentation: " You won’t see the gem installed in the directory tree, because it’s kept deep within your project’s the Ruby libs."

I have looked all throughout my projects folders, including the lib and c9 directories. I have compared my directories with the Camaleon files posted on GitHub. The assets that I need to modify are missing. I have several asset folders that I have searched, but the essential files are not present.

Here is where I got the reference: Installing Ruby Gems

Thanks for taking the time to help,

Marissa


#4

You can find the location of your gems by running gem environment. You’ll get something back like this:

RubyGems Environment:
  - RUBYGEMS VERSION: 2.1.5
  - RUBY VERSION: 2.0.0 (2013-06-27 patchlevel 247) [x86_64-darwin12.4.0]
  - INSTALLATION DIRECTORY: /Users/ttm/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0
  - RUBY EXECUTABLE: /Users/ttm/.rbenv/versions/2.0.0-p247/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/ttm/.rbenv/versions/2.0.0-p247/bin
  - SPEC CACHE DIRECTORY: /Users/ttm/.gem/specs
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-12
  - GEM PATHS:
     - /Users/ttm/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0
     - /Users/ttm/.gem/ruby/2.0.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /Users/ttm/.rbenv/versions/2.0.0-p247/bin
     - /Users/ttm/.rbenv/libexec
     - /Users/ttm/.rbenv/plugins/ruby-build/bin
     - /Users/ttm/perl5/perlbrew/bin
     - /Users/ttm/perl5/perlbrew/perls/perl-5.18.1/bin
     - /Users/ttm/.pyenv/shims
     - /Users/ttm/.pyenv/bin
     - /Users/ttm/.rbenv/shims
     - /Users/ttm/.rbenv/bin
     - /Users/ttm/bin
     - /usr/local/mysql-5.6.12-osx10.7-x86_64/bin
     - /Users/ttm/libsmi/bin
     - /usr/local/bin
     - /usr/bin
     - /bin
     - /usr/sbin
     - /sbin
     - /usr/local/bin

Notice the two sections for:

  • INSTALLATION DIRECTORY
  • GEM PATHS

Source: How can I find where my gems are installed?


Installing Ruby Gems