public
Description: Snippits - a program that will type text for you. It uses 'snippits', small text files with a simple syntax to determine what to type.
Homepage: http://ben.kudria.net/code/snippits
Clone URL: git://github.com/bkudria/snippits.git
Click here to lend your support to: snippits and make a donation at www.pledgie.com !
snippits / Rakefile
100755 42 lines (34 sloc) 1.216 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# -*- ruby -*-
 
require 'rubygems'
require 'hoe'
require './lib/snippits.rb'
 
Hoe.new('snippits', Snippits::VERSION) do |p|
  p.rubyforge_name = 'snippits'
  p.remote_rdoc_dir = ''
  p.author = 'Benjamin Kudria'
  p.email = 'ben@kudria.net'
  p.extra_deps << ['raspell', '>=1.1']
  p.summary = 'This is Ruby program that will type text for you. It uses snippits, small text files with a simple syntax to determine what to type'
  p.description = p.paragraphs_of('README.txt', 2..6).join("\n\n")
  p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]
  p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
end
 
require 'rcov/rcovtask'
Rcov::RcovTask.new do |t|
  t.test_files = FileList['test/test*.rb']
  t.verbose = true # uncomment to see the executed command
end
 
desc "Uninstall the gem locally"
task :local_uninstall do
sh "sudo gem uninstall -x snippits"
end
 
desc "Install the gem locally"
task :local_install => [:gem] do
sh "sudo gem install -l ./pkg/snippits-#{Snippits::VERSION}.gem"
end
 
desc "Reinstall gem locally"
task :local_reinstall => [:local_uninstall, :local_install]
 
desc "Regenerate a gemspec file"
task :gemspec do
    sh "rake debug_gem > snippits.gemspec"
end