libreconv 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/lib/libreconv.rb +2 -1
- data/lib/libreconv/version.rb +1 -1
- data/libreconv.gemspec +2 -2
- metadata +16 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2aaeccebcf95bd8b878d07f27956f66e92cc202f
|
4
|
+
data.tar.gz: 5dabbf673b48f7c2416da68ed52ec25cf5499117
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32ae9ee9c86ae247b7ed2141a5b320d4813c4a8944ddbdcf4da84eb170f83bbfc8983360ce4278b3ae0571827b23301ae9a53cf493f7269e09d2b15d86e044d8
|
7
|
+
data.tar.gz: 81980a3d44013c27c823b2e7f08aca621f7e84d95ab2becbaf4fd4d2213d5ff28a8378e26cb16cf6ceac147fc2701d7946f94c8b8b0b376978cb001e08e5c87c
|
data/.travis.yml
CHANGED
data/lib/libreconv.rb
CHANGED
@@ -2,6 +2,7 @@ require "libreconv/version"
|
|
2
2
|
require "uri"
|
3
3
|
require "net/http"
|
4
4
|
require "tmpdir"
|
5
|
+
require "spoon"
|
5
6
|
|
6
7
|
module Libreconv
|
7
8
|
|
@@ -27,7 +28,7 @@ module Libreconv
|
|
27
28
|
|
28
29
|
def convert
|
29
30
|
cmd = "#{@soffice_command} --headless --convert-to pdf #{@source} -outdir #{@target_path}"
|
30
|
-
pid =
|
31
|
+
pid = Spoon.spawnp(@soffice_command, "--headless", "--convert-to", "pdf", @source, "-outdir", @target_path, ">", "/dev/null")
|
31
32
|
Process.waitpid(pid)
|
32
33
|
target_tmp_file = "#{@target_path}/#{File.basename(@source, ".*")}.pdf"
|
33
34
|
FileUtils.cp target_tmp_file, @target
|
data/lib/libreconv/version.rb
CHANGED
data/libreconv.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Libreconv::VERSION
|
9
9
|
spec.authors = ["Richard Nyström"]
|
10
10
|
spec.email = ["ricny046@gmail.com"]
|
11
|
-
spec.description = %q{ Convert office documents to PDF using LibreOffice
|
11
|
+
spec.description = %q{ Convert office documents to PDF using LibreOffice. }
|
12
12
|
spec.summary = %q{ Convert office documents to PDF. }
|
13
13
|
spec.homepage = "https://github.com/ricn/libreconv"
|
14
14
|
spec.license = "MIT"
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
|
-
|
20
|
+
spec.add_dependency "spoon"
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.3"
|
22
22
|
spec.add_development_dependency "rake"
|
23
23
|
spec.add_development_dependency "rspec"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libreconv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Nyström
|
@@ -10,6 +10,20 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2013-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: spoon
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,8 +66,7 @@ dependencies:
|
|
52
66
|
- - '>='
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '0'
|
55
|
-
description: ' Convert office documents to PDF using LibreOffice
|
56
|
-
the heavy lifting. '
|
69
|
+
description: ' Convert office documents to PDF using LibreOffice. '
|
57
70
|
email:
|
58
71
|
- ricny046@gmail.com
|
59
72
|
executables: []
|