require 'rubygems' require 'bundler' Bundler.require spec = Gem::Specification.find_by_name 'perkins' import "#{spec.gem_dir}/lib/tasks/db_tasks.rake" ActiveRecord::Migrator.migrations_paths << "#{spec.gem_dir}/db/migrate" desc "Open an irb session preloaded with this library" task :console do sh "irb -rubygems -I lib -r ./boot.rb" end