rghost 0.8.9 → 0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rghost/ruby_ghost_config.rb +2 -2
- data/lib/rghost/ruby_ghost_engine.rb +1 -1
- metadata +4 -5
@@ -83,8 +83,8 @@ module RGhost::Config
|
|
83
83
|
}
|
84
84
|
|
85
85
|
def self.config_platform #:nodoc:
|
86
|
-
const= 'PLATFORM'
|
87
|
-
const = "RUBY_"+const if RUBY_VERSION =~
|
86
|
+
const = 'PLATFORM'
|
87
|
+
const = "RUBY_"+const if RUBY_VERSION =~ /1\.[89]|2\.\d/
|
88
88
|
GS[:path]=case Object.const_get(const)
|
89
89
|
when /linux/ then "/usr/bin/gs"
|
90
90
|
when /darwin|freebsd|bsd/ then "/usr/local/bin/gs"
|
@@ -23,7 +23,7 @@ class RGhost::Engine
|
|
23
23
|
device||=@options[:device]
|
24
24
|
tmp_filename=@options[:filename]
|
25
25
|
unless tmp_filename
|
26
|
-
tmp_filename||=
|
26
|
+
tmp_filename||= File.join(RGhost::Config::GS[:tmpdir], "#{self.object_id.abs}-#{rand(999999)}-#{Time.now.to_i}")
|
27
27
|
file_out="#{tmp_filename}.#{device}"
|
28
28
|
else
|
29
29
|
file_out=tmp_filename
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rghost
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
- 8
|
9
8
|
- 9
|
10
|
-
version: 0.
|
9
|
+
version: "0.9"
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Shairon Toledo
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2013-
|
17
|
+
date: 2013-04-09 00:00:00 Z
|
19
18
|
dependencies: []
|
20
19
|
|
21
20
|
description: Ruby Ghostscript Engine is a document creation and conversion API, support(PDF,PS,GIF,TIF,PNG,JPG...). It uses the GhostScript framework for the format conversion, utilizes EPS templates and is optimized to work with larger documents.
|
@@ -189,7 +188,7 @@ rubyforge_project: Ruby Ghostscript Engine is a document creation and conversion
|
|
189
188
|
rubygems_version: 1.8.24
|
190
189
|
signing_key:
|
191
190
|
specification_version: 3
|
192
|
-
summary: Ruby Ghostscript Engine is a document creation and conversion API, support(PDF,PS,GIF,TIF,PNG,JPG...).
|
191
|
+
summary: Ruby Ghostscript Engine is a document creation and conversion API, support(PDF,PS,GIF,TIF,PNG,JPG...).
|
193
192
|
test_files: []
|
194
193
|
|
195
194
|
has_rdoc:
|