Tagged: textmate

Textmate RSpec Bundle Error

After installing the Textmate RSpec bundle I started getting this error:

/Applications/TextMate.app/Contents/SharedSupport/Support/lib/builder.rb:86:in blank_slate_method_added': stack level too deep (SystemStackError) from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/builder.rb:86:inblank_slate_method_added' from /Library/Ruby/Gems/1.8/gems/builder-2.1.2/lib/blankslate.rb:84:in method_added' from /Library/Ruby/Gems/1.8/gems/builder-2.1.2/lib/blankslate.rb:104 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:ingem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in require' from /Users/jbasdf/projects/red/vendor/rails/activesupport/lib/active_support/basic_object.rb:21 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:ingem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in require' ... 32 levels... from /Users/jbasdf/Library/Application Support/TextMate/Bundles/RSpec.t...

Continue Reading →

Ruby on Rails i18n with the Rails I18n Textmate bundle

For the longest time I've deal with internationalization in Ruby on Rails by hand. This is a tedious process that involves switching back and forth between the file containing the string and your localization yaml file. I was looking at Ruby Mine and found that it supports localization and appears to do many of the things that I like about Textmate. I've used Resharper with Visual Studio in the past and I admit that I can't live without it in the .Net world. I downloaded the Ruby Mine demo and tried it out on an existing project. For some reason the popup that is supposed to say 'I18n string value' that they show in the demos never came up for me unless I changed my strings from

 <p>Some String</p> 
to
 <%= 'Some String' %> 
I didn't really feel like having to change my string into that format was going to help my productivity so I abandoned Ruby Mine and instead started looking at the Rails I18n Textmate bundle from Sven Fuchs. Look inside the too...

Continue Reading →