forked from jnicklas/feed_me
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
63 lines (54 loc) · 1.65 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
require 'rubygems'
require 'rake/gempackagetask'
require 'spec/rake/spectask'
file_list = FileList[File.join(File.dirname(__FILE__),'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('nokogiri')
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