forked from elight/acts_as_commentable_with_threading
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRakefile
29 lines (23 loc) · 707 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
require 'rubygems'
require 'rake/gempackagetask'
require 'spec'
require 'spec/rake/spectask'
require 'bundler/setup'
PLUGIN = "acts_as_commentable_with_threading"
NAME = "acts_as_commentable_with_threading"
GEM_VERSION = "1.0.0"
AUTHOR = "Evan Light"
EMAIL = "[email protected]"
SUMMARY = "Plugin/gem that provides threaded comment functionality"
load 'acts_as_commentable_with_threading.gemspec'
spec = ACTS_AS_COMMENTABLE_WITH_THREADING
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**_spec.rb']
end
task :install => [:package] do
sh %{sudo gem install pkg/#{NAME}-#{GEM_VERSION}}
end
task :default => :spec