February 2010 Archives

rdoc via Apple's Dictionary.app. Automatically builds and installs an Apple Dictionary with all rdoc nicely formatted.

Inspired by: http://priithaamer.com/blog/ruby-on-rails-dictionary-for-macosx

Changes:

1.3.0 / 2010-02-09

  • 4 minor enhancements:

    • Improved hyperlinks in class definitions to point straight at methods.
    • Improved method signature output (imajes)
    • Made method signature a pre block to improve display of space formatted text.
    • Refactored and improved class output to clearly define class extensions.
  • 1 bug fix:

    • Specify exactly which ruby to execute (hinegardner)
  • http://rubyforge.org/projects/seattlerb

Isolate for Rails Apps

| | Comments (0)

I work on a lot of stuff. I'd rather have my laptop's gem installs be for my stuff, not my work stuff. I'd especially rather not deal with the version mess you get into when you've got several different rails apps. Isolate makes this incredibly easy. With just one gem system-installed, you can make every project completely standalone:

A New Rails App:

% rails blah

You can use isolate with just two files in your rails app. You just add the following:

config/preinitializer.rb

ENV['RAILS_ENV'] ||= 'development' # le sigh

require 'config/gems'

config/gems.rb

require "rubygems"
require "isolate"

Isolate.gems "vendor/isolated" do
  gem "rails", "= 2.0.2"

  environment :development do
    gem "vlad"
    gem "sqlite3-ruby"
  end

  environment :test do
    gem "minitest"
  end
end

and then...

% rake -t
(in /Users/ryan/blah2)
[1/3] Isolating rails (= 2.0.2).
[2/3] Isolating vlad (>= 0).
[3/3] Isolating sqlite3-ruby (>= 0).
Building native extensions.  This could take a while...
%

That's it! It has really made my work a lot easier! I don't have to deal with umpteen different dependencies that I'll never use on another project. I never need to have unknown artifacts breaking stuff. Everything is very cleanly documented within the Isolate.gems block. I love isolate. You should check it out if you haven't already.

rdoc via Apple's Dictionary.app. Automatically builds and installs an Apple Dictionary with all rdoc nicely formatted.

Changes:

1.2.0 / 2010-02-03

  • 3 minor enhancements:

    • Added -d flag to delete .ri directory to help me debug.
    • Loudly skip bad files created from rdoc.
    • Skip reduce\d+ methods (generated methods from racc of no value to rdoc).
  • 2 bug fixes:

    • Added extra de-duping on xml creation to fix The Bug I Cannot Repro(tm).
    • OMG I am an idiot. Generating class id string properly now. :/
  • http://rubyforge.org/projects/seattlerb

rdoc via Apple's Dictionary.app. Automatically builds and installs an Apple Dictionary with all rdoc nicely formatted.

Changes:

1.1.1 / 2010-02-02

  • 1 minor enhancement:

    • Extra munging to remove more (all?) warnings from the dictionary compiler
  • 1 bug fix:

    • Only run the hooks once per gem invocation, not once per install/uninstall
  • http://rubyforge.org/projects/seattlerb

rdoc via Apple's Dictionary.app. Automatically builds and installs an Apple Dictionary with all rdoc nicely formatted.

Changes:

1.1.0 / 2010-02-01

  • 2 minor enhancements:

    • Added -f to force rebuild.
    • Refactored system calls to a handler so failures are uniformly handled.
  • 2 bug fixes:

    • Fixed dictionary entry id munging to avoid errant duplicates.
    • Setting $LC_ALL to C to fix unicode errors discovered in iTerm.
  • http://rubyforge.org/projects/seattlerb

About this Archive

This page is an archive of entries from February 2010 listed from newest to oldest.

January 2010 is the previous archive.

March 2010 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.32-en