forked from sferik/merb-admin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
44 lines (39 loc) · 1.41 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
require "rubygems"
require "merb-core"
require "merb-core/tasks/merb"
GEM_NAME = "merb-admin"
AUTHOR = "Erik Michaels-Ober"
EMAIL = "[email protected]"
HOMEPAGE = "http://github.com/sferik/merb-admin"
SUMMARY = "MerbAdmin is a Merb plugin that provides an easy-to-use interface for managing your data."
MERB_GEM_VERSION = "1.0.15"
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = GEM_NAME
gemspec.summary = SUMMARY
gemspec.description = gemspec.summary
gemspec.author = AUTHOR
gemspec.email = EMAIL
gemspec.homepage = HOMEPAGE
gemspec.files.exclude("config/*", "screenshots/*")
gemspec.add_dependency("merb-slices", ">= #{MERB_GEM_VERSION}")
gemspec.add_dependency("merb-assets", ">= #{MERB_GEM_VERSION}")
gemspec.add_dependency("merb-helpers", ">= #{MERB_GEM_VERSION}")
gemspec.add_dependency("builder", ">= 2.1.2")
gemspec.add_development_dependency("rspec", ">= 1.2.9")
gemspec.post_install_message = <<-POST_INSTALL_MESSAGE
#{"*" * 80}
WARNING: MerbAdmin does not implement any authorization scheme.
Make sure to apply authorization logic before deploying to production!
#{"*" * 80}
POST_INSTALL_MESSAGE
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end
require "spec/rake/spectask"
require "merb-core/test/tasks/spectasks"
desc "Default: run spec examples"
task :default => "spec"