Sha256: 2f236a9f62cec243b457a71c79a5224a78d24b09c4223d4f20986660a06b5bef

Contents?: true

Size: 612 Bytes

Versions: 1

Compression:

Stored size: 612 Bytes

Contents

require "erb"
require "yaml"
require "mem"
require "active_record"

module Otacrawler
  config = YAML.load(ERB.new(IO.read("database.yml")).result)
  ActiveRecord::Base.establish_connection(config["db"]["development"])

  class << self
    include Mem
    def sites
      []
    end
    memoize :sites
  end
end

require "otacrawler/version"
require "otacrawler/collector"
require "otacrawler/robot"
require "otacrawler/models/comic"
require "otacrawler/models/author"
require "otacrawler/models/story"
require "otacrawler/models/writing"

require "otacrawler/sites/base"
require "otacrawler/sites/tonari_no_yj"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
otacrawler-0.1.0 lib/otacrawler.rb