office_converter 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/office_converter.rb +1 -2
- data/lib/office_converter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTFjYjY2YjVjNjhlYzdiZjgxYWE2ZjE1OTFlZGE0YTYyN2VhZTVkYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTUyYmM0YzNlNzk3MzQ2M2MyMThjMzk0ODM3ODY2YjVjMTgxMTdjMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjA4ZDc0N2VhZGJmODEzOTc1OTg5ZTFhNWMyMjg4N2Q4N2I5NDgzZmUyM2Vi
|
10
|
+
NDY5YWQxMDExOTIwODJjMTkyZDY4NDYwMzIxYjk2ODIxNzA4MDlmMmY3YzY4
|
11
|
+
NzE1MDlhYjU4YzEwNjg1NzhhOGM5Zjc0MDRiN2IwNzljZTZhMDM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTUxN2M2YWEwNDBkMTlhZDk3Y2ExODVkOTVkY2NiMjIxYzVjN2M2YzQ1MjMz
|
14
|
+
ZTkwMTJjZDRmZTIwMGUzZGY5ZThlZjQxZjg5MGZhOGZhNTFlYTJhZmIxNzZi
|
15
|
+
YWZlY2E3Y2Q0M2I2ZjBmN2JiMWVmODM3Mjc0Y2QwYTJiYTAxYTY=
|
data/lib/office_converter.rb
CHANGED
@@ -32,8 +32,7 @@ module OfficeConverter
|
|
32
32
|
def convert
|
33
33
|
orig_stdout = $stdout.clone
|
34
34
|
$stdout.reopen File.new('/dev/null', 'w')
|
35
|
-
pid =
|
36
|
-
Process.waitpid(pid)
|
35
|
+
pid = system(["export HOME=/tmp && ",@soffice_command, "--headless", "--convert-to", @convert_to, @source, "--outdir", @target_dir].join(" "))
|
37
36
|
$stdout.reopen orig_stdout
|
38
37
|
end
|
39
38
|
|