Skip to content

Commit

Permalink
suppress pdf to text logs (#15)
Browse files Browse the repository at this point in the history
* Update Ruby version to 3.3.4 and suppress pdftotext stderr output
  • Loading branch information
weilandia authored Jul 12, 2024
1 parent 79847f9 commit b0c1599
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
name: build
on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- ruby: 3.2
- ruby: 3.3
gemfile: Gemfile
- ruby: 3.1
- ruby: 3.2
gemfile: Gemfile
runs-on: ubuntu-latest
env:
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.2
3.3.4
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
simple_text_extract (3.0.6)
simple_text_extract (3.0.7)
roo (~> 2.10.0)
rubyzip (~> 2.3.2)
spreadsheet (~> 1.3.0)
Expand Down Expand Up @@ -77,4 +77,4 @@ DEPENDENCIES
simple_text_extract!

BUNDLED WITH
2.4.10
2.5.11
2 changes: 1 addition & 1 deletion lib/simple_text_extract/extract.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def plain_extract
def pdf_extract
return nil if SimpleTextExtract.missing_dependency?("pdftotext")

`pdftotext #{Shellwords.escape(file.path)} -`
`pdftotext #{Shellwords.escape(file.path)} - 2>/dev/null`
end

def xlsx_extract
Expand Down
2 changes: 1 addition & 1 deletion lib/simple_text_extract/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module SimpleTextExtract
VERSION = "3.0.6"
VERSION = "3.0.7"
end

0 comments on commit b0c1599

Please sign in to comment.