Seattle.rb: May 2007 Archives

We just poked around to get IS deployed on an apache/fcgi setup. Two things go wrong in the usual configuration.

  1. apache is running the process but HOME wasn't set so we had to set INLINEDIR.
  2. INLINEDIR was initally set to /home/limespot but apache can't write to that dir.
  3. In order to fix that, we set INLINEDIR to /home/limespot/inline and made that dir owned by apache:apache.
  4. Oddly, we got another error after that, as ld wasn't found. I think the error message was wrong. cc shouldn't be runnable if ld isn't runnable. We fixed that by setting up a minimal PATH.

In all, here were our conf tweaks:

  DefaultInitEnv INLINEDIR /home/limespot/inline
  DefaultInitEnv PATH      /usr/local/bin:/usr/bin:/bin

and our shell tweaks:

  % rm -rf ~limespot/.ruby_inline
  % mkdir ~limespot/inline
  % chown apache:apache !$

EDIT: on second thought, the INLINEDIR should go in config/environments/production.rb, probably the PATH too, but I don't understand why that one occured yet.

ADDED 2007-08-28: INLINEDIR in production.rb is the way to go for mongrel setups.

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 http://seattlerb.rubyforge.org/

Changes:

1.1.3 / 2007-05-30

DESCRIPTION:

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.

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
  • config_hoe - Create a fresh ~/.hoerc file
  • debug_gem - Show information about the gem.
  • default - Run the default tasks
  • docs - Build the docs HTML Files
  • email - Generate email announcement file.
  • gem - Build the gem file only.
  • install - Install the package. Uses PREFIX and RUBYLIB
  • install_gem - Install the package as a gem
  • multi - Run the test suite using multiruby
  • package - Build all the packages
  • post_blog - Post announcement to blog.
  • 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.
  • test_deps - Show which test files fail when run alone.
  • uninstall - Uninstall the package.

Changes:

1.2.1 / 2007-05-21

  • 8 minor enhancements:
    • Allow for spaces in filenames in manifest. Thanks to Aaron Patterson.
    • Allow rsync flags to be set.
    • Allow rdoc destination directory to be set.
    • Deal with bad line-endings. Stupid windoze users... :(
    • Added WINDOZE check for diff.exe and look for gdiff first.
    • Use gdiff if available, diff otherwise. Allows to work on borked Solaris.
    • Move RDoc to attr* from big 'ol chunk at the top of the class.
    • Basic conversion of history/urls from rdoc to markdown.
  • 1 bug fixes:

    • Fixed executables regexp to /^bin/.
  • http://rubyforge.org/projects/seattlerb/

  • http://seattlerb.rubyforge.org/hoe/
  • ryand-ruby@zenspider.com

A simplistic script which automates a limited set of rubyforge operations

  • Run 'rubyforge help' for complete usage.
  • Setup: For first time users AND upgrades to 0.4.0:
    • rubyforge setup
    • edit ~/.rubyforge/user-config.yml
    • rubyforge config
  • Don't forget to login! logging in will store a cookie in your .rubyforge directory which expires after a time. always run the login command before any operation that requires authentication, such as uploading a package.

Changes:

  • 0.4.2 / 2007-05-21:
    • Fix for windoze users (spaces in path).
    • Added check for extant release.
    • Added default hash for first-time releases.

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.

sudo gem install heckle

Changes:

1.4.0 / 2007-05-18

  • 2 major enhancements:
    • Method calls are now heckled (by removal).
    • Assignments are now heckled (by value changing).
  • 3 minor enhancements:
    • Added --focus to feel the Eye of Sauron (specify unit tests to run).
    • Specify nodes to be included/excluded in heckle with -n/-x.
    • Test only assignments with --assignments

Best change description for this week:

FEEL THE EYE OF SAURON!!! MUAHAHAHAHA!!!

... heckle, now with EyeOfSauron™

About this Archive

This page is a archive of entries in the Seattle.rb category from May 2007.

Seattle.rb: April 2007 is the previous archive.

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