Sha256: be01942f161258712e786e8dc126131d3494eb4bbb4c5336acdd03fa03c91d52

Contents?: true

Size: 626 Bytes

Versions: 1

Compression:

Stored size: 626 Bytes

Contents

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

module Otacrawler
  config = YAML.load(ERB.new(IO.read(ENV["DATABASE_SETTING_PATH"])).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.1 lib/otacrawler.rb