rghost 0.8.7.1 → 0.8.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. data/lib/rghost/callback.rb +4 -4
  2. data/lib/rghost/circle.rb +2 -2
  3. data/lib/rghost/color.rb +3 -3
  4. data/lib/rghost/constants.rb +1 -1
  5. data/lib/rghost/cursor.rb +3 -3
  6. data/lib/rghost/document.rb +8 -8
  7. data/lib/rghost/dsc_entry.rb +1 -1
  8. data/lib/rghost/dynamic_document_callback.rb +1 -1
  9. data/lib/rghost/eps.rb +1 -1
  10. data/lib/rghost/font.rb +3 -3
  11. data/lib/rghost/font_map.rb +3 -3
  12. data/lib/rghost/function.rb +1 -1
  13. data/lib/rghost/gif.rb +7 -7
  14. data/lib/rghost/graphic.rb +4 -4
  15. data/lib/rghost/grid/callback_facade.rb +18 -18
  16. data/lib/rghost/grid/dynamic_callback.rb +2 -2
  17. data/lib/rghost/grid/field_format.rb +2 -2
  18. data/lib/rghost/grid/grid.rb +10 -10
  19. data/lib/rghost/grid/header.rb +6 -6
  20. data/lib/rghost/grid/rails_grid.rb +1 -1
  21. data/lib/rghost/grid/static_callback.rb +2 -2
  22. data/lib/rghost/grid/style/style.rb +3 -3
  23. data/lib/rghost/horizontal_line.rb +2 -2
  24. data/lib/rghost/image.rb +1 -1
  25. data/lib/rghost/jpeg.rb +5 -5
  26. data/lib/rghost/line.rb +2 -2
  27. data/lib/rghost/line_width.rb +1 -1
  28. data/lib/rghost/load.rb +1 -1
  29. data/lib/rghost/newpath.rb +4 -4
  30. data/lib/rghost/paper.rb +5 -5
  31. data/lib/rghost/point.rb +2 -2
  32. data/lib/rghost/point_with_command.rb +2 -2
  33. data/lib/rghost/ruby_ghost_config.rb +8 -8
  34. data/lib/rghost/ruby_ghost_engine.rb +4 -4
  35. data/lib/rghost/ruby_ghost_version.rb +2 -2
  36. data/lib/rghost/scale.rb +1 -1
  37. data/lib/rghost/show.rb +2 -2
  38. data/lib/rghost/static_document_callback.rb +2 -2
  39. data/lib/rghost/text.rb +4 -4
  40. data/lib/rghost/text_in.rb +3 -3
  41. data/lib/rghost/text_link_in.rb +3 -3
  42. data/lib/rghost/textarea.rb +5 -5
  43. data/lib/rghost/units.rb +2 -2
  44. data/lib/rghost/variable.rb +1 -1
  45. data/lib/rghost/vertical_line.rb +3 -3
  46. metadata +2 -2
@@ -1,5 +1,5 @@
1
- require "ps_object"
2
- require "ruby_to_ps"
1
+ require "rghost/ps_object"
2
+ require "rghost/ruby_to_ps"
3
3
 
4
4
  # Callbacks are custom code blocks defined inside of Document.
5
5
  # All callbacks received implicitly a instance of PsFacade can be creates any PsObject.
@@ -10,12 +10,12 @@ require "ruby_to_ps"
10
10
  # Otherwise Dynamic callbacks there is control of scope using conditional :only or :except, this is only difference in relation the static callbacks.
11
11
  # The parameters of a Dynamic callbak must be one integer or one array of integer. Example:
12
12
  # For all pages except page 3
13
- # doc.before_page_create :except => 3 do
13
+ # doc.before_page_create :except => 3 do |b|
14
14
  # # do something
15
15
  # end
16
16
  #
17
17
  # For just 2 and 4 pages
18
- # doc.before_page_create :only => [2,4] do
18
+ # doc.before_page_create :only => [2,4] do |b|
19
19
  # # do something
