Browse files

+ history

  • Loading branch information...
1 parent da41281 commit fff7f514ce08f4734bc5799dd2d571ec9e1fdd81 @floere committed Nov 30, 2011
Showing with 2 additions and 6 deletions.
  1. +2 −2 history.textile
  2. +0 −4 server/lib/picky/backends/sqlite/array.rb
View
4 history.textile
@@ -5,9 +5,9 @@ h2. Upcoming Version
h2. Version 3.6.8
-* hanke: (server) BREAKING Renamed the undocumented @Search#maximum_tokens(integer)@ to @Search#max_words(integer)@. Restricts the amoun
+* hanke: (server) BREAKING Renamed the undocumented @Tokenizer#maximum_tokens(integer)@ to @Tokenizer#max_words(integer)@. Restricts the amount of words that the tokenizer lets through to the core search engine.
* hanke: (server) Added @Search#max_allocations(integer)@ to restrict number of allocations that are actually calculated (to avoid combinatorial and UI explosions).
-* hanke: (server) Added @<<@ and @unshift@ on @Index@ and @Category@. The @unshift@ method behaves like the @add@ method when called without a second parameter. Use like @index << Thing.new(1, 'some text', 'some other text')@.
+* hanke: (server) Added @<<@ and @unshift@ on @Index@ and @Category@. The @unshift@ method behaves like the @add@ method when that one is called without a second parameter. Use like @index << Thing.new(1, 'some text', 'some other text')@.
* hanke: (server) Existence of a source is only checked when really needed. Will fail hard if there is none, with a (hopefully) useful error message.
h2. Version 3.6.7
View
4 server/lib/picky/backends/sqlite/array.rb
@@ -7,8 +7,6 @@ class SQLite
class Array < Basic
def []= key, array
- # p [cache_path, key.to_s, Yajl::Encoder.encode(array)]
-
if array.empty?
db.execute 'insert or replace into key_value (key, value) values (?,?)', key.to_s, Yajl::Encoder.encode(array)
end
@@ -18,8 +16,6 @@ def []= key, array
end
def [] key
- # p [cache_path, key.to_s]
-
res = db.execute "select value from key_value where key = ? limit 1;", key.to_s
return res unless res

0 comments on commit fff7f51

Please sign in to comment.