forked from mmangino/facebooker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
83 lines (74 loc) · 2.55 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
# -*- ruby -*-
#
require 'rubygems'
ENV['RUBY_FLAGS']="-I#{%w(lib ext bin test).join(File::PATH_SEPARATOR)}"
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.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.summary = 'Pure, idiomatic Ruby wrapper for the Facebook REST API.'
p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
p.remote_rdoc_dir = '' # Release to root
p.test_globs = 'test/**/*_test.rb'
p.extra_deps << ['json', '>= 1.0.0']
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
gem_spec_file = 'facebooker.gemspec'
gem_spec = eval(File.read(gem_spec_file)) rescue nil
desc "Generate the gemspec file."
task :gemspec do
require 'erb'
File.open(gem_spec_file, 'w') do |f|
f.write ERB.new(File.read("#{gem_spec_file}.erb")).result(binding)
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