Skip to content

Commit

Permalink
Fisting arel specs -- still needs tree_manager and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zenspider committed Oct 18, 2010
1 parent 7959e55 commit e1ebe6e
Show file tree
Hide file tree
Showing 35 changed files with 6,108 additions and 404 deletions.
26 changes: 26 additions & 0 deletions .autotest
@@ -0,0 +1,26 @@
# -*- ruby -*-

# require 'autotest/restart'

ENV['GEM_PATH'] = "tmp/isolate/ruby-1.8"

module Autotest::Restart
Autotest.add_hook :updated do |at, *args|
if args.flatten.include? ".autotest" then
warn "Detected change to .autotest, restarting"
cmd = %w(autotest)
cmd << " -v" if $v
cmd += ARGV

exec(*cmd)
end
end
end

Autotest.add_hook :initialize do |at|
at.add_exception 'tmp'
at.testlib = "minitest/autorun"

at.find_directories = ARGV unless ARGV.empty?
end

6 changes: 5 additions & 1 deletion Rakefile
Expand Up @@ -2,6 +2,7 @@ require "rubygems"
gem 'hoe', '>= 2.1.0'
require 'hoe'

Hoe.plugin :isolate
Hoe.plugin :gemspec # `gem install hoe-gemspec`

Hoe.spec 'arel' do
Expand All @@ -13,5 +14,8 @@ Hoe.spec 'arel' do
self.readme_file = 'README.markdown'
self.extra_rdoc_files = FileList['README.markdown']
self.extra_dev_deps << ['rspec', '~> 1.3.0']
self.testlib = :rspec
self.extra_dev_deps << ['ZenTest']
self.extra_dev_deps << ['minitest']
self.extra_dev_deps << ['hoe-gemspec']
self.testlib = :minitest
end

0 comments on commit e1ebe6e

Please sign in to comment.