public
Description: A tiny parser for RSS and Atom feeds built on Hpricot
Homepage:
Clone URL: git://github.com/jnicklas/feed_me.git
feed_me / Rakefile
100644 64 lines (54 sloc) 1.651 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
require 'rubygems'
require 'rake/gempackagetask'
require 'spec/rake/spectask'
 
file_list = FileList['spec/*_spec.rb']
 
namespace :spec do
  desc "Run all examples with RCov"
  Spec::Rake::SpecTask.new('rcov') do |t|
    t.spec_files = file_list
    t.rcov = true
    t.rcov_dir = "doc/coverage"
    t.rcov_opts = ['--exclude', 'spec']
  end
  
  desc "Generate an html report"
  Spec::Rake::SpecTask.new('report') do |t|
    t.spec_files = file_list
    t.rcov_opts = ['--exclude', 'spec']
    t.spec_opts = ["--format", "html:doc/reports/specs.html"]
    t.fail_on_error = false
  end
 
end
 
desc "Run all examples"
Spec::Rake::SpecTask.new('spec') do |t|
  t.spec_files = file_list
end
 
desc 'Default: run specs.'
task :default => 'spec'
 
PLUGIN = "feed_me"
NAME = "feed_me"
AUTHOR = ["Jonas Nicklas", "Jonathan Stott"]
EMAIL = "jonas.nicklas@gmail.com"
HOMEPAGE = "http://github.com/jnicklas/feed_me"
SUMMARY = "Nice and simple RSS and atom feed parsing built on hpricot"
 
spec = Gem::Specification.new do |s|
end
 
begin
  require 'jeweler'
  Jeweler::Tasks.new do |s|
    s.name = NAME
    s.platform = Gem::Platform::RUBY
    s.has_rdoc = true
    s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
    s.summary = SUMMARY
    s.description = s.summary
    s.authors = AUTHOR
    s.email = EMAIL
    s.homepage = HOMEPAGE
    s.require_path = 'lib'
    s.autorequire = PLUGIN
    s.add_dependency('hpricot')
    s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs}/**/*")
  end
rescue
  puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install namelessjon-jeweler -s http://gems.github.com"
end