forked from AncientLeGrey/dokan-ruby
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRakefile
More file actions
70 lines (60 loc) · 2.02 KB
/
Rakefile
File metadata and controls
70 lines (60 loc) · 2.02 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
require 'rubygems'
require 'rake'
# Source: http://dokan-dev.net/en/download/#ruby
DOKAN_RUBY_EXT = "dokan-ruby-0.1.5.1229"
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "dokan-ruby"
gem.platform = 'mswin32_60'
gem.summary = %q{Ruby extension to write a windows file system (depending on Dokan library)}
gem.description = %q{Dokan is a "file system in userspace" driver for Win32. With dokan-ruby bindings, you can implement your own filesystem in Ruby!}
gem.email = "greyhound2@freenet.de"
gem.homepage = "http://github.com/AncientLeGrey/dokan-ruby"
gem.authors = ["AncientLeGrey"]
gem.files = FileList["[A-Z]*", "{lib,test,ext,sample}/**/*"]
gem.require_paths = ["lib", "ext/#{DOKAN_RUBY_EXT}", "ext/#{DOKAN_RUBY_EXT}/lib"]
gem.rdoc_options = ["--exclude", "dokan_lib.c"]
gem.add_development_dependency "shoulda"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end
rescue LoadError
task :rcov do
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
end
end
task :test => :check_dependencies
task :default => :test
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION')
version = File.read('VERSION')
else
version = ""
end
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "dokan-ruby #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
# netbeans tasks
task :gem => :build
task :clean do
FileUtils.rm_rf 'pkg'
end