Permalink
Switch branches/tags
Nothing to show
Commits on Apr 18, 2012
Commits on Oct 15, 2011
  1. Merge pull request #14 from meltedice/fix-output-filename-for-multipage

    shairontoledo committed Oct 15, 2011
    Fixed output filename for multipage that including more than one ".".
Commits on Aug 5, 2011
  1. Fixed output filename for multipage that including more than one ".".

    meltedice committed Aug 5, 2011
    When invoke RGhost::Convert#to with :filename including multiple dots like this: "sample.1.2.3.jpg",
    rghost generates like this output filename "sample_%04d.1_%04d.2_%04d.3_%04d.jpg".
    Then failed to convert.
    
    So fixed following line in lib/rghost/ruby_ghost_engine.rb:
    -     file_out.gsub!(/\./,"_%04d.") if multipage
    +     file_out.gsub!(/^(.*)\./,'\1_%04d.') if multipage
    
    A minimum reproducible case is:
    
    # % gs --version
    # => 8.71
    
    require 'rghost'
    rg = RGhost::Convert.new("../sample.1.2.3.pdf")
    jpegs = rg.to(:jpeg, :multipage => true, :filename => "../sample.1.2.3.jpg", :debug => true)
    # => GPL Ghostscript 9.02: Unrecoverable error, exit code 1
    # => /opt/local/bin/gs  -dNOPAUSE -dBATCH -dQUIET -dNOPAGEPROMPT -I/path/to/rghost/lib/rghost/ps -I -sDEVICE=jpeg -sstdout=../sample.1.2.3.jpg.rgerr -sOutputFile=_%04d._%04d./sample_%04d.1_%04d.2_%04d.3_%04d.jpg ../sample.1.2.3.pdf
Commits on Jun 9, 2011
  1. Merge pull request #13 from cncardoso/master

    shairontoledo committed Jun 9, 2011
    Readme
Commits on Jun 7, 2011
  1. Merge pull request #12 from cncardoso/master

    shairontoledo committed Jun 7, 2011
    Option to set an external_encoding for Ruby 1.9
Commits on May 17, 2011
  1. added some documentation

    cncardoso committed May 17, 2011
  2. Adding external_encoding configuration. Resolve some encoding issues …

    cncardoso committed May 17, 2011
    …with Ruby 1.9 like UndefinedConversionError ... from ASCII-8BIT to UTF-8
Commits on Feb 6, 2011
Commits on Jan 20, 2011
  1. Chnages for gem specs

    shairontoledo committed Jan 20, 2011
Commits on Jan 19, 2011
  1. Notei que a gemspec não continha a lista de arquivos da gem. Em funçã…

    viniciusteles committed Jan 19, 2011
    …o disso, ao menos no meu ambiente, o bundler não estava conseguindo usar o rghost tal como se encontra em sua versão mais recente, no HEAD.
    
    Alterei o rghost.gemspec fazendo com que passasse a ter toda a lista de arquivos e agora o bundler consegue utilizá-lo corretamente.
Commits on Dec 21, 2010
  1. fixing circle method typo

    dan-fynanz committed Dec 21, 2010
Commits on Dec 2, 2010
Commits on Jul 31, 2009
  1. Fixed platform issue

    shairontoledo committed Jul 31, 2009
Commits on Jul 24, 2009
Commits on Jun 6, 2009
Commits on May 30, 2009
  1. No commit message

    shairontoledo committed May 30, 2009
  2. No commit message

    shairontoledo committed May 30, 2009
  3. No commit message

    shairontoledo committed May 30, 2009
  4. new file loader

    shairontoledo committed May 30, 2009
Commits on May 18, 2009
Commits on Apr 20, 2009
Commits on Apr 14, 2009
  1. Ruby 1.9 compatible case-when statements

    David Palm committed Apr 14, 2009
Commits on Jan 14, 2009
Commits on Jan 8, 2009