20
20
  # end
21
21
  #
@@ -1,5 +1,5 @@
1
- require "ps_object"
2
- require "units"
1
+ require "rghost/ps_object"
2
+ require "rghost/units"
3
3
  #Draw a circle to the current path(or current row by default).
4
4
  #===Options
5
5
  #
@@ -1,6 +1,6 @@
1
- require "ps_object"
2
- require "constants"
3
- require "ruby_to_ps" #array_to_stack
1
+ require "rghost/ps_object"
2
+ require "rghost/constants"
3
+ require "rghost/ruby_to_ps" #array_to_stack
4
4
 
5
5
  #Creates color for postscript components
6
6
  class RGhost::Color < RGhost::PsObject
@@ -1,4 +1,4 @@
1
- require "helpers"
1
+ require "rghost/helpers"
2
2
 
3
3
  module RGhost::Constants
4
4
  module HashKeyMethod #:nodoc:
@@ -1,6 +1,6 @@
1
- require "point"
2
- require 'ps_object'
3
- require 'point_with_command'
1
+ require "rghost/point"
2
+ require 'rghost/ps_object'
3
+ require 'rghost/point_with_command'
4
4
  #It resposible to cursor manipulate. Use it to position objects on the page.
5
5
  class RGhost::Cursor < RGhost::PsObject
6
6
 
@@ -26,12 +26,12 @@
26
26
  #WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27
27
  #FROM, OUT OF OR IN CONNECTION WITH
28
28
 
29
- require 'ps_object'
30
- require 'ps_facade'
31
- require 'document_callback_facade'
32
- require 'virtual_pages'
33
- require 'variable'
34
- require 'pdf_security'
29
+ require 'rghost/ps_object'
30
+ require 'rghost/ps_facade'
31
+ require 'rghost/document_callback_facade'
32
+ require 'rghost/virtual_pages'
33
+ require 'rghost/variable'
34
+ require 'rghost/pdf_security'
35
35
  #The Document class child of PsFacade is used to join postscript objects to generate output file.
36
36
 
37
37
  class RGhost::Document < RGhost::PsFacade
@@ -66,8 +66,8 @@ class RGhost::Document < RGhost::PsFacade
66
66
  #* <tt>:count_pages</tt> - Defines postscript internal variable to display with class TextIn. Example:
67
67
  #
68
68
  # doc=Document.new :count_pages => 10
69
- # doc.before_page_create :except => 1 do
70
- # text_in :x => 15, :y => 5, :write => "Page %current_page% of %count_pages%"
69
+ # doc.before_page_create :except => 1 do |b|
70
+ # b.text_in :x => 15, :y => 5, :write => "Page %current_page% of %count_pages%"
71
71
  # end
72
72
  #
73
73
  #The value above %count_pages% will be evaluated inside of document for all pages except page one.
@@ -1,4 +1,4 @@
1
- require "ps_object"
1
+ require "rghost/ps_object"
2
2
  #Specifiesnew DSC (Document Structuring Conventions)
3
3
  class RGhost::DSCEntry < RGhost::PsObject
4
4
  #===Example
@@ -1,4 +1,4 @@
1
- require "callback"
1
+ require "rghost/callback"
2
2
 
3
3
  class RGhost::DynamicDocumentCallback < RGhost::Callback #:nodoc:
