kyle shank.

    2009/8/23

  1. Getting JRuby and Autospec to work

    In order to get JRuby and script/autospec to work with in a Rails app you need to do a bit of hacking on your own.  The basic problem is the autospec script attempts to call the autotest executable located in /usr/bin or /usr/local/bin from the command line through a system call.  That script by default uses the ruby and not the jruby executable within your local environment.  This will obviously fail.  Instead I went ahead and copied the contents of the autotest script into script/autospec so everything runs nice and smooth with a jruby environment.  Here is my script:

    #!/usr/bin/env jruby
    gem ‘test-unit’, ‘1.2.3’ if RUBY_VERSION.to_f >= 1.9
    ENV[‘RSPEC’] = ‘true’     # allows autotest to discover rspec
    ENV[‘AUTOTEST’] = ‘true’  # allows autotest to run w/ color on linux

    require ‘rubygems’

    version = “>= 0”

    if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
    version = $1
    ARGV.shift
    end

    gem ‘ZenTest’, version
    load Gem.bin_path(‘ZenTest’, ‘autotest’, version)

    Now simply run ./script/autospec while you develop and autotest will work as it did before.  Make sure you have the ZenTest and autotest-rails gems installed into your JRuby environment (using jgem).

  2. 2009/8/22

    [Flash 9 is required to listen to audio.]
    293 plays • download

    codecomplete:

    Code Complete #2: JRuby with Charles Nutter

    We discuss the origins of JRuby, JRuby on Android/AppEngine and how to run your Ruby/Rails project on Java with JRuby.

    Charles is one of the lead developers of JRuby and now is hacking away at Engine Yard.

    The intro and outro music of this podcast is from an internet archive backup of Why the Lucky Stiff’s performance at the very first RailsConf from June 2006.

    Follow Charles on Twitter and his blog.

    Follow Kyle on Twitter and Tumblr.

    Subscribe to this podcast in iTunes or RSS.

    2009/8/21

  3. Netroots Nation 2009 photo set
  4. 2009/8/17

  5. RightOnline 2009 Highlight Reel

    I snuck into the conservative’s conference while at Netroots Nation.  A lot of the conversation focuses on the audience’s love of DDT (yes the chemical).

  6. 2009/8/13

  7. Howard Dean’s Prescription for Real Healthcare Reform for the iPhone
Finally released.  Developed by me.
  8. 2009/8/7

  9. Republican Strategy: Obama is HITLER
  10. Republican Mel Martinez quits the Senate
  11. 2009/7/31

  12. Cash For Clunkers Stimulus Program Goes Through $1 Billion in 6 days
  13. 2009/7/29

  14. Glenn Beck calls Obama a racist
  15. 2009/7/28

  16. Harry Reid and the 60 vote myth

about.

pressflip (i made this)

github (i write code you can see)

twitter (i say things in less than 140 characters)