-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
41 lines (32 loc) · 1016 Bytes
/
Rakefile
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
require 'rake'
require 'rake/testtask'
require 'rake/gempackagetask'
$: << File.expand_path(File.dirname(__FILE__) + '/test')
task :default => :test
desc 'Run all tests'
task :test => 'test:unit'
namespace :test do
Rake::TestTask.new :unit do |t|
t.libs << 'test'
t.pattern = "test/tc_*.rb"
t.verbose = true
end
end
spec = Gem::Specification.new do |s|
s.name = "toycipher"
s.version = IO.readlines(File.dirname(__FILE__) + '/VERSION', 'r').first.chomp
s.author = "Jeffrey ODell"
s.email = "[email protected]"
s.homepage = "http://github.com/jodell/toycipher"
s.platform = Gem::Platform::RUBY
s.summary = "Ruby implementation of popular ciphers for recreational and educational cryptanalysis"
s.files = FileList["{bin,lib}/**/*"].to_a
s.require_path = "lib"
s.autorequire = "name"
s.test_files = FileList["{test}/**/tc_*.rb"].to_a
s.has_rdoc = false
#s.extra_rdoc_files = ["README"]
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_tar = true
end