rghost 0.8.8 → 0.8.9

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.
data/lib/rghost/frame.rb CHANGED
@@ -38,7 +38,8 @@ class RGhost::Frame < RGhost::PsObject
38
38
  :height => 3.5,
39
39
  :corners => 1,
40
40
  :content => RGhost::ShapeContent::DEFAULT_OPTIONS,
41
- :border => RGhost::Border::DEFAULT_OPTIONS
41
+ :border => RGhost::Border::DEFAULT_OPTIONS,
42
+ :stroke => true
42
43
 
43
44
 
44
45
  }
@@ -61,16 +62,17 @@ class RGhost::Frame < RGhost::PsObject
61
62
  border=RGhost::Border.new(@options[:border]) if @options[:border]
62
63
 
63
64
  params=%Q{
64
- /rcorners_params{
65
- /:x #{x} def /:y #{y} def
65
+ /rcorners_params{
66
+ /:x #{x} def /:y #{y} def
66
67
  /:w #{w} def /:h #{h} def
67
68
  /:r #{@options[:corners]} def
68
69
  /:s 1 def
70
+ /:stk {#{ "stroke" if @options[:stroke]} }def
69
71
  /:inside{
70
- #{inside.ps if inside }
72
+ #{inside.ps if inside }
71
73
  } def
72
74
  /:outside{
73
- #{border.ps if border}
75
+ #{border.ps if border}
74
76
  }def
75
77
  } def
76
78
  }
@@ -11,6 +11,6 @@ gsave
11
11
  %gsave
12
12
  :inside
13
13
  %grestore
14
- stroke
14
+ :stk
15
15
  grestore
16
16
  } def
@@ -84,7 +84,7 @@ module RGhost::Config
84
84
 
85
85
  def self.config_platform #:nodoc:
86
86
  const= 'PLATFORM'
87
- const = "RUBY_"+const if RUBY_VERSION =~ /^1.9/
87
+ const = "RUBY_"+const if RUBY_VERSION =~ /^1.[89]/
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"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rghost
3
3
  version: !ruby/object:Gem::Version
4
- hash: 47
4
+ hash: 45
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 8
10
- version: 0.8.8
9
+ - 9
10
+ version: 0.8.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Shairon Toledo
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-02-27 00:00:00 Z
18
+ date: 2013-03-13 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  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.