primedia-endeca 0.9.17 → 0.9.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/endeca.gemspec +1 -1
- data/lib/core_ext.rb +1 -1
- data/lib/endeca.rb +6 -1
- metadata +1 -1
data/endeca.gemspec
CHANGED
data/lib/core_ext.rb
CHANGED
data/lib/endeca.rb
CHANGED
@@ -21,7 +21,7 @@ require 'endeca/document'
|
|
21
21
|
module Endeca
|
22
22
|
|
23
23
|
# :stopdoc:
|
24
|
-
VERSION = '0.9.
|
24
|
+
VERSION = '0.9.18'
|
25
25
|
# :startdoc:
|
26
26
|
|
27
27
|
# Returns the version string for the library.
|
@@ -38,4 +38,9 @@ module Endeca
|
|
38
38
|
|
39
39
|
self.debug = false
|
40
40
|
self.logger = Logger.new(STDOUT)
|
41
|
+
|
42
|
+
# Endeca URIs require colons to be escaped
|
43
|
+
def self.escape(str)
|
44
|
+
URI.escape(str, /[^-_.!~*'()a-zA-Z\d;\/?@&=+$,\[\]]/n)
|
45
|
+
end
|
41
46
|
end
|