xapian_db 1.3.5.3 → 1.3.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/xapian_db/database.rb +2 -6
- data/lib/xapian_db/railtie.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0a8125904c6b19bde0907e2be6ff7ad9f319927
|
4
|
+
data.tar.gz: 6ada801fee29d59e484e7813c8b6dbd1664a802b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecd0e5c8e4fb4cf239f71b5b3279cc2ecbfdc7c76f63e2b493e2b6e3908e14db99566edd269e582179492bd4cf40056fe44893030f82d24ab503d537730dbc8b
|
7
|
+
data.tar.gz: 442bf0b4d19ca49fe230133fc03119fd3d8e6b555a0e30a8276c667a3addaf0a0613bcdbbb2165906aee28c4870db189647cccda10f972caa4eb8127f0880ae1
|
data/CHANGELOG.md
CHANGED
data/lib/xapian_db/database.rb
CHANGED
@@ -207,14 +207,10 @@ module XapianDb
|
|
207
207
|
@reader = Xapian::Database.new(@path)
|
208
208
|
end
|
209
209
|
|
210
|
-
# Get
|
211
|
-
# to make sure you get the latest changes to the index
|
210
|
+
# Get a readable instance of the database
|
212
211
|
# @return [Xapian::Database] A readable xapian database (see http://xapian.org/docs/apidoc/html/classXapian_1_1Database.html)
|
213
212
|
def reader
|
214
|
-
|
215
|
-
# TODO: make this configurable
|
216
|
-
@reader.reopen
|
217
|
-
@reader
|
213
|
+
Xapian::Database.new(@path)
|
218
214
|
end
|
219
215
|
|
220
216
|
# The writer is instantiated layzily to avoid a permanent write lock on the database. Please note that
|
data/lib/xapian_db/railtie.rb
CHANGED
@@ -44,7 +44,7 @@ module XapianDb
|
|
44
44
|
if @database_path == ":memory:"
|
45
45
|
config.database :memory
|
46
46
|
else
|
47
|
-
config.database
|
47
|
+
config.database Rails.root.join(@database_path).to_s
|
48
48
|
end
|
49
49
|
config.adapter @adapter.try(:to_sym)
|
50
50
|
config.writer @writer.try(:to_sym)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xapian_db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.5.
|
4
|
+
version: 1.3.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gernot Kogler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: daemons
|