Sha256: fde087a9ceebe59295899a62ad7c1a803301475cbaef30424ba57f803256d5ce
Contents?: true
Size: 1.66 KB
Versions: 1
Compression:
Stored size: 1.66 KB
Contents
require 'rubygems' require 'rake' begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = "schema_qualified_tables" gem.summary = %Q{Logical schema names for ActiveRecord models} gem.description = %Q{An ActiveRecord mix-in that makes it easier to use AR in an application which contains models which map to tables in different schemas.} gem.email = "rhett@detailedbalance.net" gem.homepage = "http://github.com/rsutphin/schema_qualified_tables" gem.authors = ["Rhett Sutphin", "Peter Nyberg"] gem.add_development_dependency "rspec", ">= 1.2" gem.add_dependency 'activerecord', '>= 2.3' gem.files.include("lib/**/*") end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" end require 'spec/rake/spectask' Spec::Rake::SpecTask.new(:spec) do |spec| spec.libs << 'lib' << 'spec' spec.spec_files = FileList['spec/**/*_spec.rb'] end Spec::Rake::SpecTask.new(:rcov) do |spec| spec.libs << 'lib' << 'spec' spec.pattern = 'spec/**/*_spec.rb' spec.rcov = true # rcov can't tell that /Library/Ruby is a system path spec.rcov_opts = ['--exclude', "spec/*,/Library/Ruby/*"] end task :spec => :check_dependencies task :default => :spec require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : "" rdoc.rdoc_dir = 'rdoc' rdoc.title = "schema_qualified_tables #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end # Disable github release since I don't want to commit the gemspec Rake::Task[:release].prerequisites.delete 'github:release' task :build => [:gemspec]
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
schema_qualified_tables-1.0.0 | Rakefile |