Seattle.rb: October 2006 Archives

After much demand, Evan set up a blog and gave rubinius a home. Check out rubinius, it is très intéressant.

Heckle: Another Rubyconf Hack

| | Comments (4)

Jester is a java test tool that finds code that is not covered by tests. It does this via bytecode mutation to modify code paths of the class under test. First it runs your tests and they should all pass (ass usual). Then it will modify conditionals for branching, change literals, and generally wreck havok, making one change at a time. By rerunning the tests per change, if they don't fail, then you've missed a test case. All in all this is pretty damn cool.

It turns out that getting a simple prototype up and running with 'if' node flipping takes about 100 lines of code. The meat of it is:

def process_defn(exp)
  self.method = exp.shift
  result = [:defn, method]

  result << process(exp.shift) until exp.empty?

  heckle(result) if should_heckle?

  return result
end

def process_if(exp)
  cond = process(exp.shift)
  t = process(exp.shift)
  f = process(exp.shift)

  if should_heckle? then
    [:if, cond, f, t]
  else
    [:if, cond, t, f]
  end
end

I've named it heckle and released it on rubyforge and Kevin Clark went insane last night and poured through it, ruby2ruby, and ParseTree to dig deeper. I haven't seen him this morning yet so I don't know if he's succeeded extending it yet. We'll see. There will be a more official release soon.

hoe 1.1.2 Released

| | Comments (0)

hoe version 1.1.2 has been released!

http://rubyforge.org/projects/seattlerb/

Hoe is a simple rake/rubygems helper for project Rakefiles. It generates all the usual tasks for projects including rdoc generation, testing, packaging, and deployment.

sudo gem install hoe

Tasks Provided:

  • announce - Generate email announcement file and post to rubyforge.
  • audit - Run ZenTest against the package
  • check_manifest - Verify the manifest
  • clean - Clean up all the extras
  • debug_gem - Show information about the gem.
  • default - Run the default tasks
  • docs - Build the docs HTML Files
  • email - Generate email announcement file.
  • install - Install the package. Uses PREFIX and RUBYLIB
  • multi - Run the test suite using multiruby
  • package - Build all the packages
  • post_news - Post announcement to rubyforge.
  • publish_docs - Publish RDoc to RubyForge
  • release - Package and upload the release to rubyforge.
  • ridocs - Generate ri locally for testing
  • test - Run the test suite. Use FILTER to add to the command line.
  • uninstall - Uninstall the package.

See class rdoc for help. Hint: ri Hoe

Changes:

1.1.2

  • Added -d and -t flags to sow to make dev or trunk subdirs for p4 and svn projects.
  • Added install_gem to further test gem builds.
  • Added test_globs to customize your test file list.
  • Removed demo.rb from clean_globs. I'm torn on this one.
  • Fixed bug in install rule.

4 releases went out the door

| | Comments (0)

I just finished releasing:

  • hoe 1.1.1
  • RubyInline 3.6.1
  • ParseTree 1.6.0
  • and new to the (official) family: ruby2ruby 1.1.0!
% sudo gem update hoe RubyInline ParseTree
% sudo gem install ruby2ruby

The biggies are:

  • ParseTree just got a major enema. 2k lines o' diff with an overall net loss of 800 loc. Awesome
  • ParseTree's new testing infrastructure is solid as all hell.
  • and it is circularly validated via ruby2ruby's tests.
  • We flushed out a bunch of completely unknown bugs by this process. About 6 nodes were broken in one way or another.

Also of note:

  • mingw32 patches for RubyInline
  • lots and lots of nice little bug fixes and enhancements all over.

hoe 1.1.0 Released

| | Comments (0)

hoe version 1.1.0 has been released!

Hoe is a simple rake/rubygems helper for project Rakefiles. It generates all the usual tasks for projects including rdoc generation, testing, packaging, and deployment.

See class rdoc for help. Hint: ri Hoe

sudo gem install hoe

Changes:

= 1.1.0 2006-10-04

  • Added sow, a command-line tool for quickly creating new projects.
  • Added check_manifest task.

Two announcements:

Skip all this blah blah and them both with one simple command:

sudo gem install hoe

rubyforge 0.3.0

I'm proud to announce that codeforpeople's rubyforge 0.3.0 has been released! This release further refines rubyforge's abilities, adding news posting and finally adding multiple file releases!

We still have a lot of plans for this library. Next on the list is to be able interact with tracker, error checking, and a much more powerful and mostly automatic configuration system.

  • 0.3.0 / 2006-10-03:
    • Added more debugging output if $DEBUG
    • Added news posting.
    • Added multiple file release to addrelease (uses addfile for extras).
    • addrelease now returns releaseid
    • Fixed config scraper to include '-' in names.

hoe 1.0.5

Hoe has become a monster I'm falling for. Tiny, simple, nicely constrained, yet rather powerful.

  • Doco cleanup.
  • Removed Manifest.txt from rdoc and added title.
  • Added changeset support.
  • Added spec_extras for easy gemspec attribute setting.
  • Added release_notes, changeset setting for releases.
  • Added paragraphs_of utility method.
  • Added email and rubyforge news announcement tasks.
  • Url attribute may now be an array of urls.

About this Archive

This page is a archive of entries in the Seattle.rb category from October 2006.

Seattle.rb: September 2006 is the previous archive.

Seattle.rb: November 2006 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