Sha256: fc1de7faabf051090f7f88207a8bf115e58ff83a2e1912032fa5ed0a1c082d04

Contents?: true

Size: 446 Bytes

Versions: 2

Compression:

Stored size: 446 Bytes

Contents

require 'thinking_sphinx/deltas/default_delta'
require 'thinking_sphinx/deltas/delayed_delta'

module ThinkingSphinx
  module Deltas
    def self.parse(index, options)
      case options.delete(:delta)
      when TrueClass, :default
        DefaultDelta.new index, options
      when :delayed
        DelayedDelta.new index, options
      when FalseClass, nil
        nil
      else
        raise "Unknown delta type"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
freelancing-god-thinking-sphinx-1.1.0 lib/thinking_sphinx/deltas.rb
freelancing-god-thinking-sphinx-1.1.1 lib/thinking_sphinx/deltas.rb