rghost 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/rghost/constants.rb +14 -16
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmEwZTEzYmU1MzQxZmM0OTc0N2UxMzAwYWNjN2YyODgwZDVmOWE2Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTdiYWZkOTBhMjRjMmE2YjU0MTQ5N2YxODllMDk0ZjlhOGVmNDJkYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWQyMTUxMWVlYmI3YjdmNDFmNjc3ZGVhNjBkMzUwYzNjM2MwMDQ1YzhiOTkz
|
10
|
+
OTFmOWZiZGVlMDU4N2Q5NjFiOTA2NWViMGQ4NDM4Zjk4ZTk5ZDA4YmYwYjNk
|
11
|
+
Y2JkNjBiOGUwYzc5MzY3ZTdkOTY2ZDRmODBhNmM2ZWIzODUxYzg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzY3YmNmMjkxODY4NTBmZGIyMzU2YjBkNTlhMzU4MGRiMWQzOTE0ZjcyZWFk
|
14
|
+
OGU2YmFiMWE5OGQ5ZjIyMzU3YjVlMzY5ODA3ZmZiZjZkZmY5NmY0ZGZlMTUx
|
15
|
+
MDFlMzE4MTUwOWY1Zjc0YzFjMDAzZGFkYWE5NjhhNTc2N2U5MzM=
|
data/lib/rghost/constants.rb
CHANGED
@@ -3,7 +3,7 @@ require "rghost/helpers"
|
|
3
3
|
module RGhost::Constants
|
4
4
|
module HashKeyMethod #:nodoc:
|
5
5
|
def method_missing(method, *args)
|
6
|
-
self[method.to_sym]
|
6
|
+
self[method.to_sym]
|
7
7
|
end
|
8
8
|
end
|
9
9
|
class HashKeyMethodClass < Hash #:nodoc:
|
@@ -11,7 +11,7 @@ module RGhost::Constants
|
|
11
11
|
end
|
12
12
|
module Devices
|
13
13
|
#Standard Devices
|
14
|
-
STANDARD=RGhost::Constants::HashKeyMethodClass[
|
14
|
+
STANDARD=RGhost::Constants::HashKeyMethodClass[
|
15
15
|
#-- MS-DOS displays",
|
16
16
|
:ega => "EGA (640x350, 16-color)",
|
17
17
|
:vga => "VGA (640x480, 16-color)",
|
@@ -65,8 +65,6 @@ module RGhost::Constants
|
|
65
65
|
:lj5gray => "H-P LaserJet 5 & 6 family, gray-scale bitmap;",
|
66
66
|
:lp2563 => "H-P 2563B line printer",
|
67
67
|
:oce9050 => "OCE 9050 printe",
|
68
|
-
:pxlmono => "H-P black-and-white PCL XL printers (LaserJet 5 and 6 family)",
|
69
|
-
:pxlcolor => "H-P color PCL XL printers (e.g. Color LaserJet 4500)",
|
70
68
|
#-- Fax file format",
|
71
69
|
:faxg3 => "Group 3 fax, with EOLs but no header or EOD",
|
72
70
|
:faxg32d => "Group 3 2-D fax, with EOLs but no header or EOD",
|
@@ -76,7 +74,7 @@ module RGhost::Constants
|
|
76
74
|
:tiffg32d => "TIFF Group 3 2-D fax",
|
77
75
|
:tiffg4 => "TIFF Group 4 fax",
|
78
76
|
#-- High-level (vector) file formats",
|
79
|
-
:
|
77
|
+
:eps2write => "EPS output (like PostScript Distillery)",
|
80
78
|
:pdfwrite => "PDF output (like Adobe Acrobat Distiller)",
|
81
79
|
:pswrite => "PostScript output (like PostScript Distillery)",
|
82
80
|
:pxlmono => "Black-and-white PCL XL",
|
@@ -132,11 +130,11 @@ module RGhost::Constants
|
|
132
130
|
:tiff24nc => "TIFF 24-bit RGB, no compression (NeXT standard format)",
|
133
131
|
:tifflzw => "TIFF LZW (tag = 5) (monochrome)",
|
134
132
|
:tiffpack => "TIFF PackBits (tag = 32773) (monochrome)"
|
135
|
-
|
136
|
-
|
133
|
+
|
134
|
+
|
137
135
|
]
|
138
136
|
DEVICES_ALIAS={
|
139
|
-
:eps => :
|
137
|
+
:eps => :eps2write,
|
140
138
|
:pdf => :pdfwrite,
|
141
139
|
:ps => :ps2write,
|
142
140
|
:pcl => :pxlmono,
|
@@ -147,15 +145,15 @@ module RGhost::Constants
|
|
147
145
|
}
|
148
146
|
#Load device by alias
|
149
147
|
def device_for(dev)
|
150
|
-
|
151
|
-
|
148
|
+
|
149
|
+
|
152
150
|
return DEVICES_ALIAS[dev] if DEVICES_ALIAS.key? dev
|
153
151
|
return dev if STANDARD.key? dev
|
154
152
|
raise "Undefined device: #{dev}"
|
155
153
|
end
|
156
|
-
|
154
|
+
|
157
155
|
end
|
158
|
-
|
156
|
+
|
159
157
|
module Fonts
|
160
158
|
#Standard Encodings
|
161
159
|
ENCODINGS=['ISOLatin1Encoding', 'StandardEncoding ']
|
@@ -261,7 +259,7 @@ module RGhost::Constants
|
|
261
259
|
'ZapfDingbats' => "-itc-zapfdingbats-medium-r-normal--",
|
262
260
|
'Symbol' => "--symbol-medium-r-normal--"
|
263
261
|
}
|
264
|
-
|
262
|
+
|
265
263
|
end
|
266
264
|
#Color map
|
267
265
|
module Colors
|
@@ -564,7 +562,7 @@ module RGhost::Constants
|
|
564
562
|
:Yellow => [0.0,0.0,1.0,0.0],
|
565
563
|
:YellowGreen => [0.248780487804878,0.0,0.75609756097561,0.196078431372549]
|
566
564
|
]
|
567
|
-
|
565
|
+
|
568
566
|
end
|
569
567
|
#Standard papers
|
570
568
|
module Papers
|
@@ -619,8 +617,8 @@ module RGhost::Constants
|
|
619
617
|
:flse => [612,936],
|
620
618
|
:halfletter => [396,612]
|
621
619
|
}
|
622
|
-
|
620
|
+
|
623
621
|
end
|
624
622
|
end
|
625
623
|
|
626
|
-
|
624
|
+
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shairon Toledo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-11-07 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
|