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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ce0f970692c7d1bdc362dc7f67d6c4f375d2868
4
- data.tar.gz: cde3a5950f350d9e15d2ff65b9add3a0f8e858a5
3
+ metadata.gz: e0a8125904c6b19bde0907e2be6ff7ad9f319927
4
+ data.tar.gz: 6ada801fee29d59e484e7813c8b6dbd1664a802b
5
5
  SHA512:
6
- metadata.gz: f002b01854b74a5d5d93e13f6ef98d160cc3db5ceff0e3c0256b9e38861b59acd740f500f039d32773c57305574d1e112a1000e4a6c84080823608ae12c90f95
7
- data.tar.gz: 143d0466a6653ba2696398090d87e75bca53e626a756d59a3d348c3ecaf6f7e968c6276326311ef4eddf28746307d4d361490c21e02f9593062c5b7254179a04
6
+ metadata.gz: ecd0e5c8e4fb4cf239f71b5b3279cc2ecbfdc7c76f63e2b493e2b6e3908e14db99566edd269e582179492bd4cf40056fe44893030f82d24ab503d537730dbc8b
7
+ data.tar.gz: 442bf0b4d19ca49fe230133fc03119fd3d8e6b555a0e30a8276c667a3addaf0a0613bcdbbb2165906aee28c4870db189647cccda10f972caa4eb8127f0880ae1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ##1.3.5.4 (Jan 13th, 2015)
2
+
3
+ Fixes:
4
+
5
+ - path to database fixed in railtie
6
+ - fix for xapian > 1.2.15
7
+
1
8
  ##1.3.5.3 (May 22th, 2014)
2
9
 
3
10
  Fixes:
@@ -207,14 +207,10 @@ module XapianDb
207
207
  @reader = Xapian::Database.new(@path)
208
208
  end
209
209
 
210
- # Get the readable instance of the database. On each access this method reopens the readable database
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
- # Always reopen the readable database so we get live index data
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
@@ -44,7 +44,7 @@ module XapianDb
44
44
  if @database_path == ":memory:"
45
45
  config.database :memory
46
46
  else
47
- config.database File.expand_path @database_path
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.3
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: 2014-05-22 00:00:00.000000000 Z
11
+ date: 2015-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons