# -*- coding: utf-8 -*- require 'logger' require 'consadole_aggregator/nikkan_sports' require 'consadole_aggregator/live' module ConsadoleAggregator def self.log @@log ||= Logger.new('log/application.log') end Image = Struct.new :src, :alt do def to_html %Q{#{self.alt}} end end end if __FILE__ == $0 DataMapper.setup(:default, 'sqlite3:db/test.sqlite3') DataMapper.auto_migrate! ConsadoleAggregator::NikkanSports.save print ConsadoleAggregator::NikkanSports.rss end