forked from elight/acts_as_commentable_with_threading
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
28 lines (22 loc) · 682 Bytes
/
Copy pathRakefile
File metadata and controls
28 lines (22 loc) · 682 Bytes
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
require 'rubygems'
require 'bundler/setup'
require 'rubygems/package_task'
require 'spec'
require 'spec/rake/spectask'
PLUGIN = "acts_as_commentable_with_threading"
NAME = "acts_as_commentable_with_threading"
GEM_VERSION = "1.0.0"
AUTHOR = "Evan Light"
EMAIL = "evan@tripledogdare.net"
SUMMARY = "Plugin/gem that provides threaded comment functionality"
spec = eval(File.read('acts_as_commentable_with_threading.gemspec'))
Gem::PackageTask.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