Created
August 19, 2012 23:54
-
-
Save keeperofthenecklace/3398671 to your computer and use it in GitHub Desktop.
Bundler && RVM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Miscellenaeous | |
------------------- | |
cd ../.. | |
pwd - displays path | |
grep -ir acts_as_json - display acts_as_jason in which file | |
gem list | grep rspec - list all rspec associated files | |
gem list | grep friendly_id | |
grep rspec Gemfile.lock - displays all rpec gem in the gemfile.lock. You shud b in dir. | |
Bundler Primary Command | |
--------------------- | |
bundle - install gems from gemfile | |
bundle update - Update dependencies to their latest versions | |
bundle package - Package the .gem files required by your application into the vendor/cache | |
bundle exec - bundle exec | |
bundle config - Specify and read configuration options for bundler | |
Bundler Utilities Command | |
--------------------- | |
bundle check - requirements for your application are installed | |
bundle list - Show all of the gems in the current bundle | |
bundle show - Show the source location of a particular gem in the bundle | |
bundle outdated - Show all of the outdated gems in the current bundle | |
bundle console - Start an IRB session in the context of the current bundle | |
bundle open - Open an installed gem in the editor eg. bundle open tcauth | |
bundle viz - Generate a visual representation of your dependencies <<<<<<< HEAD | |
bundle benchmark | |
bundle init - Generate a simple Gemfile, placed in the current directory | |
bundle gem - reate a simple gem, suitable for development with bundler | |
RVM | |
------------ | |
rvm help | |
which rvm | |
rvm reload | |
sudo mv spec spec.system | |
bundle exec rspec spec/controllers/brigades_controller_spec.rb | |
gem search -r attachment | |
RVM SETTING UP | |
---------------\ | |
$> ruby -v, rvm -v, rails -v | |
$> gem env gemdir - indicates which gems u using | |
$> rvm system - use the system implementation | |
**switching to a project | |
$>cd to {dir} | |
it-MacBook-Albert:000_POSTS$ touch .rvmrc - creates a rvmrc file | |
it-MacBook-Albert:000_POSTS$ vi .rvmrc - opens the rvmrc file in vi | |
** add rvm ree@ree_project - create the gemset | |
**rvm ruby-1.9.2-p290@terracycleapi3 | |
it-MacBook-Albert:000_POSTS$ cd out/in of dir to update dir | |
it-MacBook-Albert:000_POSTS$ rvm install terracycleapi3 | |
it-MacBook-Albert:000_POSTS$ rvm gemset create terracycle-3 | |
it-MacBook-Albert:000_POSTS$ cd out/in of dir to update dir | |
it-MacBook-Albert:000_POSTS$gem install bundler | |
it-MacBook-Albert:000_POSTS$gem env gemdir | |
it-MacBook-Albert:000_POSTS$ bundle install - after updating gemfile | |
it-MacBook-Albert:000_POSTS$ bundle install --without developmet test | |
it-MacBook-Albert:000_POSTS$ bundle install --without test | |
it-MacBook-Albert:000_POSTS$ bundle vendor *install in vendor directory | |
it-MacBook-Albert:000_POSTS$ bundle install vendor --disable-shared-gems install gems even when they've been installed end | |
it-MacBook-Albert:000_POSTS$ bundle update - update the gem file and store in Gemfile.lock | |
it-MacBook-Albert:000_POSTS$ bundle package - package all gems in vendor.cache directory | |
it-MacBook-Albert:000_POSTS$ bundle exec cucumber - Non rails script must be executed. | |
RVM changing ruby ver. (trying 1.9.3) | |
-------------------------------------- | |
it-MacBook-Albert:000_POSTS$ rvm get head | |
it-MacBook-Albert:000_POSTS$ rvm load | |
it-MacBook-Albert:000_POSTS$ rvm install 1.9.3-preview1 | |
it-MacBook-Albert:000_POSTS$ rvm use 1.9.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment