… of many things …

… of many things … header image 4

Entries Tagged as 'Ruby'

RailsConf 2007

May 20th, 2007 · No Comments

Some quick thoughts on RailsConf 2007:

the overwhelming thing is that I think it’s a shame that we can’t have a conference for geeks without degrading to the basest forms of entertainment

I realize I can’t impose my morality on anyone else, but uses of absolutely inane four-letter words is completely unnecessary.  Why can’t we keep a […]

[Read more →]

Tags: Computing · Ruby

Rails plugin for ViM

January 9th, 2007 · No Comments

This is a webcast showing the use of the rails.vim plugin that enables shortcuts in Vim for Rails. Some of the functionality (specifically command completion via CTRL+X CTRL+U) is only available with > Vim 7.0.

[Read more →]

Tags: Ruby

Rails vs. Seaside

June 22nd, 2006 · No Comments

Rails vs. Seaside
I have started my first app in Rails at work. Though I find it’s ease of database access really appealing, I am not convinced that I find it a better suit than Seaside. There is something about programming everything in Smalltalk that is so much more appealing than figuring out “OK, […]

[Read more →]

Tags: Software · Ruby · Smalltalk

Creating Test Suites In Ruby

January 6th, 2006 · No Comments

The following is one way to create a suite of tests automatically in Ruby. There are probably better ways, but this works for me.
PLAIN TEXT
RUBY:

require 'test/unit'

require 'test/unit/testsuite'

require 'test/unit/ui/gtk2/testrunner'

require 'test/unit/ui/console/testrunner'

 

class AllTests

  TESTS = Array.new

end

 

class Class

  def inherited(arg)

    if arg <Test::Unit::TestCase

      AllTests::TESTS <<arg

    end

  end

end

 

Dir.glob('*test.rb').each {|f|

  require f

}

 

class AllTests

  def self.suite

    [...]

[Read more →]

Tags: Software · Ruby