athena 0.0.4.60 → 0.0.5.61
Sign up to get free protection for your applications and to get access to all the features.
- data/README +1 -1
- data/lib/athena/formats/ferret.rb +9 -1
- data/lib/athena/version.rb +1 -1
- metadata +5 -5
data/README
CHANGED
@@ -27,6 +27,8 @@
|
|
27
27
|
#++
|
28
28
|
|
29
29
|
require 'rubygems'
|
30
|
+
|
31
|
+
gem 'ferret', ENV['FERRET_VERSION'] if ENV['FERRET_VERSION']
|
30
32
|
require 'ferret'
|
31
33
|
|
32
34
|
class Athena::Formats
|
@@ -60,7 +62,13 @@ class Athena::Formats
|
|
60
62
|
index = ::Ferret::Index::IndexReader.new(path)
|
61
63
|
|
62
64
|
0.upto(index.max_doc - 1) { |i|
|
63
|
-
|
65
|
+
next if index.deleted?(i)
|
66
|
+
|
67
|
+
doc = begin
|
68
|
+
index[i]
|
69
|
+
rescue StandardError # "Not available"
|
70
|
+
next
|
71
|
+
end
|
64
72
|
|
65
73
|
record = Athena::Record.new(parser.block, doc[record_element])
|
66
74
|
|
data/lib/athena/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: athena
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5.61
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Wille
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-12-02 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -66,15 +66,15 @@ has_rdoc: true
|
|
66
66
|
homepage: http://prometheus.rubyforge.org/athena
|
67
67
|
post_install_message:
|
68
68
|
rdoc_options:
|
69
|
-
- --line-numbers
|
70
69
|
- --inline-source
|
71
70
|
- --title
|
72
71
|
- athena Application documentation
|
72
|
+
- --charset
|
73
|
+
- UTF-8
|
73
74
|
- --main
|
74
75
|
- README
|
75
76
|
- --all
|
76
|
-
- --
|
77
|
-
- UTF-8
|
77
|
+
- --line-numbers
|
78
78
|
require_paths:
|
79
79
|
- lib
|
80
80
|
required_ruby_version: !ruby/object:Gem::Requirement
|