-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrakefile
39 lines (31 loc) · 974 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
# -*- encoding: utf-8 -*-
$: << File.dirname(__FILE__) + "/lib"
require 'rake/rdoctask'
require 'rake/packagetask'
require 'rake/gempackagetask'
require 'rake/testtask'
require 'rack/openid-provider'
PKG_FILES = FileList["lib/rack-openid-provider.rb", "LICENSE", "rakefile", "test/*.rb"].to_a
spec = Gem::Specification.new do |s|
s.summary = "OpenID Provider for Ruby Rack"
s.name = "rack-openid-provider"
s.author = "Maël Clérambault"
s.email = "[email protected]"
s.version = OpenID::VERSION
s.files = PKG_FILES
s.test_files = FileList["test/*.rb"].to_a
end
Rake::RDocTask.new do |rd|
rd.rdoc_files.include "lib/rack-openid-provider.rb"
rd.options << "--inline-source"
end
Rake::GemPackageTask.new spec do |p|
p.need_tar_gz = true
end
Rake::TestTask.new
desc "Create a gemspec file"
task :spec do
spec_clone = spec.clone
spec_clone.test_files = nil
open("rack-openid-provider.gemspec", "w") {|g| g.puts spec_clone.to_ruby }
end