4
4
  ACCEPT=[:before_page_create,
@@ -1,4 +1,4 @@
1
- require "ps_object"
1
+ require "rghost/ps_object"
2
2
  #Load new EPS file.
3
3
  class RGhost::Eps < RGhost::PsObject
4
4
  #===Examples
@@ -1,6 +1,6 @@
1
- require "ps_object"
2
- require "constants"
3
- require "helpers"
1
+ require "rghost/ps_object"
2
+ require "rghost/constants"
3
+ require "rghost/helpers"
4
4
 
5
5
 
6
6
  class RGhost::Font < RGhost::PsObject #:nodoc:
@@ -1,8 +1,8 @@
1
1
  #NetDeseigners <www.ndesigners.com.br>
2
2
  #Shairon Toledo <shairon.toledo@gmail.com>
3
- require 'ps_object'
4
- require 'font'
5
- require 'function'
3
+ require 'rghost/ps_object'
4
+ require 'rghost/font'
5
+ require 'rghost/function'
6
6
 
7
7
 
8
8
  class RGhost::FontMap < RGhost::PsObject #:nodoc:
@@ -1,4 +1,4 @@
1
- require "ps_object"
1
+ require "rghost/ps_object"
2
2
 
3
3
 
4
4
  #Creates postscript internal function. Example
@@ -1,10 +1,10 @@
1
- require "ps_object"
2
- require "graphic"
3
- require "cursor"
4
- require "variable"
5
- require "image"
6
- require "function"
7
- require "scale"
1
+ require "rghost/ps_object"
2
+ require "rghost/graphic"
3
+ require "rghost/cursor"
4
+ require "rghost/variable"
5
+ require "rghost/image"
6
+ require "rghost/function"
7
+ require "rghost/scale"
8
8
  #Loads GIF image from file
9
9
  #===Examples
10
10
  # doc=Document.new
@@ -1,7 +1,7 @@
1
- require "ps_object"
2
- require "cursor"
3
- require "point"
4
- require "line_width"
1
+ require "rghost/ps_object"
2
+ require "rghost/cursor"
3
+ require "rghost/point"
4
+ require "rghost/line_width"
5
5
  #Creates a new graphic state between gsave and grestore postscript primitives. Example
6
6
  # doc=Document.new
7
7
  # doc.graphic do
@@ -9,55 +9,55 @@ module RGhost::Grid
9
9
  # values=('A'..'E').to_a.map{|v| [v,"Name #{v}", Time.now]}
10
10
  #
11
11
  # even_row:
12
- # grid.even_row do
13
- # background_row(:size => grid.width)
12
+ # grid.even_row do |e|
13
+ # e.background_row(:size => grid.width)
14
14
  # end
15
15
  # link:images/grid01.png
16
16
  #
17
17
  # Now before_row to create a top and bottom line:
18
- # grid.before_row do
19
- # horizontal_line(:top, :size => grid.width )
20
- # horizontal_line(:bottom, :size => grid.width)
18
+ # grid.before_row do |b|
19
+ # b.horizontal_line(:top, :size => grid.width )
20
+ # b.horizontal_line(:bottom, :size => grid.width)
21
21
  # end
22
22
  #
23
23
  # link:images/grid02.png
24
24
  #
25
25
  # before_column:
26
- # grid.before_column do
27
- # vertical_line_row
26
+ # grid.before_column do |v|
27
+ # v.vertical_line_row
28
28
  # end
29
29
  #
30
30
  # link:images/grid03.png
31
31
  #
32
32
  # after_column:
33
- # grid.after_column { vertical_line_row }
33
+ # grid.after_column {|c| c.vertical_line_row }
34
34
  #
35
35
  #
36
36
  # link:images/grid04.png
37
37
  #
38
38
  # Moving to the header
39
- # grid.header.before_create do
40
- # horizontal_line(:top, :size => grid.width)
39
+ # grid.header.before_create do |b|
40
+ # b.horizontal_line(:top, :size => grid.width)
41
41
  # end
42
42
  #
43
43
  # link:images/grid05.png
44
44
  #
45
45
  # Finishing the grid lines:
46
- # grid.header.before_column do
47
- # vertical_line_row
46
+ # grid.header.before_column do |b|
47
+ # b.vertical_line_row
48
48
  # end
49
49
  #
50
50
  #
51
- # grid.header.after_column do
52
- # vertical_line_row
51
+ # grid.header.after_column do |b|
52
+ # b.vertical_line_row
53
53
  # end
54
54
  #
55
55
  # link:images/grid06.png
56
56
  #
57
57
  # Now a adding a bold font to the header
58
- # grid.header.before_create do
59
- # horizontal_line(:top, :size => grid.width)
60
- # use_tag :bold
58
+ # grid.header.before_create do |b|
59
+ # b.horizontal_line(:top, :size => grid.width)
60
+ # b.use_tag :bold
61
61
  # end
62
62
  #
63
63
  # link:images/grid07.png
@@ -66,7 +66,7 @@ module RGhost::Grid
66
66
  # face. We need to use a header callback to reset the font.
67
67
  #
68
68
  # grid.header.after_create do
69
- # use_tag :normal
69
+ # b.use_tag :normal
70
70
  # end
71
71
  #
72
72
  # link:images/grid08.png
@@ -1,5 +1,5 @@
1
- require "callback"
2
- #Callbacks Din�micos a n�vel de Grid
1
+ require "rghost/callback"
2
+ #Dynamic Callbacks
3
3
  class RGhost::Grid::DynamicCallback < RGhost::Callback
4
4
  ACCEPT=[:before_row, :after_row, :even_row,
5
5
  :odd_row, :before_column, :after_column, :even_column, :odd_column]
@@ -1,8 +1,8 @@
1
1
  $LOAD_PATH << File.dirname(__FILE__)+File::SEPARATOR+"../"
2
2
 
3
- require 'ps_object'
3
+ require 'rghost/ps_object'
4
4
 
5
- require 'ruby_to_ps'
5
+ require 'rghost/ruby_to_ps'
6
6
 
7
7
  module RGhost::Grid
8
8
  module FieldFormat
@@ -1,14 +1,14 @@
1
1
  module RGhost::Grid
2
- require 'grid/header'
3
- require 'grid/callback_facade'
4
- require 'grid/style/style'
5
- require 'grid/base_grid'
6
- require 'grid/rails_grid'
7
- require 'grid/matrix'
8
- require 'grid/csv_grid'
9
- require 'grid/dynamic_callback'
10
- require 'grid/static_callback'
11
- require 'grid/field_format'
2
+ require 'rghost/grid/header'
3
+ require 'rghost/grid/callback_facade'
4
+ require 'rghost/grid/style/style'
5
+ require 'rghost/grid/base_grid'
6
+ require 'rghost/grid/rails_grid'
7
+ require 'rghost/grid/matrix'
8
+ require 'rghost/grid/csv_grid'
9
+ require 'rghost/grid/dynamic_callback'
10
+ require 'rghost/grid/static_callback'
11
+ require 'rghost/grid/field_format'
12
12
  end
13
13
 
14
14
 
@@ -1,10 +1,10 @@
1
1
  $LOAD_PATH << File.dirname(__FILE__)+File::SEPARATOR+"../"
2
- require "ps_object"
3
- require "ruby_to_ps"
4
- require "variable"
5
- require "units"
6
- require "function"
7
- require "callback"
2
+ require "rghost/ps_object"
3
+ require "rghost/ruby_to_ps"
4
+ require "rghost/variable"
5
+ require "rghost/units"
6
+ require "rghost/function"
7
+ require "rghost/callback"
8
8
 
9
9
  # Grid's Header.
10
10
  # You can get a header instance using:
@@ -1,4 +1,4 @@
1
- require 'ps_object'
1
+ require 'rghost/ps_object'
2
2
  #
3
3
  # Grid::Rails mapps grid columns to ActiveRecord attributes. For
4
4
  # example, let's take a Calls class to represent telephone calls.
@@ -1,5 +1,5 @@
1
- require "ps_object"
2
- require "function"
1
+ require "rghost/ps_object"
2
+ require "rghost/function"
3
3
 
4
4
  class RGhost::Grid::StaticCallback < RGhost::Function
5
5
  ACCEPT=[:before_table_create, :after_table_create]
@@ -1,8 +1,8 @@
1
1
 
2
2
  module RGhost::Grid
3
3
  module Style
4
- require 'grid/style/border_lines'
5
- require 'grid/style/old_forms'
6
- require 'grid/style/bottom_lines'
4
+ require 'rghost/grid/style/border_lines'
5
+ require 'rghost/grid/style/old_forms'
6
+ require 'rghost/grid/style/bottom_lines'
7
7
  end
8
8
  end
@@ -1,5 +1,5 @@
1
- require "ps_object"
2
- require "units"
1
+ require "rghost/ps_object"
2
+ require "rghost/units"
3
3
  #Creates horizontal line on the current row.
4
4
  class RGhost::HorizontalLine < RGhost::PsObject
5
5
 
@@ -1,4 +1,4 @@
1
- require "ps_object"
1
+ require "rghost/ps_object"
2
2
  #Super class of GIF and JPEG.
3
3
  class RGhost::Image < RGhost::PsObject
4
4
  DEFAULT_OPTIONS={:x=> :limit_left, :y=> 1, :zoom => 100, :rotate => 0}
@@ -1,8 +1,8 @@
1
- require "ps_object"
2
- require "graphic"
3
- require "cursor"
4
- require "variable"
5
- require "image"
1
+ require "rghost/ps_object"
2
+ require "rghost/graphic"
3
+ require "rghost/cursor"
4
+ require "rghost/variable"
5
+ require "rghost/image"
6
6
  #Loads JPEG image from file
7
7
  #===Examples
8
8
  # doc=Document.new
@@ -1,5 +1,5 @@
1
- require "ps_object"
2
- require "point"
1
+ require "rghost/ps_object"
2
+ require "rghost/point"
3
3
 
4
4
  #Creates straight lines
5
5
  class RGhost::Line < RGhost::PsObject
@@ -1,4 +1,4 @@
1
- require "ps_object"
1
+ require "rghost/ps_object"
2
2
  #Sets the line width parameter in the graphics state.
3
3
  class RGhost::LineWidth < RGhost::PsObject
4
4
 
@@ -1,4 +1,4 @@
1
- require "ps_object"
1
+ require "rghost/ps_object"
2
2
  module RGhost::Load
3
3
  #Loads library
4
4
  def self.library(name, type=:ps)
@@ -1,7 +1,7 @@
1
- require "ps_object"
2
- require "cursor"
3
- require "point"
4
- require "line_width"
1
+ require "rghost/ps_object"
2
+ require "rghost/cursor"
3
+ require "rghost/point"
4
+ require "rghost/line_width"
5
5
 
6
6
  #Initializes the current path to be empty, causing the current point to become undefined.
7
7
  class RGhost::NewPath < RGhost::PsObject
@@ -1,8 +1,8 @@
1
- require "ps_object"
2
- require "units"
3
- require "load"
4
- require "constants"
5
- require "ruby_to_ps"
1
+ require "rghost/ps_object"
2
+ require "rghost/units"
3
+ require "rghost/load"
4
+ require "rghost/constants"
5
+ require "rghost/ruby_to_ps"
6
6
  #Paper is the area where the Postscript elements/objects are drawn.
7
7
  #The margin is the document's non-printable area (both by the cursors and by the page's internal controllers).
8
8
  #The :area_x and :area_y are the printable section of the paper.
@@ -1,5 +1,5 @@
1
- require "ps_object"
2
- require "units"
1
+ require "rghost/ps_object"
2
+ require "rghost/units"
3
3
 
4
4
  #Creates one point using default unit defined in RGhost::Config::GS[:unit]
5
5
  class RGhost::Point < RGhost::PsObject
@@ -1,5 +1,5 @@
1
- require "ps_object"
2
- require "units"
1
+ require "rghost/ps_object"
2
+ require "rghost/units"
3
3
 
4
4
  class RGhost::PointWithCommand #:nodoc:
5
5
  DEFAULT_POINT={:x => :limit_left , :y => :current_row}
@@ -1,6 +1,6 @@
1
- require "ps_object"
1
+ require "rghost/ps_object"
2
2
  require 'iconv'
3
- require 'font_map'
3
+ require 'rghost/font_map'
4
4
 
5
5
  #Rghost setup with Ghostscript.
6
6
  #Ghostscript runs on a variety of platforms, this is why we recommend the non coupled install for non *nix environments.
@@ -95,8 +95,8 @@ module RGhost::Config
95
95
  def self.is_ok?
96
96
  d=RGhost::Document.new :margin_left => 2.3, :margin_bottom => 2.3
97
97
  d.benchmark(:start)
98
- d.before_page_create do
99
- image RGhost::Config::DEFAULT_PORTRAIT_TEMPLATE
98
+ d.before_page_create do |b|
99
+ b.image RGhost::Config::DEFAULT_PORTRAIT_TEMPLATE
100
100
  end
101
101
  d.define_tags do
102
102
  new :bigger, :size => 150, :color => "#AAFF33"
@@ -126,8 +126,8 @@ module RGhost::Config
126
126
  #
127
127
  def self.encode_test(value)
128
128
  d=RGhost::Document.new :paper => :A4, :margin_left => 2 #, :landscape => true
129
- d.before_page_create do
130
- image RGhost::Config::DEFAULT_PORTRAIT_TEMPLATE
129
+ d.before_page_create do |b|
130
+ b.image RGhost::Config::DEFAULT_PORTRAIT_TEMPLATE
131
131
  end
132
132
  exp=File.join(File.dirname(__FILE__),"ps","*.enc")
133
133
  d.show "String (Using Helvetica Font)", :with => :b
@@ -160,8 +160,8 @@ module RGhost::Config
160
160
  def self.environment_fonts(text="The quick brown fox jumps over the lazy dog")
161
161
 
162
162
  d=RGhost::Document.new :margin_left => 2.3, :margin_bottom => 2.3
163
- d.before_page_create do
164
- image RGhost::Config::DEFAULT_PORTRAIT_TEMPLATE
163
+ d.before_page_create do |b|
164
+ b.image RGhost::Config::DEFAULT_PORTRAIT_TEMPLATE
165
165
  end
166
166
  d.show "Search Path"
167
167
  d.horizontal_line :bottom
@@ -1,5 +1,5 @@
1
- require 'ruby_ghost_config'
2
- require "constants"
1
+ require 'rghost/ruby_ghost_config'
2
+ require "rghost/constants"
3
3
 
4
4
  class RGhost::Engine
5
5
  attr_reader :errors, :error, :output
@@ -73,11 +73,11 @@ class RGhost::Engine
73
73
  #puts params.inspect
74
74
 
75
75
  if RGhost::Config::GS[:mode] == :gslib
76
- require "rgengine"
76
+ require "rghost/rgengine"
77
77
  gs=RGEngine.new
78
78
  @error=!gs.render(params,params.size)
79
79
  else
80
- require 'gs_alone'
80
+ require 'rghost/gs_alone'
81
81
  gs=RGhost::GSAlone.new(params,@options[:debug])
82
82
  @error=!gs.run
83
83
  end
@@ -1,8 +1,8 @@
1
1
  module RGhost::VERSION #:nodoc:
2
2
  MAJOR = 0
3
3
  MINOR = 8
4
- TINY = 6
5
- DATE=1225822346
4
+ TINY = 7
5
+ DATE=1244286414
6
6
  STRING = [MAJOR, MINOR, TINY].join('.')
7
7
 
8
8
  end
@@ -1,4 +1,4 @@
1
- require "ps_object"
1
+ require "rghost/ps_object"
2
2
  #Scales objects
3
3
 
4
4
  class RGhost::Scale < RGhost::PsObject
@@ -1,5 +1,5 @@
1
- require "ps_object"
2
- require "ruby_to_ps" #to_string
1
+ require "rghost/ps_object"
2
+ require "rghost/ruby_to_ps" #to_string
3
3
 
4
4
  #Writes a text on the current row or point with align.
5
5
  class RGhost::Show < RGhost::PsObject
@@ -1,5 +1,5 @@
1
- require "ps_object"
2
- require 'function'
1
+ require "rghost/ps_object"
2
+ require 'rghost/function'
3
3
 
4
4
  class RGhost::StaticDocumentCallback < RGhost::Function #:nodoc:
5
5
  ACCEPT=[:before_document_create,
@@ -1,7 +1,7 @@
1
- require "ps_object"
2
- require "units"
3
- require "font"
4
- require "ruby_to_ps"
1
+ require "rghost/ps_object"
2
+ require "rghost/units"
3
+ require "rghost/font"
4
+ require "rghost/ruby_to_ps"
5
5
  #Wraps the text so as the it fits on the page(:area_x). Wrapping happens at whitespace characters without hyphenation.
6
6
  #Additionally you can make use of predefined tag and the special tag <br/> to break row. You can disable the parse with second parameter tag_parse=false.
7
7
  #===Examples
@@ -1,6 +1,6 @@
1
- require "ps_object"
2
- require "cursor"
3
- require "ruby_to_ps"
1
+ require "rghost/ps_object"
2
+ require "rghost/cursor"
3
+ require "rghost/ruby_to_ps"
4
4
  #TextIn is a helper to combine the cursor positioning and text output into one step.
5
5
  class RGhost::TextIn < RGhost::PsObject
6
6
  include RGhost::RubyToPs
@@ -1,6 +1,6 @@
1
- require "ps_object"
2
- require "cursor"
3
- require "ruby_to_ps"
1
+ require "rghost/ps_object"
2
+ require "rghost/cursor"
3
+ require "rghost/ruby_to_ps"
4
4
  #TextLinkIn is a helper to combine the cursor positioning and text with hyperlink output into one step as TextIn.
5
5
  #It works only PDF format
6
6
  class RGhost::TextLinkIn < RGhost::PsObject
@@ -1,8 +1,8 @@
1
- require "ps_object"
2
- require "units"
3
- require "font"
4
- require "ruby_to_ps"
5
- require 'parse_text'
1
+ require "rghost/ps_object"
2
+ require "rghost/units"
3
+ require "rghost/font"
4
+ require "rghost/ruby_to_ps"
5
+ require 'rghost/parse_text'
6
6
  #TextArea wraps the text so as the it fits in a box of a given width. Wrapping happens at whitespace characters without hyphenation.
7
7
  #Additionally you can make use of predefined tag and the special tag <br/> to break row.
8
8
  #The alignment can be left, right and centered.
@@ -1,5 +1,5 @@
1
- require "function"
2
- require "ps_object"
1
+ require "rghost/function"
2
+ require "rghost/ps_object"
3
3
  #The postscript default unit is the 1/72th inch. RGhost uses the centimeters (cm) as it's default, mainly for positioning coordinates and numeric object sizes (if the size is a String, it won't be parsed to the default unit). This setting can be changed setting the value of RGhost::Config::GS[:unit] before the document is created using any of the Units child classes.
4
4
  #===Example:
5
5
  #
@@ -1,4 +1,4 @@
1
- require "ps_object"
1
+ require "rghost/ps_object"
2
2
  #Creates Postscript variable
3
3
  class RGhost::Variable < RGhost::PsObject
4
4
 
@@ -1,6 +1,6 @@
1
- require "ps_object"
2
- require "units"
3
- require "load"
1
+ require "rghost/ps_object"
2
+ require "rghost/units"
3
+ require "rghost/load"
4
4
 
5
5
  #Creates vertical line starting from current row.
6
6
  class RGhost::VerticalLine < RGhost::PsObject
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rghost
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7.1
4
+ version: 0.8.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shairon Toledo
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-30 00:00:00 -04:00
12
+ date: 2009-06-06 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15