Sha256: f980ff1079aeb804d09045f815cd71edfa076823906333b7dbfd9ceca666a615

Contents?: true

Size: 1.18 KB

Versions: 2

Compression:

Stored size: 1.18 KB

Contents

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

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

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

namespace :rdoc do
  desc 'Generate documentation for conversions plugin.'
  Rake::RDocTask.new(:generate) do |rdoc|
    rdoc.rdoc_dir = 'documentation'
    rdoc.title    = 'Conversions'
    rdoc.options << '--line-numbers' << '--inline-source' << '--charset' << 'utf-8'
    rdoc.rdoc_files.include('README', 'lib/**/*.rb')
  end
end

begin
  require 'jeweler'
  Jeweler::Tasks.new do |spec|
    spec.name = "conversions"

    spec.author = "Manfred Stienstra"
    spec.email = "manfred@fngtps.com"

    spec.description = <<-EOF
      A Ruby on Rails plugin that adds conversion capabilities to numeric objects"
    EOF
    spec.summary = <<-EOF
      A Ruby on Rails plugin that adds conversion capabilities to numeric objects"
    EOF
    spec.homepage = "http://github.com/Fingertips/conversions/tree/master"
  end
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
seamusabshere-conversions-1.4.1 Rakefile
seamusabshere-conversions-1.4.2 Rakefile