Agile Elsewhere: github inline editing

October 23rd, 2008 by vinbarnes -1 comments »

If I recall, this feature was released back in August so I'm a little late in heaping my praise gravy on the Thanksgiving turkey that is the github crew. But this is the first time I had the need to use it. I noticed some formatting for the README.rdoc in my project was b0rked.

I clicked the little edit link. Made my changes. Added a commit message. Hit the Commit button. Voila! And all on one page. Easy as cake!

Talk about agile!

OGC electioneering adds yard signs!

October 21st, 2008 by rickbradley 0 comments »

Ready for the election to be over? Enlightened about your once and future disenfranchisement? Need more fun than getting cranked up on Olde English and driving over the McBama signs in your neighbors’ yards?

OGC, as always, is here to help.

Exercise your First Amendment rights as a fifth-year senior in the elecotral college with our brand-spankin’-new “I’ll Vote When I’m Dead” Yard Signs:

Get ‘em now!

And remember: the bottom of the boot always looks the same!

Orlando (or close enough) or bust

October 20th, 2008 by ymendel 0 comments »

The OGs will be out in force at RubyConf 2008 in sunny near-Orlando, Florida. Kevin and Rick will be attending, hacking, heckling, and possibly giving away fabulous prizes. Yossef (that’s me) will be giving a talk along with Mr. Ben Bleything and the inimitable (I’d like to see you try) Giles Bowkett about music generation and manipulation.

Come see us. We’ll chat. Maybe we’ll get you a beer.

non-auto spec

October 8th, 2008 by ymendel 4 comments »

I've been resisting updating a few gems because I either don't want the changes or simply don't know what to think about them. Today, however, I decided to get up-to-date on almost everything, and so I went for RSpec 1.1.8. Before this, I was running 1.1.4, and the change I was unsure about involved the autospec command. From the changelog:

IMPORTANT: use ‘script/autospec’ (or just ‘autospec’ if you have the rspec gem installed) instead of ‘autotest’. We changed the way autotest discovers rspec so the autotest executable won‘t automatically load rspec anymore. This allows rspec to live side by side other spec frameworks without always co-opting autotest through autotest‘s discovery mechanism.

I ignore this at first because that's just the way I am, and no tests are run. So I try autospec, and still no tests are run. I managed to track it down to an addition from Rick that's pretty helpful with large projects. Simply add this to your .autotest file

Autotest.send(:alias_method, :real_find_files, :find_files)
Autotest.send(:define_method, :find_files) do |*args|
  pattern = ENV['AUTOTEST']
  files = real_find_files
  if pattern and !pattern.empty?
    files = files.reject { |k, v|  !Regexp.new(pattern).match(k) }
  end
  files
end
(note the use of Hash#reject because Hash#select is stupid)


and then, to make things even easier, define an alias (or function)

ta() {
  AUTOTEST=${1:-.} autotest
}

It turns out that for some reason, autospec sets ENV['AUTOTEST'] to true. So I changed it to use a different name, and still no tests were running, but this time I see files in the command line.

Then I take a closer look.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -S spec/spec_helper.rb spec/playlist_spec.rb spec/pj_spec.rb spec/track_spec.rb -O spec/spec.opts

spec/spec_helper.rb, you say? That's interesting. Before the upgrade, it was different.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -S /Library/Ruby/Gems/1.8/gems/rspec-1.1.4/bin/spec -O spec/spec.opts spec/playlist_spec.rb

Right now I'm looking at upgrading to a working version of RSpec, like 1.1.4.


Update (22 Oct 2008): RSpec 1.1.9 fixes the problem (by trying to run the specs and not spec/spec_helper.rb). Happy times.