Permalink
Browse files

Merge remote-tracking branch 'm/ruby-debug-live-templates'

  • Loading branch information...
2 parents d382ce2 + 7d82f1f commit b4e225890597302db8d02fd8dba6769ab28af4cd pivotal committed May 21, 2012
Showing with 57 additions and 0 deletions.
  1. +18 −0 README.markdown
  2. +39 −0 templates/Ruby.xml
View
18 README.markdown
@@ -17,6 +17,24 @@ To install these keybindings into RubyMine copy the pivotal.xml file to this pat
If RubyMine is running you will need to restart before the keybindings will be available.
+RubyMine Live Templates for working with Ruby
+---------------------------------------------
+
+A few handy shortcuts in addition to those shipping with RubyMine.
+
+**To Install:**
+
+Clone & then copy Ruby.xml into this path:
+
+`~/Library/Preferences/RubyMineXX/templates/`
+
+...or you can just run the following command:
+
+`wget --no-check-certificate -O ~/Library/Preferences/RubyMineXX/templates/Ruby.xml http://github.com/pivotal/Pivotal-Preferences-RubyMine/raw/master/templates/Ruby.xml`
+
+If RubyMine is running you will need to restart before the templates will be available.
+
+
RubyMine Live Templates for writing Palm(R) webOS(tm)
-----------------------------------------------------
View
39 templates/Ruby.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<templateSet group="Ruby">
+ <template name="ps" value="puts &quot;===&gt; $VAR_COPY$: #{($VAR$).inspect}&quot;" description="output for debugging" toReformat="false" toShortenFQNames="true">
+ <variable name="VAR" expression="" defaultValue="var" alwaysStopAt="true" />
+ <variable name="VAR_COPY" expression="VAR" defaultValue="" alwaysStopAt="false" />
+ <context>
+ <option name="HTML_TEXT" value="false" />
+ <option name="HTML" value="false" />
+ <option name="XSL_TEXT" value="false" />
+ <option name="XML" value="false" />
+ <option name="RUBY" value="true" />
+ <option name="RHTML" value="false" />
+ <option name="CUCUMBER_FEATURE_FILE" value="false" />
+ <option name="HAML" value="false" />
+ <option name="CSS" value="false" />
+ <option name="JAVA_SCRIPT" value="false" />
+ <option name="SQL" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="rle" value="Rails.logger.error &quot;===&gt; $VAR_COPY$: #{($VAR$).inspect}&quot;" description="Rails logger error output for debugging" toReformat="false" toShortenFQNames="true">
+ <variable name="VAR" expression="" defaultValue="" alwaysStopAt="true" />
+ <variable name="VAR_COPY" expression="VAR" defaultValue="" alwaysStopAt="false" />
+ <context>
+ <option name="HTML_TEXT" value="false" />
+ <option name="HTML" value="false" />
+ <option name="XSL_TEXT" value="false" />
+ <option name="XML" value="false" />
+ <option name="RUBY" value="true" />
+ <option name="RHTML" value="false" />
+ <option name="CUCUMBER_FEATURE_FILE" value="false" />
+ <option name="HAML" value="false" />
+ <option name="CSS" value="false" />
+ <option name="JAVA_SCRIPT" value="false" />
+ <option name="SQL" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+</templateSet>

0 comments on commit b4e2258

Please sign in to comment.