forked from zapo/ntlm-http
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
68 lines (54 loc) · 1.76 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
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
# Rakefile for rubyntlm -*- ruby -*-
# $Id: Rakefile,v 1.2 2006/10/05 01:36:52 koheik Exp $
require 'rake/rdoctask'
require 'rake/testtask'
require 'rake/packagetask'
require 'rake/gempackagetask'
require File.join(File.dirname(__FILE__), 'lib', 'net', 'ntlm')
#PKG_NAME = 'rubyntlm'
PKG_NAME = 'pyu-ntlm-http'
PKG_VERSION = "0.1.3.1"
task :default => [:test]
Rake::TestTask.new(:test) do |t|
t.test_files = FileList[ "test/*.rb" ]
t.warning = true
t.verbose = true
end
# Rake::PackageTask.new(PKG_NAME, PKG_VERSION) do |p|
# p.need_tar_gz = true
# p.package_dir = 'build'
# p.package_files.include("README", "Rakefile")
# p.package_files.include("lib/net/**/*.rb", "test/**/*.rb", "examples/**/*.rb")
# end
Rake::RDocTask.new do |rd|
rd.rdoc_dir = 'doc'
rd.title = 'Ruby/NTLM library'
rd.main = "README"
rd.rdoc_files.include("README", "lib/**/*.rb")
end
dist_dirs = ["lib", "test", "examples"]
spec = Gem::Specification.new do |s|
s.name = PKG_NAME
s.version = PKG_VERSION
s.summary = %q{Ruby/NTLM HTTP library.}
s.email = %q{kingsley@mindflowsolutions.com}
s.homepage = %q{http://www.mindflowsolutions.net}
s.rubyforge_project = %q{rubyntlm}
s.description = %q{Ruby/NTLM HTTP provides NTLM authentication over http.}
s.has_rdoc = true
s.authors = ["Kohei Kajimoto,Kingsley Hendrickse"]
s.files = ["Rakefile", "README"]
dist_dirs.each do |dir|
s.files = s.files + Dir.glob("#{dir}/**/*.rb")
end
s.has_rdoc = true
s.extra_rdoc_files = %w( README )
s.rdoc_options.concat ['--main', 'README']
s.autorequire = 'net/ntlm_http'
end
Rake::GemPackageTask.new(spec) do |p|
p.gem_spec = spec
p.need_tar = true
p.need_zip = true
p.package_dir = 'build'
end