Sha256: b5918ef58f7823e020e72430cb9b0b58be248200296190413a94c18eb56bc55a

Contents?: true

Size: 1.28 KB

Versions: 5

Compression:

Stored size: 1.28 KB

Contents

require 'rake'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "valuedate"
    gem.summary = 'Validates values.'
    gem.email = "peter-valuedate@suschlik.de"
    gem.homepage = "http://github.com/splattael/valuedate"
    gem.authors = ["Peter Suschlik"]

    gem.has_rdoc = true
    gem.extra_rdoc_files = [ "README.rdoc" ]

    gem.add_dependency "riot", ">= 0.10.11"
    gem.add_development_dependency "riot_notifier"

    gem.test_files = Dir.glob('test/test_*.rb')
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

# Test
require 'rake/testtask'
desc 'Default: run unit tests.'
task :default => :test
task :test => :check_dependencies

Rake::TestTask.new(:test) do |test|
  test.test_files = FileList.new('test/test_*.rb')
  test.libs << 'test'
  test.verbose = true
end

# RDoc
require 'rake/rdoctask'
Rake::RDocTask.new do |rd|
  rd.title = "Valuedate"
  rd.main = "README.rdoc"
  rd.rdoc_files.include("README.rdoc", "lib/*.rb")
  rd.rdoc_dir = "doc"
end


# Misc
desc "Tag files for vim"
task :ctags do
  dirs = $LOAD_PATH.select {|path| File.directory?(path) }
  system "ctags -R #{dirs.join(" ")}"
end

desc "Find whitespace at line ends"
task :eol do
  system "grep -nrE ' +$' *"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
valuedate-0.0.6 Rakefile
valuedate-0.0.5 Rakefile
valuedate-0.0.4 Rakefile
valuedate-0.0.3 Rakefile
valuedate-0.0.2 Rakefile