Sha256: 11bad5a7bf582bad88c6a2ddd821063a84ce4c02c789d2dda1718faad2e604e7

Contents?: true

Size: 1.42 KB

Versions: 16

Compression:

Stored size: 1.42 KB

Contents

begin
  # Rspec 1.3.0
  require 'spec/rake/spectask'

  desc 'Default: run specs'
  task :default => :spec
  Spec::Rake::SpecTask.new do |t|
    t.spec_files = FileList["spec/**/*_spec.rb"]
  end

  Spec::Rake::SpecTask.new('rcov') do |t|
    t.spec_files = FileList["spec/**/*_spec.rb"]
    t.rcov = true
    t.rcov_opts = ['--exclude', 'spec']
  end
  
rescue LoadError
  # Rspec 2.0
  require 'rspec/core/rake_task'

  desc 'Default: run specs'
  task :default => :spec  
  Rspec::Core::RakeTask.new do |t|
    t.pattern = "spec/**/*_spec.rb"
  end
  
  Rspec::Core::RakeTask.new('rcov') do |t|
    t.pattern = "spec/**/*_spec.rb"
    t.rcov = true
    t.rcov_opts = ['--exclude', 'spec']
  end

rescue LoadError
  puts "Rspec not available. Install it with: gem install rspec"  
end

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gemspec|
    gemspec.name = "custom-attributes"
    gemspec.summary = "Management for custom model attributes."
    gemspec.description = "Easy management of extra model attributes. Can store fields in the model if provided"
    gemspec.email = "matthijs.groen@gmail.com"
    gemspec.homepage = "http://github.com/matthijsgroen/custom-attributes"
    gemspec.authors = ["Matthijs Groen"]
    gemspec.files =  FileList["[A-Z]*", "{generators,lib,spec,rails}/**/*"] - FileList["**/*.log"]
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler not available. Install it with: gem install jeweler"
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
custom-attributes-0.2.22 Rakefile
custom-attributes-0.2.18 Rakefile
custom-attributes-0.2.17 Rakefile
custom-attributes-0.2.16 Rakefile
custom-attributes-0.2.15 Rakefile
custom-attributes-0.2.12 Rakefile
custom-attributes-0.2.5 Rakefile
custom-attributes-0.2.4 Rakefile
custom-attributes-0.2.3 Rakefile
custom-attributes-0.2.2 Rakefile
custom-attributes-0.2.1 Rakefile
custom-attributes-0.2.0 Rakefile
custom-attributes-0.1.2 Rakefile
custom-attributes-0.1.1 Rakefile
custom-attributes-0.1.0 Rakefile
custom-attributes-0.0.1 Rakefile