In order for TextMate to run Ruby 1.9+, we'll need to do a little legwork:
1. Install rvm (Ruby Version Manager) if you have not already:
``` $ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) ```2. Install Ruby 1.9.2:
``` $ rvm install 1.9.2 $ rvm use 1.9.2 --default ```3. Update TextMate's osx-plist for Ruby 1.9:
``` $ git clone git://github.com/kballard/osx-plist.git $ cd osx-plist/ext/plist $ ruby extconf.rb && make $ cp plist.bundle /Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/ ```4. Make TextMate aware that we want to use Ruby 1.9.2:
Prepend your Ruby 1.9.2 installation location to your TextMate PATH shell variable. Your PATH shell variable should look something like:
/Users/username/.rvm/rubies/ruby-1.9.2-p290/bin:/usr/bin:/usr/sbin
Create a TextMate shell variable named GEM_PATH and set it to the path of your newly installed 1.9.2 gems. Should look something like:
/Users/username/.rvm/gems/ruby-1.9.2-p290
5. Now, let's install a couple of gems:
``` $ gem install savon $ gem install rubyzip ```*Note: DO NOT use sudo to work with RVM gems (http://beginrescueend.com/rubies/rubygems)
6. Finally, we need to create a TextMate shell variable that tells MavensMate where to put your projects. Create a shell variable named FM_PROJECT_FOLDER and set it the location of your choice:
``` /Users/username/development/projects ```Installing MavensMate via Git (recommended)
``` $ mkdir -p ~/Library/Application\ Support/TextMate/Bundles $ cd ~/Library/Application\ Support/TextMate/Bundles $ git clone git://github.com/joeferraro/MavensMate.tmbundle.git "MavensMate.tmbundle" $ osascript -e 'tell app "TextMate" to reload bundles' ```Installing MavensMate manually
- Download this project
- Unzip and rename the parent directory to "MavensMate.tmbundle"
- Double click "MavensMate.tmbundle". TextMate will automatically install the bundle
- Open TextMate, go to Preferences --> Advanced --> Shell Variables and add a Shell Variable called "FM_PROJECT_FOLDER" with the value being the location where you'd like your Salesforce.com projects to reside (for example: '/Users/joe/Projects') [*notice the absolute path*]
Open MavensMate options:
Control + Option + Command + M
Compile current metadata:
Control + Option + Command + C
We recommend the following to augment MavensMate:
- ProjectPlus TextMate plugin >>> adds nifty SVN/Git icons to project folder/file icons http://ciaranwal.sh/projectplus