Sha256: e82050730f90ab36d0eb1558451563fa7f27e25d90164120a8f6089611b09d4b
Contents?: true
Size: 932 Bytes
Versions: 5
Compression:
Stored size: 932 Bytes
Contents
require 'couchrest' require 'json' require 'json/add/core' require 'json/add/rails' require 'ostruct' require 'validatable' module CouchPotato Config = OpenStruct.new def self.database @@__database ||= Database.new(self.couchrest_database) end def self.couchrest_database @@__couchrest_database ||= CouchRest.database(full_url_to_database) end def self.full_url_to_database database_name = CouchPotato::Config.database_name || raise('No Database configured. Set CouchPotato::Config.database_name') url = database_name if url !~ /^http:\/\// url = "http://localhost:5984/#{database_name}" end url end end require File.dirname(__FILE__) + '/core_ext/object' require File.dirname(__FILE__) + '/core_ext/time' require File.dirname(__FILE__) + '/core_ext/date' require File.dirname(__FILE__) + '/core_ext/string' require File.dirname(__FILE__) + '/couch_potato/persistence'
Version data entries
5 entries across 5 versions & 2 rubygems