Sha256: 2a1d833cdb802e081efc86638109c7ce8de503b657a90fca4f1d935fc8ac5198
Contents?: true
Size: 1.52 KB
Versions: 6
Compression:
Stored size: 1.52 KB
Contents
require 'rubygems' 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 RUBY = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']).sub(/.*\s.*/m, '"\&"') RUBYDOCTEST = ENV['RUBYDOCTEST'] || "#{RUBY} -S rubydoctest" $:.unshift File.join(File.expand_path(File.dirname(__FILE__)), '/../hobofields/lib') $:.unshift File.join(File.expand_path(File.dirname(__FILE__)), '/../hobosupport/lib') require 'hobosupport' require 'hobofields' namespace "test" do desc "Run the doctests" task :doctest do |t| files=Dir['test/*.rdoctest'].map {|f| File.expand_path(f)}.join(' ') exit(1) if !system("#{RUBYDOCTEST} #{files}") end desc "Run the unit tests" task :unit do |t| Dir["test/test_*.rb"].each do |f| exit(1) if !system("#{RUBY} #{f}") end end end require 'jeweler' Jeweler::Tasks.new do |gemspec| gemspec.version = HoboFields::VERSION gemspec.name = "hobofields" gemspec.email = "tom@tomlocke.com" gemspec.summary = "Rich field types and migration generator for Rails" gemspec.homepage = "http://hobocentral.net/" gemspec.authors = ["Tom Locke"] gemspec.rubyforge_project = "hobo" gemspec.add_dependency("rails", [">= 2.2.2"]) gemspec.add_dependency("hobosupport", ["= #{HoboFields::VERSION}"]) end Jeweler::GemcutterTasks.new Jeweler::RubyforgeTasks.new do |rubyforge| rubyforge.doc_task = false end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
hobofields-1.1.0.pre0 | Rakefile |
hobofields-1.0.1 | Rakefile |
hobofields-1.0.0 | Rakefile |
hobofields-0.9.106 | Rakefile |
hobofields-0.9.105 | Rakefile |
hobofields-0.9.104 | Rakefile |