DocSpring / libreconv

Ruby gem that converts office documents to PDF using LibreOffice / OpenOffice.
MIT License
198 stars 63 forks source link

Gemfile in rubygems differs from the code in the repository #20

Closed barrerajl closed 5 years ago

barrerajl commented 6 years ago

The code in the rubygems seems to be older:

    def convert
      orig_stdout = $stdout.clone
      $stdout.reopen File.new('/dev/null', 'w')
      pid = Spoon.spawnp(@soffice_command, "--headless", "--convert-to", @convert_to, @source, "--outdir", @target_path)
      Process.waitpid(pid)
      $stdout.reopen orig_stdout
      target_tmp_file = "#{@target_path}/#{File.basename(@source, ".*")}.#{File.basename(@convert_to, ":*")}"
      FileUtils.cp target_tmp_file, @target
    end

The package released in the release section also has this same code.

ndbroadbent commented 5 years ago

Hi sorry about that, I need to release a new version of the gem.