-
Notifications
You must be signed in to change notification settings - Fork 263
/
Rakefile
30 lines (27 loc) · 1 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
require 'rake'
require 'rake/testtask'
desc 'Run tests'
Rake::TestTask.new(:test) do |t|
t.pattern = 'test/*_test.rb'
t.verbose = true
t.warning = true
end
# ==================================================
# JEWELER TASKS
# ==================================================
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "rack-cors"
gemspec.summary = "Middleware for enabling Cross-Origin Resource Sharing in Rack apps"
gemspec.description = "Middleware that will make Rack-based apps CORS compatible. Read more here: http://blog.sourcebender.com/2010/06/09/introducin-rack-cors.html. Fork the project here: http://github.com/cyu/rack-cors"
gemspec.email = "csyu77@gmail.com"
gemspec.homepage = "http://github.com/cyu/rack-cors"
gemspec.authors = ["Calvin Yu"]
gemspec.add_dependency 'rack'
gemspec.files.exclude 'Gemfile'
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end