Package list feed2imap / 6770b06
Imported Upstream version 1.2 Antonio Terceiro 8 years ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
66 task :default => [:test]
77
88 PKG_NAME = 'feed2imap'
9 PKG_VERSION = '1.1'
9 PKG_VERSION = '1.2'
1010 PKG_FILES = [ 'ChangeLog', 'README', 'COPYING', 'setup.rb', 'Rakefile']
1111 Find.find('bin/', 'lib/', 'test/', 'data/') do |f|
1212 if FileTest.directory?(f) and f =~ /\.svn/
4747 s.summary = "RSS/Atom feed aggregator"
4848 s.name = PKG_NAME
4949 s.version = PKG_VERSION
50 s.requirements << 'feedparser'
50 s.add_runtime_dependency 'ruby-feedparser', '0.9'
5151 s.require_path = 'lib'
5252 s.executables = PKG_FILES.grep(%r{\Abin\/.}).map { |bin|
5353 bin.gsub(%r{\Abin/}, '')
222222 next
223223 end
224224 begin
225 feed = FeedParser::Feed::new(f.body.force_encoding('UTF-8'))
225 feed = FeedParser::Feed::new(f.body.force_encoding('UTF-8'), f.url)
226226 rescue Exception
227227 n = @cache.parse_failed(f.name)
228228 m = "Error while parsing #{f.name}: #{$!} (failed #{n} times)"