Sha256: f64d459945ff1b09fc62d2c061eb1208157e8ef6aeb08b3fdec7e41b1d10bc85

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

desc 'Default: run unit tests.'
task :default => :test

desc 'Test the anaf_habtm plugin.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.libs << 'test'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end

desc 'Generate documentation for the anaf_habtm plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'AnafHabtm'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end
PKG_FILES = FileList[
  '[a-zA-Z]*',
  'assets/**/*',
  'lib/**/*',
  'rails/**/*',
  'test/**/*'
]

begin
  require 'jeweler'
  Jeweler::Tasks.new do |s|
    s.name = "anaf_habtm"
    s.version = "0.0.2"
    s.author = "Tyler Gannon"
    s.email = "t--g__a--nnon@gmail.com"
    s.homepage = "http://github.com/tylergannon/anaf_habtm"
    s.platform = Gem::Platform::RUBY
    s.description = "accepts_nested_attributes_for habtm"
    s.summary = "accepts_nested_attributes_for habtm"
    s.files = PKG_FILES.to_a
    s.require_path = "lib"
    s.has_rdoc = false
    s.extra_rdoc_files = ["README"]

  end
rescue LoadError
  puts "Jeweler not available. Install it with: gem install jeweler"
end



Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
anaf_habtm-0.0.2 Rakefile