-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathRakefile
More file actions
48 lines (38 loc) · 1.35 KB
/
Rakefile
File metadata and controls
48 lines (38 loc) · 1.35 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
require "rubygems"
Gem::manage_gems
require "rake/gempackagetask"
spec = Gem::Specification.new do |s|
s.name = "rfacebook"
s.summary = "A Ruby interface to the Facebook API v1.0+. Works with RFacebook on Rails plugin (see http://rfacebook.rubyforge.org)."
s.version = "0.9.8"
s.author = "Matt Pizzimenti"
s.email = "matt@livelearncode.com"
s.homepage = "http://www.livelearncode.com/"
s.rubyforge_project = "rfacebook"
s.platform = Gem::Platform::RUBY
s.files = FileList["lib/*.rb"]
s.require_path = "lib"
s.autorequire = "rfacebook"
s.test_files = Dir.glob("test/*.rb")
s.has_rdoc = true
s.extra_rdoc_files = ["README"]
s.add_dependency("hpricot", ">= 0.6.0")
s.add_dependency("mocha", ">= 0.5.3")
s.requirements << "Hpricot version >= 0.6.0 (has better handling of XML than previous versions)"
s.requirements << "Mocha version >= 0.5.3 (used for unit testing of the Gem and Rails Plugin)"
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_tar = true
end
task :default => "pkg/#{spec.name}-#{spec.version}.gem" do
putsCheck = `grep puts lib/*`
if putsCheck.size > 0
puts "********** WARNING: stray puts left in code"
end
puts "generated latest version"
end
# TODO: remember to make docs for the plugin too
task :docs do
`rm -rf doc`
`rdoc --diagram --inline --line-numbers lib/*session.rb`
end