public
Description: The facebooker Rails plugin
Homepage: http://facebooker.rubyforge.org
Clone URL: git://github.com/mmangino/facebooker.git
facebooker / Rakefile
100644 95 lines (86 sloc) 2.699 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# -*- 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
 
require 'lib/facebooker/version'
 
HOE = Hoe.spec('facebooker') do
  self.version = Facebooker::VERSION::STRING
  self.rubyforge_name = 'facebooker'
  developer 'Chad Fowler', 'chad@chadfowlwer.com'
  developer 'Patrick Ewing', ''
  developer 'Mike Mangino', ''
  developer 'Shane Vitarana', ''
  developer 'Corey Innis', ''
  developer 'Mike Mangino', 'mmangino@elevatedrails.com'
 
  self.readme_file = 'README.rdoc'
  self.history_file = 'CHANGELOG.rdoc'
  self.remote_rdoc_dir = '' # Release to root
  self.test_globs = ['test/**/*_test.rb']
  extra_deps << ['json', '>= 1.0.0']
  self.extra_rdoc_files = FileList['*.rdoc']
end
 
begin
  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
rescue LoadError
  $stderr.puts "Install the rcov gem to enable test coverage analysis"
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