Sha256: 82547c9d81223810e96b6feb9dd8a46a7b74a6c704dff1f37c16135de3354b0d
Contents?: true
Size: 585 Bytes
Versions: 3
Compression:
Stored size: 585 Bytes
Contents
require 'uri' require 'json' require 'redis' require 'soulmate/version' require 'soulmate/helpers' require 'soulmate/base' require 'soulmate/matcher' require 'soulmate/loader' module Soulmate extend self MIN_COMPLETE = 2 STOP_WORDS = ["vs", "at"] def redis=(url) @redis = nil @redis_url = url redis end def redis @redis ||= ( url = URI(@redis_url || "redis://127.0.0.1:6379/0") ::Redis.new({ :host => url.host, :port => url.port, :db => url.path[1..-1], :password => url.password }) ) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
soulmate-0.0.4 | lib/soulmate.rb |
soulmate-0.0.3 | lib/soulmate.rb |
soulmate-0.0.2 | lib/soulmate.rb |