Sha256: a2dea28576af1d2344312831237537d4fb058f7bcab55ebd569724d656d7f633

Contents?: true

Size: 1.45 KB

Versions: 3

Compression:

Stored size: 1.45 KB

Contents

# -*- coding: utf-8 -*-
# vim:ft=ruby:enc=utf-8

# # enable trace to get better error output
# Rake.application.options.trace = true

# jeweler task
begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "to_pass"
    gem.summary = "generate password from words or sentences"
    gem.description = %Q{Passwords should be easy to remember and hard to guess.
One technique is to have a sentence which can be easily remembered transformed to a password.}
    gem.email = "kronn@kronn.de"
    gem.homepage = "http://github.com/kronn/to_pass"
    gem.authors = ["Matthias Viehweger"]

    gem.add_development_dependency 'mocha'
    gem.add_development_dependency 'sdoc'
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

%w[ rake/rdoctask sdoc ].each { |lib| require lib }
Rake::RDocTask.new do |rdoc|
  version = File.exist?('VERSION') ? File.read('VERSION') : ""

  rdoc.rdoc_dir = 'doc/rdoc'
  rdoc.title = "to_pass #{version}"
  rdoc.options << '--fmt' << 'shtml'
  rdoc.template = 'direct'
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

desc "run tests"
task :test, :needs => [:check_dependencies] do
  # optional libraries
  %w[ redgreen ].each do |lib|
    begin
      require lib
    rescue LoadError
    end
  end
  ( ['test/unit', 'test/helper'] + Dir['test/test_*.rb'] ).each do |file|
    require file
  end
end

task :default => :test

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
to_pass-0.2.4 Rakefile
to_pass-0.2.3 Rakefile
to_pass-0.2.2 Rakefile