forked from titanous/yubikey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
39 lines (34 loc) · 1.23 KB
/
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
require 'rspec/core/rake_task'
require 'rdoc/task'
$LOAD_PATH.unshift('lib')
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = 'yubikey'
s.summary = 'A library to verify, decode, decrypt and parse Yubikey one-time passwords.'
s.email = '[email protected]'
s.homepage = 'http://github.com/titanous/yubikey'
s.description = 'A library to verify, decode, decrypt and parse Yubikey one-time passwords.'
s.authors = ['Jonathan Rudenberg']
s.add_dependency 'crypt19'
s.add_dependency 'ruby-hmac'
s.files = FileList['lib/*.rb', 'lib/**/*.rb', 'examples/*.rb', 'spec/*']
s.rubyforge_project = 'yubikey'
s.has_rdoc = true
s.extra_rdoc_files = ['README.rdoc', 'LICENSE']
s.rdoc_options << '--title' << 'yubikey' << '--main' << 'README.rdoc'
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts 'Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler'
end
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.title = 'yubikey'
rdoc.main = 'README.rdoc'
rdoc.rdoc_files.include('README*', 'lib/**/*.rb')
end
RSpec::Core::RakeTask.new do |t|
t.rspec_opts = ['--options', 'spec/spec.opts']
end
task :default => :spec