Sha256: 7eaba7909cb56fda95c372e712ea2d7b9f86e819ea82036905f82dd2d94fc63a

Contents?: true

Size: 1.16 KB

Versions: 3

Compression:

Stored size: 1.16 KB

Contents

require 'active_record'
ActiveRecord::ActiveRecordError # hack for https://rails.lighthouseapp.com/projects/8994/tickets/2577-when-using-activerecordassociations-outside-of-rails-a-nameerror-is-thrown
require File.dirname(__FILE__) + '/lib/hobo_support.rb'

RUBY = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']).sub(/.*\s.*/m, '"\&"')
if defined?(Bundler)
  RUBYDOCTEST = 'bundle exec rubydoctest'
else
  RUBYDOCTEST = ENV['RUBYDOCTEST'] || "#{RUBY} -S rubydoctest"
end

namespace "test" do
  desc "Run the doctests"
  task :doctest do |t|
    files=Dir['test/*.rdoctest','test/hobosupport/*.rdoctest'].map {|f| File.expand_path(f)}.join(' ')
    exit(1) if !system("#{RUBYDOCTEST} --single #{files}")
  end
end

# --- build gem via Jeweler --- #

require 'jeweler'
Jeweler::Tasks.new do |gemspec|
  gemspec.version      = HoboSupport::VERSION
  gemspec.name         = "hobosupport"
  gemspec.email        = "tom@tomlocke.com"
  gemspec.summary      = "Core Ruby extensions from the Hobo project"
  gemspec.homepage     = "http://hobocentral.net/"
  gemspec.authors      = ["Tom Locke"]
  gemspec.rubyforge_project = "hobosupport"
end
Jeweler::GemcutterTasks.new

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hobosupport-1.1.0 Rakefile
hobosupport-1.0.3 Rakefile
hobosupport-1.1.0.pre4 Rakefile