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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d7dc0c6cbb0739fa5b66291ca92f91cfd96851c
4
- data.tar.gz: 736c8bbebcbe160492093410c98f3f2ccc2f596e
3
+ metadata.gz: 2aaeccebcf95bd8b878d07f27956f66e92cc202f
4
+ data.tar.gz: 5dabbf673b48f7c2416da68ed52ec25cf5499117
5
5
  SHA512:
6
- metadata.gz: 8eeed18bc37356b6f5b900468c181825c798d9c433275bd13e1a0c970d79d0afe48c4cc22d0e854ff4870b46905d0979f06c3cff8a0a4f47dc7efd3d2fa43c52
7
- data.tar.gz: e9f7fe927979a2fb3409f7494e6f8f15421630fbbb718700aca6c6831055e6aa9ed4900d54b75afe1cb349c85340a6811cc2ae2cec65620a6a6db665949e79af
6
+ metadata.gz: 32ae9ee9c86ae247b7ed2141a5b320d4813c4a8944ddbdcf4da84eb170f83bbfc8983360ce4278b3ae0571827b23301ae9a53cf493f7269e09d2b15d86e044d8
7
+ data.tar.gz: 81980a3d44013c27c823b2e7f08aca621f7e84d95ab2becbaf4fd4d2213d5ff28a8378e26cb16cf6ceac147fc2701d7946f94c8b8b0b376978cb001e08e5c87c
@@ -3,6 +3,8 @@ rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
5
  - rbx-19mode
6
+ - jruby-19mode
7
+ - jruby-head
6
8
  notifications:
7
9
  recipients:
8
10
  - ricny046@gmail.com
@@ -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 = Process.spawn(cmd, [:out, :err] => "/dev/null")
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
@@ -1,3 +1,3 @@
1
1
  module Libreconv
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
@@ -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 / OpenOffice for the heavy lifting. }
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.7.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 / OpenOffice for
56
- the heavy lifting. '
69
+ description: ' Convert office documents to PDF using LibreOffice. '
57
70
  email:
58
71
  - ricny046@gmail.com
59
72
  executables: []