lib/riddle.rb in riddle-0.9.8.1231.0 vs lib/riddle.rb in riddle-0.9.8.1533.10
- old
+ new
@@ -1,10 +1,11 @@
require 'socket'
+require 'timeout'
+
require 'riddle/client'
-require 'riddle/client/filter'
-require 'riddle/client/message'
-require 'riddle/client/response'
+require 'riddle/configuration'
+require 'riddle/controller'
module Riddle #:nodoc:
class ConnectionError < StandardError #:nodoc:
end
@@ -12,14 +13,18 @@
Major = 0
Minor = 9
Tiny = 8
# Revision number for RubyForge's sake, taken from what Sphinx
# outputs to the command line.
- Rev = 1231
+ Rev = 1533
# Release number to mark my own fixes, beyond feature parity with
# Sphinx itself.
- Release = 0
+ Release = 10
- String = [Major, Minor, Tiny].join('.') + "rc2"
+ String = [Major, Minor, Tiny].join('.')
GemVersion = [Major, Minor, Tiny, Rev, Release].join('.')
+ end
+
+ def self.escape(string)
+ string.gsub(/[\(\)\|\-!@~"&\/]/) { |char| "\\#{char}" }
end
end
\ No newline at end of file