Sha256: 00cf2e16652c0bd66ede4fedb19726aa6446b30e203b6fcdb8584b4160c2d253

Contents?: true

Size: 1.75 KB

Versions: 9

Compression:

Stored size: 1.75 KB

Contents

require 'rubygems'
require 'rake'
require 'yaml'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "flannel"
    gem.summary = %Q{A soft comfortable worn in markup language for Ruby}
    gem.email = "jamal.hansen@gmail.com"
    gem.homepage = "http://github.com/rubyyot/flannel"
    gem.authors = ["Jamal Hansen"]
    gem.rubyforge_project = "flannel"
    gem.add_dependency 'hpricot'
    gem.add_development_dependency ['technicalpickles-shoulda', 'mocha']

    # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
  end
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.pattern = 'test/**/*_test.rb'
  test.verbose = true
end

begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |test|
    test.libs << 'test'
    test.pattern = 'test/**/*_test.rb'
    test.verbose = true
  end
rescue LoadError
  task :rcov do
    abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
  end
end

begin
  require 'cucumber/rake/task'
  Cucumber::Rake::Task.new(:features)
rescue LoadError
  task :features do
    abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
  end
end

task :default => :test

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
  if File.exist?('VERSION.yml')
    config = YAML.load(File.read('VERSION.yml'))
    version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
  else
    version = ""
  end

  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "flannel #{version}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
flannel-0.2.6 Rakefile
flannel-0.2.5 Rakefile
flannel-0.2.4 Rakefile
flannel-0.2.3 Rakefile
flannel-0.2.1 Rakefile
flannel-0.1.5 Rakefile
flannel-0.1.4 Rakefile
flannel-0.1.3 Rakefile
flannel-0.1.2 Rakefile