Sha256: 743b08b365e69bc041aa82f82be8e1852385871ae2f440139a5c85933d0ae0f9

Contents?: true

Size: 1.79 KB

Versions: 30

Compression:

Stored size: 1.79 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

namespace 'rails2.3' do
  task :spec do
    gemfile = File.join(File.dirname(__FILE__), 'lib', 'tagtical', 'compatibility', 'Gemfile')
    ENV['BUNDLE_GEMFILE'] = gemfile
    Rake::Task['spec'].invoke    
  end
end

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gemspec|
    gemspec.name = "tagtical"
    gemspec.summary = "Tagtical is a tagging plugin for Rails that provides weighting, contexts, and inheritance for tags."
    gemspec.description = "Tagtical allows you do create subclasses for Tag and add additional functionality in an STI fashion. For example. You could do Tag::Color.find_by_name('blue').to_rgb. It also supports storing weights or relevance on the taggings."
    gemspec.email = "aryk@mixbook.com"
    gemspec.homepage = "https://github.com/Mixbook/tagtical"
    gemspec.authors = ["Aryk Grosz"]
    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

30 entries across 30 versions & 1 rubygems

Version Path
tagtical-1.5.7 Rakefile
tagtical-1.5.6 Rakefile
tagtical-1.5.5 Rakefile
tagtical-1.5.4 Rakefile
tagtical-1.5.3 Rakefile
tagtical-1.5.2 Rakefile
tagtical-1.5.1 Rakefile
tagtical-1.5.0 Rakefile
tagtical-1.4.12 Rakefile
tagtical-1.4.11 Rakefile
tagtical-1.4.10 Rakefile
tagtical-1.4.9 Rakefile
tagtical-1.4.8 Rakefile
tagtical-1.4.7 Rakefile
tagtical-1.4.6 Rakefile
tagtical-1.4.5 Rakefile
tagtical-1.4.3 Rakefile
tagtical-1.4.2 Rakefile
tagtical-1.4.1 Rakefile
tagtical-1.4.0 Rakefile