Sprockets JavaScript dependency management tool using clean RVM


/ Published in: Bash
Save to your folder(s)

Use this snippet in Linux shell to install RVM and set it up for use with Sprockets.


Copy this code and paste it in your HTML
  1. # https://rvm.io
  2. hash curl 2>/dev/null || { echo >&2 "I require curl but it's not installed. Aborting."; exit 1; }
  3.  
  4. # get ruby version manager
  5. curl -L https://get.rvm.io | bash -s stable --ruby
  6.  
  7. # compile-in external libraries with ruby
  8. rvm pkg install openssl
  9. rvm pkg install zlib
  10.  
  11. # RECOMPILE: if rvm installation already contains ruby versions
  12. # $ rvm reinstall $(rvm list strings | tr "\n" ',')
  13. # $ rvm all-gemsets do rvm gemset pristine
  14.  
  15. # install required (baseline) ruby version and recent releases
  16. rvm install 1.8.7-latest
  17. rvm install 1.9.3-latest
  18.  
  19. # create a gemset and set it as default
  20. rvm gemset create jsprocket
  21. rvm use 1.9.3-latest@jsprocket --default
  22.  
  23.  
  24. # Checks:
  25. #-------
  26. # ruby -v
  27. # rvm gemset list
  28. # rvm list

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.