This repository has been archived by the owner on Sep 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
57 lines (49 loc) · 1.54 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
require 'rubygems'
require 'bundler/setup'
Bundler.setup(:runtime, :test)
require File.expand_path(File.join('..', 'lib', 'hancock'), __FILE__)
require 'rake/gempackagetask'
require 'rubygems/specification'
require 'date'
require 'lib/hancock/version'
GEM = "hancock"
GEM_VERSION = Hancock::VERSION
AUTHOR = ["Corey Donohoe", "Tim Carey-Smith"]
EMAIL = [ "atmos@atmos.org", "tim@spork.in" ]
HOMEPAGE = "http://github.com/atmos/hancock"
SUMMARY = "A gem that provides a Rack based Single Sign On Server"
spec = Gem::Specification.new do |s|
s.name = GEM
s.version = GEM_VERSION
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = ["README.md", "LICENSE"]
s.summary = SUMMARY
s.description = s.summary + " in the form of a sintra based OpenID provider"
s.authors = AUTHOR
s.email = EMAIL
s.homepage = HOMEPAGE
bundle = Bundler::Definition.build('Gemfile', 'Gemfile.lock', { })
bundle.dependencies.each do |dep|
next unless dep.groups.include?(:runtime)
s.add_dependency(dep.name, dep.version_requirements.to_s)
end
s.require_path = 'lib'
s.files = %w(LICENSE README.md Rakefile) + Dir.glob("{features,lib,spec}/**/*")
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
desc "create a gemspec file"
task :make_spec do
File.open("#{GEM}.gemspec", "w") do |file|
file.puts spec.to_ruby
end
end
task :default => [:spec]
require 'rspec/core/rake_task'
desc "Run specs"
RSpec::Core::RakeTask.new do |t|
t.pattern = FileList['spec/**/*_spec.rb']
t.rspec_opts = %w(-fp --color)
end