dinsley / friendfeedr

A Ruby client for retrieving and publishing Friendfeed data via their API.

friendfeedr / Rakefile
100644 41 lines (35 sloc) 0.977 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
begin
  require 'spec'
rescue LoadError
  require 'rubygems'
  require 'spec'
end
 
begin
  require 'spec/rake/spectask'
rescue LoadError
  puts <<-EOS
To use rspec for testing you must install rspec gem:
gem install rspec
EOS
 
  exit(0)
end
 
desc "Run the specs"
Spec::Rake::SpecTask.new do |t|
  t.spec_opts = ['--options', "spec/spec.opts"]
  t.spec_files = FileList['spec/**/*_spec.rb']
end
 
begin
  require 'jeweler'
 
  Jeweler::Tasks.new do |s|
    s.name = "friendfeedr"
    s.summary = "Ruby client for retrieving and publishing Friendfeed data"
    s.email = "dinsley@gmail.com "
    s.homepage = "http://github.com/dinsley/friendfeedr"
    s.description = "Ruby client for retrieving and publishing Friendfeed data"
    s.authors = ["Daniel Insley"]
    s.add_dependency('hpricot', '>= 0.6')
  end
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
 
task :default => [:spec]