Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 52 lines (42 sloc) 1.331 kb
dbe859c initial commit of unpacked 1.2.0 gem
Dan Peterson authored
1 # -*- ruby -*-
2
3 require 'rubygems'
4 require 'hoe'
5 $: << 'lib'
6 require 'vlad'
7
8 Hoe.new('vlad', Vlad::VERSION) do |p|
9 p.rubyforge_name = 'hitsquad'
10 p.author = ["Ryan Davis", "Eric Hodel", "Wilson Bilkovich"]
11 p.email = "ryand-ruby@zenspider.com"
12 p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/).map { |s| s.strip }[2..-1]
13 p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
14 p.summary = p.paragraphs_of('README.txt', 2).join
15 p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
16 p.extra_deps << 'rake'
17 p.extra_deps << 'open4'
18 end
19
20 desc "quick little hack to see what the state of the nation looks like"
21 task :debug do
22 Vlad.load :config => "lib/vlad/subversion.rb"
aa070fb Tim Carey-Smith Rename 'repository' to 'code_repo' and bump the version
authored
23 set :code_repo, "code repo path"
dbe859c initial commit of unpacked 1.2.0 gem
Dan Peterson authored
24 set :deploy_to, "deploy path"
25 set :domain, "server domain"
26
27 Rake::Task['vlad:debug'].invoke
28 end
29
30 task :flog do
31 sh 'flog -s lib'
32 end
33
34 task :flog_full do
35 sh 'flog -a lib'
36 end
37
38 task :mana_from_heaven do
39 # vlad = vlad + rake + open4
40 # rake sans-contrib = 2035.98356718206
41 vlad = `flog -s lib`.to_f + 2350.30744806517 + 502.363818023761
42 cap = 11480.3919695285
43 ratio = cap / vlad
44 target = cap / Math::PI
45
46 puts "%14.8f = %s" % [vlad, "vlad"]
47 puts "%14.8f = %s" % [ratio, "ratio"]
48 puts "%14.8f = %s" % [target - vlad, "needed delta"]
49 end
50
51 # vim: syntax=Ruby
Something went wrong with that request. Please try again.