Ruby on Rails: configuration Rails rake ruby setup sub directories tdd test
by bseanvt
leave a comment
environment: date time sublime snippet signature snippets sublime text 2 text editors
by bseanvt
leave a comment
How to Create a Date Time Snippet in Sublime Text 2 (Dynamic Signature with Time Stamp)
You’ll have to create a new plugin. From the menu bar select
Tools > New Plugin
Copy the Python script from the signature.py file. Remember to replace your email address (it’s example.com).
Save the file, signature.py, is fine. Next open up Preferences > Key Bindings – Default and add a new entry.
ctl+alt+s will add the snippet to the first line of your file.
Transform Matching Text with Gsub in Ruby and Regular Expression
Here is a gist that demonstrates how easy it is to transform text using #gsub and a block with Ruby.
For more helpful string extensions in Ruby check out our Ruby Gem on GitHub https://github.com/AgilionApps/rails_extensions
ruby Ruby on Rails: autotest color hacks ruby tdd testing tools workarounds workflow
by bseanvt
1 comment
Color Output with Test:Unit, AutoTest and Ruby 1.9
If you are testing using Test:Unit (rather than RSpec) and you’re using Ruby 1.9.* colorized output of your tests using Autotest will not be immediately available. Since, 1.9 comes with mini test the test/unit/ui/console/testrunner.rb script is not loaded and not available and will break your tests.
The solution is to require Test:Unit version 2.0.0 in your Gemfile, require the testrunner.rb script in test/test_helper.rb and reopen and implement the guess_color_availability method.
Then you can just run the autotest command (or bundle exec autotest) from your project directory. When you save a file your tests will be run for the file that has been changed and the results will be fully colorized!
ruby: data structures hash how to programming ruby yaml
by bseanvt
leave a comment


