rghost 0.9.6 → 0.9.8
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 +5 -13
- data/lib/rghost/gs_alone.rb +2 -2
- data/lib/rghost/ruby_ghost_config.rb +1 -1
- data/lib/rghost/ruby_ghost_engine.rb +3 -1
- metadata +8 -11
checksums.yaml
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
5
|
-
data.tar.gz: !binary |-
|
|
6
|
-
YTdiYWZkOTBhMjRjMmE2YjU0MTQ5N2YxODllMDk0ZjlhOGVmNDJkYQ==
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 19399799fab0577cd7192fd7c08c030acc1cbce6a237d81158555b1bc71b3a8a
|
|
4
|
+
data.tar.gz: a8e7c939a8f5cd63d5a62096711bc4d947ec6deea1d9d0d6d4275d75f08ee0e1
|
|
7
5
|
SHA512:
|
|
8
|
-
metadata.gz:
|
|
9
|
-
|
|
10
|
-
OTFmOWZiZGVlMDU4N2Q5NjFiOTA2NWViMGQ4NDM4Zjk4ZTk5ZDA4YmYwYjNk
|
|
11
|
-
Y2JkNjBiOGUwYzc5MzY3ZTdkOTY2ZDRmODBhNmM2ZWIzODUxYzg=
|
|
12
|
-
data.tar.gz: !binary |-
|
|
13
|
-
NzY3YmNmMjkxODY4NTBmZGIyMzU2YjBkNTlhMzU4MGRiMWQzOTE0ZjcyZWFk
|
|
14
|
-
OGU2YmFiMWE5OGQ5ZjIyMzU3YjVlMzY5ODA3ZmZiZjZkZmY5NmY0ZGZlMTUx
|
|
15
|
-
MDFlMzE4MTUwOWY1Zjc0YzFjMDAzZGFkYWE5NjhhNTc2N2U5MzM=
|
|
6
|
+
metadata.gz: '092afe79c88d1a74538ed47f4894297f153ed45ad9f90c2f744776cab6c717bd30d69cbf7eb94e41122becd93d495f74fb06d78a7bbcc2a606aba014d41f4490'
|
|
7
|
+
data.tar.gz: 851f4c27ac2cc91577d7bda43ceea0af49524f0dfb8941db3d6d97a27d9558c03c00db8cf5c4f7bed528939415e7353f95a3e5b425b3ea3012d160f18c1fcf8b
|
data/lib/rghost/gs_alone.rb
CHANGED
|
@@ -8,8 +8,8 @@ class RGhost::GSAlone #:nodoc:
|
|
|
8
8
|
|
|
9
9
|
def run
|
|
10
10
|
cmd=@params.join(" ")
|
|
11
|
-
#puts File.
|
|
12
|
-
unless File.
|
|
11
|
+
#puts File.exist?(RGhost::Config::GS[:path].to_s)
|
|
12
|
+
unless File.exist?(RGhost::Config::GS[:path].to_s)
|
|
13
13
|
RGhost::Config.config_platform
|
|
14
14
|
end
|
|
15
15
|
r=system(RGhost::Config::GS[:path]+cmd)
|
|
@@ -85,7 +85,7 @@ module RGhost::Config
|
|
|
85
85
|
else ''
|
|
86
86
|
end
|
|
87
87
|
not_found_msg="\nGhostscript not found in your system environment (#{RbConfig::CONFIG['host_os']}).\nInstall it and set the variable RGhost::Config::GS[:path] with the executable.\nExample: RGhost::Config::GS[:path]='/path/to/my/gs' #unix-style\n RGhost::Config::GS[:path]=\"C:\\\\gs\\\\bin\\\\gswin32c.exe\" #windows-style\n"
|
|
88
|
-
raise not_found_msg unless (File.
|
|
88
|
+
raise not_found_msg unless (File.exist? GS[:path])
|
|
89
89
|
end
|
|
90
90
|
|
|
91
91
|
#Test if your environment is ready to works. If yes the page below will show.
|
|
@@ -67,6 +67,8 @@ class RGhost::Engine
|
|
|
67
67
|
#@delete_input=false unless @options[:debug]
|
|
68
68
|
when String
|
|
69
69
|
file_in=@document
|
|
70
|
+
else
|
|
71
|
+
raise RuntimeError.new("Cannot convert #{@document.class}. Supported classes are RGhost::Document or File or String.")
|
|
70
72
|
end
|
|
71
73
|
|
|
72
74
|
params << shellescape(file_in)
|
|
@@ -82,7 +84,7 @@ class RGhost::Engine
|
|
|
82
84
|
end
|
|
83
85
|
|
|
84
86
|
if @error # if error
|
|
85
|
-
@errors=File.open(file_err).readlines if File.
|
|
87
|
+
@errors=File.open(file_err).readlines if File.exist?(file_err)
|
|
86
88
|
raise RGhost::RenderException.new(@errors.join(" ")) if RGhost::Config::GS[:raise_on_error]
|
|
87
89
|
else
|
|
88
90
|
if multipage
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rghost
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shairon Toledo
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-01-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Ruby Ghostscript Engine is a document creation and conversion API, support(PDF,PS,GIF,TIF,PNG,JPG...).
|
|
14
14
|
It uses the GhostScript framework for the format conversion, utilizes EPS templates
|
|
@@ -151,26 +151,23 @@ files:
|
|
|
151
151
|
homepage: http://rghost.rubyforge.org
|
|
152
152
|
licenses: []
|
|
153
153
|
metadata: {}
|
|
154
|
-
post_install_message:
|
|
154
|
+
post_install_message:
|
|
155
155
|
rdoc_options: []
|
|
156
156
|
require_paths:
|
|
157
157
|
- lib
|
|
158
158
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
159
159
|
requirements:
|
|
160
|
-
- -
|
|
160
|
+
- - ">="
|
|
161
161
|
- !ruby/object:Gem::Version
|
|
162
162
|
version: '0'
|
|
163
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
requirements:
|
|
165
|
-
- -
|
|
165
|
+
- - ">="
|
|
166
166
|
- !ruby/object:Gem::Version
|
|
167
167
|
version: '0'
|
|
168
168
|
requirements: []
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
conversion, utilizes EPS templates and is optimized to work with larger documents.
|
|
172
|
-
rubygems_version: 2.2.2
|
|
173
|
-
signing_key:
|
|
169
|
+
rubygems_version: 3.2.32
|
|
170
|
+
signing_key:
|
|
174
171
|
specification_version: 4
|
|
175
172
|
summary: Ruby Ghostscript Engine is a document creation and conversion API, support(PDF,PS,GIF,TIF,PNG,JPG...).
|
|
176
173
|
test_files: []
|