-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRakefile
49 lines (39 loc) · 1.07 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
require "rubygems"
require "pathname"
require "rake"
require "rake/testtask"
task :default => :test
# Tests
Rake::TestTask.new do |t|
t.test_files = 'test/**/*_test.rb'
end
# Gem
require "rake/gempackagetask"
NAME = "captains_blog"
SUMMARY = "CaptainsBlog: Blog for Harbor Applications"
GEM_VERSION = "0.3.16"
spec = Gem::Specification.new do |s|
s.name = NAME
s.summary = s.description = SUMMARY
s.author = "Wieck Media"
s.homepage = "http://wiecklabs.com"
s.email = "[email protected]"
s.version = GEM_VERSION
s.platform = Gem::Platform::RUBY
s.require_path = 'lib'
s.files = %w(Rakefile) + Dir.glob("lib/**/*")
s.executables = ['captains_blog']
s.add_dependency "harbor", ">= 0.18.33"
s.add_dependency 'port_authority', ">= 1.7.9"
s.add_dependency 'logging'
s.add_dependency "dm-is-tree", '= 0.9.11'
s.add_dependency 'RedCloth'
s.add_dependency "nokogiri"
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
desc "Install Captains Blog as a gem"
task :install => [:repackage] do
sh %{gem install pkg/#{NAME}-#{GEM_VERSION}}
end