Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 38 lines (33 sloc) 0.962 kb
9808884 Add tests, gem packaging, and other minor cleanup
sqrrrl authored
1 require 'rubygems'
2 require 'rake'
3 require 'rake/testtask'
4 require 'rake/packagetask'
5 require 'rake/gempackagetask'
6 require 'rake/clean'
7
8 CLEAN.include('pkg/*')
01f7b27 Fix OP identifier check to allow http:// prefix. Also allow unsigned XR...
sqrrrl authored
9 PKG_VERSION = "1.0.2"
9808884 Add tests, gem packaging, and other minor cleanup
sqrrrl authored
10
11 spec = Gem::Specification.new do |s|
12 s.platform = Gem::Platform::RUBY
13 s.summary = "Google Apps support for ruby-openid"
14 s.name = 'ruby-openid-apps-discovery'
15 s.version = PKG_VERSION
16 s.add_dependency('ruby-openid', '>=2.1.7')
17 s.require_path = 'lib'
18 s.files = FileList['lib/**/*.rb', 'lib/**/*.crt'].to_a
19 s.description = <<EOF
20 Extension to ruby-openid that enables discovery for Google Apps domains
21 EOF
22 end
23
24 Rake::TestTask.new do |t|
25 t.test_files = FileList['test/test*.rb']
26 t.verbose = true
27 end
28
29 Rake::PackageTask.new("ruby-openid-apps-discovery", "1.0") do |p|
30 p.need_tar = true
31 p.package_files.include("lib/**/*.rb")
32 p.package_files.include("lib/**/*.crt")
33 end
34
35 Rake::GemPackageTask.new(spec) do |pkg|
36 pkg.need_zip = true
37 pkg.need_tar = true
38 end
Something went wrong with that request. Please try again.