2010-02-04

Isolate for Rails Apps

0 comments

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.

2010-02-03

rdoc_osx_dictionary version 1.2.0 has been released!

0 comments

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

2010-02-02

rdoc_osx_dictionary version 1.1.1 has been released!

0 comments

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_osx_dictionary version 1.1.1 has been released!

0 comments

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

2010-02-01

rdoc_osx_dictionary version 1.1.0 has been released!

0 comments

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

2010-01-28

rdoc_osx_dictionary version 1.0.1 has been released!

0 comments

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

Changes:

1.0.1 / 2010-01-28

  • 4 bug fixes:

    • Added known bad XML to the exclude list.
    • Added missing dependency on rdoc 2 gem. Old rdoc won't cut it.
    • Fixed rsync command
    • Terminal.app in UTF8 breaks on some input. Fix by clearing $LANG.
  • http://rubyforge.org/projects/seattlerb

2010-01-27

RDoc via OSX's Dictionary.app

0 comments

rdoc_osx_dictionary.png

sudo gem install rdoc_osx_dictionary

rdoc_osx_dictionary version 1.0.0 has been released!

0 comments

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

Changes:

1.0.0 / 2010-01-27

rubygems-sing version 1.2.0 has been released!

0 comments

"Sings" a gem's implementation.

Changes:

1.2.0 / 2010-01-27

  • 3 minor enhancements:

    • Added --verbose, to print more like a player piano (blank lines in between).
    • Added -r to sing gems you REALLY don't want to install (rails, sans deps).
    • Added musical notes to output. (topFUNkay! OW!)
  • http://rubyforge.org/projects/seattlerb

2010-01-26

rubygems-sing version 1.1.0 has been released!

0 comments

"Sings" a gem's implementation.

Changes:

1.1.0 / 2010-01-26