Sha256: a953286c36a20335d5befdc401ee2bf301e8bbda5acd7dd6b4cad868ebc13e97

Contents?: true

Size: 1.43 KB

Versions: 5

Compression:

Stored size: 1.43 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'
  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

5 entries across 5 versions & 1 rubygems

Version Path
custom-attributes-0.2.27 Rakefile
custom-attributes-0.2.26 Rakefile
custom-attributes-0.2.25 Rakefile
custom-attributes-0.2.24 Rakefile
custom-attributes-0.2.23 Rakefile