Ruby: December 2006 Archives

Three releases today:

sudo gem install -y heckle

Also coming soon: a post on how heckle beats the crap out misleading metrics like coverage.

ParseTree version 1.6.3

ParseTree is a C extension (using RubyInline) that extracts the parse tree for an entire class or a specific method and returns it as a s-expression (aka sexp) using ruby's arrays, strings, symbols, and integers.

Changes:

  • 1 bug fix:
    • ParseTree::translate was trying to translate inherited class methods.

ruby2ruby version 1.1.3

ruby2ruby provides a means of generating pure ruby code easily from ParseTree's Sexps. This makes making dynamic language processors much easier in ruby than ever before.

Changes:

  • 1 minor enhancement
    • Unit tests do self-translation and retesting for 3 generations! Solid. BAM!
  • 1 bug fixes
    • iasgn inside masgn was totally borked in ruby2ruby.

heckle version 1.1.1

Heckle is a mutation tester. It modifies your code and runs your tests to make sure they fail. The idea is that if code can be changed and your tests don't notice, either that code isn't being covered or it doesn't do anything.

Changes:

  • 3 bug fixes:
    • Load tests properly when supplying method name.
    • Make sure random symbols have at least one character.
    • Removed all extra warnings from the unit tests. Consolidated and cleaned.

Heckle version 1.1.0 has been released!

http://www.rubyforge.org/projects/seattlerb by Ryan Davis and Kevin Clark

From http://glu.ttono.us/articles/2006/12/19/tormenting-your-tests-with-heckle :

Heckle is a mutation tester. It modifies your code and runs your tests to make sure they fail. The idea is that if code can be changed and your tests don’t notice, either that code isn’t being covered or it doesn’t do anything.

It’s a little weird, I know, but I like to think about it as pen-testing. It’s like hiring a white-hat hacker to try to break into your server and making sure you detect it. You learn the most by trying to break things and watching the outcome.

Anyway, Heckle was inspired by Jester, and Ryan Davis wrote a proof of concept at RubyConf. As he notes, I went a little nuts and much of the current implementation I rewrote that night or on the plane home.

Changes:

1.1.0 / 2006-12-19

  • 12 major enhancements:
    • Able to roll back original method after processing.
    • Can mutate numeric literals.
    • Can mutate strings.
    • Can mutate a node at a time.
    • Can mutate if/unless
    • Decoupled from Test::Unit
    • Cleaner output
    • Can mutate true and false.
    • Can mutate while and until.
    • Can mutate regexes, ranges, symbols
    • Can run against entire classes
    • Command line options!

http://www.rubyforge.org/projects/seattlerb by Ryan Davis and Kevin Clark

ruby2ruby 1.1.2 Released

| | Comments (0)

ruby2ruby version 1.1.2 has been released!

sudo gem install ruby2ruby

ruby2ruby provides a means of generating pure ruby code easily from ParseTree's Sexps. This makes making dynamic language processors much easier in ruby than ever before.

Changes:

1.1.2 / 2006-12-19

  • 2 minor enhancements
    • Improved []= and [] to be more idiomatic.
    • Support for nested whens (from when case has no expression).
  • 3 bug fixes
    • Fixed case output when there is no case expression.
    • NEARLY have RubyToRuby self-cloning and passing tests again.
    • Minor cleanup

ParseTree 1.6.2 Released

| | Comments (0)

ParseTree version 1.6.2 has been released!

sudo gem install ParseTree

ParseTree is a C extension (using RubyInline) that extracts the parse tree for an entire class or a specific method and returns it as a s-expression (aka sexp) using ruby's arrays, strings, symbols, and integers.

Changes:

  • 2 minor enhancements:
    • ParseTree::translate can now take :"self.method".
    • Improved PT tests for [], []=
  • 1 bug fixes:
    • Fixed a bug in ParseTree where cases w/o exprs were malformed.

ZenTest version 3.4.3 released

| | Comments (5)

ZenTest version 3.4.3 has been released!

ZenTest provides 4 different tools and 1 library: zentest, unit_diff, autotest, multiruby, and Test::Rails.

ZenTest scans your target and unit-test code and writes your missing code based on simple naming rules, enabling XP at a much quicker pace. ZenTest only works with Ruby and Test::Unit.

unit_diff is a command-line filter to diff expected results from actual results and allow you to quickly see exactly what is wrong.

autotest is a continous testing facility meant to be used during development. As soon as you save a file, autotest will run the corresponding dependent tests.

multiruby runs anything you want on multiple versions of ruby. Great for compatibility checking!

Test::Rails helps you build industrial-strength Rails code.

Changes:

3.4.3 / 2006-12-19

  • 2 minor enhancements: + Add asserttitle and asserth (for header).
  • 2 bug fixes: + Rereleased against latest version of hoe to fix load path problems. + Fix case ViewTestCase for case-sensitive file systems.

rubyforge now supports rsync!!

| | Comments (1)

This just in...

rubyforge has added support for rsync, making website updates and cvs/svn backups easier than ever!

image_science version 1.0.0 has been released!

http://rubyforge.org/projects/seattlerb

ImageScience is a clean and happy Ruby library that generates thumbnails -- and kicks the living crap out of RMagick. Oh, and it doesn't leak memory like a sieve. :)

For more information including build steps, see our project page.

Changes:

1.0.0 / 2006-12-01

  • 1 major enhancement
    • Birthday!

About this Archive

This page is a archive of entries in the Ruby category from December 2006.

Ruby: November 2006 is the previous archive.

Ruby: January 2007 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Pages

Powered by Movable Type 4.1