public
Description: A simple, blogish software build with Sinatra, jQuery, and uses Git for data storage
Homepage: http://mattsears.github.com/aerial
Clone URL: git://github.com/mattsears/aerial.git
commit  4357a1594e32bbb1bff4b9f36ac9567425a5f598
tree    6c8e1e1b9163eb1659c2b775b4b6df263d95be4a
parent  fc85d5649fc02370adbef8db5df28c2438fec832
aerial / Rakefile
100644 72 lines (62 sloc) 1.955 kb
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
require 'rubygems'
require 'spec/version'
require 'spec/rake/spectask'
require 'git'
require 'grit'
# TODO: refactor config file loading in base.rb
require 'lib/aerial/config'
 
# Rspec setup
desc "Run all specs"
Spec::Rake::SpecTask.new do |t|
  t.spec_files = FileList['spec/**/*_spec.rb']
end
 
namespace :spec do
  desc "Run all specs with rcov"
  Spec::Rake::SpecTask.new('rcov') do |t|
    t.spec_files = FileList['spec/**/*_spec.rb']
    t.rcov = true
    t.rcov_dir = 'coverage'
    t.rcov_opts = ['--exclude',
                   "lib/spec.rb,spec\/spec,bin\/spec,examples,\.autotest,#{Gem.path.join(',')}"]
  end
end
 
desc "Launch Aerial cartwheel"
task :launch do
  ruby "bin/aerial launch"
end
 
# Vlad setup
begin
  require "vlad"
  Vlad.load(:app => nil, :scm => "git")
rescue LoadError
  # do nothing
end
 
desc "Build a gem"
task :gem => [ :gemspec, :build ] do
  command = "gem install --local ./pkg/aerial-0.1.0.gem"
  sh command
end
 
desc "Build a gem"
task :rdoc do
  sh 'mkdir rdoc'
  sh 'echo documentation is at http://github.com/mattsears/aerial > rdoc/README.rdoc'
end
 
begin
  require 'jeweler'
  Jeweler::Tasks.new do |gemspec|
    gemspec.name = "aerial"
    gemspec.summary = "A simple, blogish software build with Sinatra, jQuery, and uses Git for data storage "
    gemspec.description = "A simple, blogish software build with Sinatra, jQuery, and uses Git for data storage "
    gemspec.email = "matt@mattsears.com"
    gemspec.homepage = "http://github.com/mattsears/aerial"
    gemspec.description = "A simple, blogish software build with Sinatra, jQuery, and uses Git for data storage"
    gemspec.authors = ["Matt Sears"]
    gemspec.rubyforge_project = 'aerial'
  end
  Jeweler::RubyforgeTasks.new do |rubyforge|
    rubyforge.doc_task = "rdoc"
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end