rghost 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/rghost/constants.rb +14 -16
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmNjNjcxYWM5NDA0OTkyNmVhMDIwYzdkMWE1OTlmOThhMGM4MzVlOA==
4
+ MmEwZTEzYmU1MzQxZmM0OTc0N2UxMzAwYWNjN2YyODgwZDVmOWE2Mw==
5
5
  data.tar.gz: !binary |-
6
- ZjAyMTgwMWY0NjM5YzgxOTVlYTAwYThhZDU5N2ViYWQxNTg5MzI5Yg==
6
+ YTdiYWZkOTBhMjRjMmE2YjU0MTQ5N2YxODllMDk0ZjlhOGVmNDJkYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- N2FhZmRkYzJhZWY5MmRlOGRiYzVkZWU0MjQxNjBlZjJjODM1ZjQ2ODkxNGQ3
10
- ZGVmNGFlNWE0YmY4NGY0MmU3YjRhNGM3YjE5YjhkNTA3ZjBlNDNlMmE0ZTQw
11
- ZDY0NWM0ZmI1ZTc1MjA2N2Q2MmU1ZDg3ODAxMDY5MzQ2NDEzMTE=
9
+ MWQyMTUxMWVlYmI3YjdmNDFmNjc3ZGVhNjBkMzUwYzNjM2MwMDQ1YzhiOTkz
10
+ OTFmOWZiZGVlMDU4N2Q5NjFiOTA2NWViMGQ4NDM4Zjk4ZTk5ZDA4YmYwYjNk
11
+ Y2JkNjBiOGUwYzc5MzY3ZTdkOTY2ZDRmODBhNmM2ZWIzODUxYzg=
12
12
  data.tar.gz: !binary |-
13
- OTI1MTRmNDRmMmU5NDg2NDk1OTE4MjA0MjYwODczNWVjYTViMjYzYTY4NmZj
14
- ZTJmMTM5ZTExYjJlN2U5MzE1MjA0N2QyMTUxZTI3YjJhMGU0MThjYzMwNjVj
15
- YTY3Y2NhNjZmZGExZWI5N2FiOGM4MTdkZTFkNTJjOGU2NmRiYjA=
13
+ NzY3YmNmMjkxODY4NTBmZGIyMzU2YjBkNTlhMzU4MGRiMWQzOTE0ZjcyZWFk
14
+ OGU2YmFiMWE5OGQ5ZjIyMzU3YjVlMzY5ODA3ZmZiZjZkZmY5NmY0ZGZlMTUx
15
+ MDFlMzE4MTUwOWY1Zjc0YzFjMDAzZGFkYWE5NjhhNTc2N2U5MzM=
@@ -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
- :epswrite => "EPS output (like PostScript Distillery)",
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 => :epswrite,
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.5
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: 2014-07-28 00:00:00.000000000 Z
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