summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Rakefile70
1 files changed, 35 insertions, 35 deletions
diff --git a/Rakefile b/Rakefile
index d3e335f..4e37f19 100644
--- a/Rakefile
+++ b/Rakefile
@@ -10,59 +10,59 @@ PKG_NAME = 'feed2imap'
PKG_VERSION = `ruby -Ilib -rfeed2imap/feed2imap -e 'print F2I_VERSION'`
PKG_FILES = [ 'ChangeLog', 'README', 'COPYING', 'setup.rb', 'Rakefile']
Find.find('bin/', 'lib/', 'test/', 'data/') do |f|
- if FileTest.directory?(f) and f =~ /\.svn/
- Find.prune
- else
- PKG_FILES << f
- end
+ if FileTest.directory?(f) and f =~ /\.svn/
+ Find.prune
+ else
+ PKG_FILES << f
+ end
end
Rake::TestTask.new do |t|
- t.verbose = true
- t.libs << "libs/feed2imap"
- t.libs << "test"
- t.test_files = FileList['test/tc_*.rb'] - ['test/tc_httpfetcher.rb']
+ t.verbose = true
+ t.libs << "libs/feed2imap"
+ t.libs << "test"
+ t.test_files = FileList['test/tc_*.rb'] - ['test/tc_httpfetcher.rb']
end
RDoc::Task.new do |rd|
- rd.main = 'README'
- rd.rdoc_files.include('lib/*.rb', 'lib/feed2imap/*.rb')
- rd.options << '--all'
+ rd.main = 'README'
+ rd.rdoc_files.include('lib/*.rb', 'lib/feed2imap/*.rb')
+ rd.options << '--all'
rd.options << '--diagram'
rd.options << '--fileboxes'
rd.options << '--inline-source'
rd.options << '--line-numbers'
- rd.rdoc_dir = 'rdoc'
+ rd.rdoc_dir = 'rdoc'
end
Rake::PackageTask.new(PKG_NAME, PKG_VERSION) do |p|
- p.need_tar = true
- p.need_zip = true
- p.package_files = PKG_FILES
+ p.need_tar = true
+ p.need_zip = true
+ p.package_files = PKG_FILES
end
# "Gem" part of the Rakefile
begin
- require 'rubygems/package_task'
+ require 'rubygems/package_task'
- spec = Gem::Specification.new do |s|
- s.platform = Gem::Platform::RUBY
- s.summary = "RSS/Atom feed aggregator"
- s.name = PKG_NAME
- s.version = PKG_VERSION
- s.add_runtime_dependency 'ruby-feedparser', '>= 0.9'
- s.require_path = 'lib'
- s.executables = PKG_FILES.grep(%r{\Abin\/.}).map { |bin|
- bin.gsub(%r{\Abin/}, '')
- }
- s.files = PKG_FILES
- s.description = "RSS/Atom feed aggregator"
- s.authors = ['Lucas Nussbaum']
- end
+ spec = Gem::Specification.new do |s|
+ s.platform = Gem::Platform::RUBY
+ s.summary = "RSS/Atom feed aggregator"
+ s.name = PKG_NAME
+ s.version = PKG_VERSION
+ s.add_runtime_dependency 'ruby-feedparser', '>= 0.9'
+ s.require_path = 'lib'
+ s.executables = PKG_FILES.grep(%r{\Abin\/.}).map { |bin|
+ bin.gsub(%r{\Abin/}, '')
+ }
+ s.files = PKG_FILES
+ s.description = "RSS/Atom feed aggregator"
+ s.authors = ['Lucas Nussbaum']
+ end
- Gem::PackageTask.new(spec) do |pkg|
- pkg.need_zip = true
- pkg.need_tar = true
- end
+ Gem::PackageTask.new(spec) do |pkg|
+ pkg.need_zip = true
+ pkg.need_tar = true
+ end
rescue LoadError
puts "Will not generate gem."
end