Skip to content

Commit

Permalink
Defining Darwin GS path as a BSD system
Browse files Browse the repository at this point in the history
  • Loading branch information
shairontoledo committed Oct 8, 2012
1 parent e7d206d commit 28ca4fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rghost/ruby_ghost_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ def self.config_platform #:nodoc:
const = "RUBY_"+const if RUBY_VERSION =~ /^1.9/
GS[:path]=case Object.const_get(const)
when /linux/ then "/usr/bin/gs"
when /darwin/ then "/usr/local/bin/gs"
when /freebsd|bsd/ then "/usr/local/bin/gs"
when /darwin|freebsd|bsd/ then "/usr/local/bin/gs"
when /mswin/ then "C:\\gs\\bin\\gswin32\\gswin32c.exe"
end
not_found_msg="\nGhostscript not found in your environment.\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"
Expand Down

0 comments on commit 28ca4fc

Please sign in to comment.