emeals 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/lib/emeals/client.rb +2 -2
- data/lib/emeals/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3178b11e5267513c28c8c178cb50c6d1e0ea0c72
|
4
|
+
data.tar.gz: 1e9a05ec92c3c5d0fa9f15a424b79249be5532a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab3d1c6435c055ea4599d107bff6023f9aba496bb83e3f1a0f65503029a2a1593d046270797d561e0368f343c4de9593c0c07e113f51c9b622d2939d1cb25edd
|
7
|
+
data.tar.gz: 4283bf336564364166326488a249556c5a6b265165308b0cba948e782d52419d81029ba07753f9717a0f8e1ec9d790ba1b8c18628c8e55f1c901739aa33bcc2c
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.0-
|
1
|
+
2.0.0-p247
|
data/lib/emeals/client.rb
CHANGED
@@ -23,7 +23,7 @@ class Emeals::Client
|
|
23
23
|
|
24
24
|
def pdf_to_text(filename)
|
25
25
|
system(pdf_to_text_path, '-raw', '-enc', 'UTF-8', filename)
|
26
|
-
File.
|
26
|
+
File.open(filename.sub(/\.pdf$/, '.txt'), mode: 'r', encoding: 'UTF-8') { |f| f.read }
|
27
27
|
end
|
28
28
|
|
29
29
|
def pdf_to_text_path
|
@@ -31,4 +31,4 @@ class Emeals::Client
|
|
31
31
|
return '/opt/boxen/homebrew/bin/pdftotext' if path.empty?
|
32
32
|
path
|
33
33
|
end
|
34
|
-
end
|
34
|
+
end
|
data/lib/emeals/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emeals
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Moriarity
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A client for interpreting eMeals menus.
|
14
14
|
email:
|
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
59
|
version: '0'
|
60
60
|
requirements: []
|
61
61
|
rubyforge_project:
|
62
|
-
rubygems_version: 2.0.
|
62
|
+
rubygems_version: 2.0.3
|
63
63
|
signing_key:
|
64
64
|
specification_version: 4
|
65
65
|
summary: eMeals Client
|