forked from mmangino/facebooker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
85 lines (78 loc) · 2.41 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# -*- ruby -*-
#
require 'rubygems'
require 'hoe'
begin
require 'load_multi_rails_rake_tasks'
rescue LoadError
$stderr.puts "Install the multi_rails gem to run tests against multiple versions of Rails"
end
$: << File.dirname(__FILE__) + '/lib'
require './lib/facebooker.rb'
HOE = Hoe.new('facebooker', Facebooker::VERSION::STRING) do |p|
p.rubyforge_name = 'facebooker'
p.author = ['Chad Fowler', 'Patrick Ewing', 'Mike Mangino', 'Shane Vitarana', 'Corey Innis']
p.email = 'mmangino@elevatedrails.com'
p.readme_file = 'README.rdoc'
p.history_file = 'CHANGELOG.rdoc'
p.remote_rdoc_dir = '' # Release to root
p.test_globs = 'test/**/*_test.rb'
p.extra_deps << ['json', '>= 1.0.0']
p.extra_rdoc_files = FileList['*.rdoc']
end
require 'rcov/rcovtask'
namespace :test do
namespace :coverage do
desc "Delete aggregate coverage data."
task(:clean) { rm_f "coverage.data" }
end
desc 'Aggregate code coverage for unit, functional and integration tests'
Rcov::RcovTask.new(:coverage) do |t|
t.libs << "test"
t.test_files = FileList["test/**/*_test.rb"]
t.output_dir = "coverage/"
t.verbose = true
t.rcov_opts = ['--exclude', 'test,/usr/lib/ruby,/Library/Ruby,/System/Library', '--sort', 'coverage']
end
end
namespace :gem do
task :spec do
File.open("#{HOE.name}.gemspec", 'w') do |f|
f.write(HOE.spec.to_ruby)
end
end
namespace :spec do
task :dev do
File.open("#{HOE.name}.gemspec", 'w') do |f|
HOE.spec.version = "#{HOE.version}.#{Time.now.strftime("%Y%m%d%H%M%S")}"
f.write(HOE.spec.to_ruby)
end
end
end
end
# vim: syntax=Ruby
#
#
# require File.dirname(__FILE__) + '/vendor/gardener/lib/gardener'
#
# require 'facebooker'
#
# namespace :doc do
# task :readme do
# puts "Readme"
# end
# end
#
# Gardener.configure do
# gem_spec do |spec|
# spec.name = 'facebooker'
# spec.version = Gem::Version.new(Facebooker::VERSION::STRING)
# spec.summary = "Pure, idiomatic Ruby wrapper for the Facebook REST API."
# spec.email = 'chad@infoether.com'
# spec.author = ['Chad Fowler', 'Patrick Ewing','Mike Mangino','Shane Vitarana']
# spec.extra_rdoc_files = %w(COPYING)
# spec.rdoc_options = ['--title', "Gardener",
# '--main', 'README',
# '--line-numbers', '--inline-source']
# end
# end