filerary 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/filerary/librarian.rb +11 -0
- data/lib/filerary/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 344e1d5e01114b63eccf5dee74a935be4abc0eed
|
4
|
+
data.tar.gz: cb20cf7d3c31349043ea7c6b873ed4faedcd0335
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76f9a2dc1f5708f972ea54205c69e890bcaaa25e42af276f952434b0e71ab8126a910c85ebd3c802586cd325bfa60d9c1fa96bcb3b6368b7f11dc2381caa36fc
|
7
|
+
data.tar.gz: 5d05e68e85760d7c2a5b2b99d7f01eea25e592021397ce706224cbbeaa7317539eff9c48b5dfa1f57b7fc14dca67831d806d37f48eb26520eeae92de8055e095
|
data/lib/filerary/librarian.rb
CHANGED
@@ -5,6 +5,16 @@ require "chupa-text"
|
|
5
5
|
gem "chupa-text-decomposer-pdf"
|
6
6
|
gem "chupa-text-decomposer-libreoffice"
|
7
7
|
|
8
|
+
# TODO: I'll send pull request to ChupaText.
|
9
|
+
module URI
|
10
|
+
class Generic
|
11
|
+
alias :__path__ :path
|
12
|
+
def path
|
13
|
+
URI.decode(__path__)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
8
18
|
module Filerary
|
9
19
|
class Librarian
|
10
20
|
attr_reader :db_dir, :db_path
|
@@ -64,6 +74,7 @@ module Filerary
|
|
64
74
|
extractor.apply_configuration(ChupaText::Configuration.default)
|
65
75
|
|
66
76
|
begin
|
77
|
+
# TODO: I'll send pull request to ChupaText.
|
67
78
|
extractor.extract(URI.encode(path)) do |text_data|
|
68
79
|
text = text_data.body
|
69
80
|
end
|
data/lib/filerary/version.rb
CHANGED