public
Description: Ruby on Rails TextMate bundle [Learn it with PeepCode - http://peepcode.com/products/textmate-for-rails-2]
Homepage: http://groups.google.com/group/rubyonrails-textmate
Clone URL: git://github.com/drnic/ruby-on-rails-tmbundle.git
Click here to lend your support to: ruby-on-rails-tmbundle and make a donation at www.pledgie.com !
More drying..
lawrencepit (author)
Tue Feb 26 22:00:02 -0800 2008
commit  8b5780f2bb428348f8e27eb43f3d50b21dcbdcdf
tree    83b5ebdd6ad69cf983ebbf705cec16cdc51879b7
parent  11a501781e0bd9cedf846d8705aa402c75833409
...
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
86
 
87
88
89
...
68
69
70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
 
86
87
88
89
0
@@ -68,22 +68,22 @@ File.open(src) do |fsrc|
0
   
0
   # a few extra supported markup commands specifically for documenting tm bundles
0
   [
0
- [%r!COMMAND!, '⌘'],
0
- [%r!TAB!, '⇥'],
0
- [%r!SHIFT!, '⇧'],
0
- [%r!OPTION!, '⌥'],
0
- [%r!CONTROL!, '⌃'],
0
- [%r!BACKSPACE!, '⌫'],
0
- [%r!DELETE!, '⌦'],
0
- [%r!RETURN!, '↩'],
0
- [%r!ENTER!, '⌅'],
0
- [%r!ESCAPE!, '⎋'],
0
- [%r!DOWN!, '↓'],
0
- [%r!UP!, '↑'],
0
- [%r!LEFT!, '←'],
0
- [%r!RIGHT!, '→']
0
+ ['COMMAND', '⌘'],
0
+ ['TAB', '⇥'],
0
+ ['SHIFT', '⇧'],
0
+ ['OPTION', '⌥'],
0
+ ['CONTROL', '⌃'],
0
+ ['BACKSPACE', '⌫'],
0
+ ['DELETE', '⌦'],
0
+ ['RETURN', '↩'],
0
+ ['ENTER', '⌅'],
0
+ ['ESCAPE', '⎋'],
0
+ ['DOWN', '↓'],
0
+ ['UP', '↑'],
0
+ ['LEFT', '←'],
0
+ ['RIGHT', '→']
0
   ].map do |regexp, replacement|
0
- body_text.gsub!(regexp, replacement)
0
+ body_text.gsub!(Regexp.new(regexp), replacement)
0
   end
0
   
0
   title = RedCloth.new(title_text).to_html.gsub(%r!<.*?>!,'').strip

Comments

    No one has commented yet.