pdftotext_binary 1.0.0

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.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/bin/pdftotext +16 -0
  3. data/bin/pdftotext_bin.gz +0 -0
  4. metadata +70 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 723cc06aeb3ba758dd94fb890b837e4e4a040d75a32a94b7531fcf59c276bd3d
4
+ data.tar.gz: 7340dc79f230c4cd56a50dad47fc1915f87661b124a35533b187375809a86769
5
+ SHA512:
6
+ metadata.gz: c0280a9f1a50aa253b2ac23c28e0ea468f038dac7d2664410af789dac2fed56661943e836290b205c4bb3db51de4b2f6a256cab7686929fda52c3bee0eedcc79
7
+ data.tar.gz: 4f0d47666581d69983f9256603ac17fbf18ca66c87b8c41a4d08b269f2f13f0655e8d5bc981c7a95401ff1744d18cb5fa6f763850caf48b461d1a508f8b60107
data/bin/pdftotext ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ require 'rbconfig'
3
+ require 'zlib'
4
+
5
+ binary = ENV['PDFTOTEXT_BIN']
6
+ if binary.nil? || binary == ''
7
+ if RbConfig::CONFIG['host_cpu'] != 'x86_64' || RbConfig::CONFIG['host_os'] !~ /linux/
8
+ raise "pdftotext_binary: unsupported platform #{RbConfig::CONFIG['host_os']}/#{RbConfig::CONFIG['host_cpu']}"
9
+ end
10
+
11
+ binary = "#{__FILE__}_bin"
12
+ unless File.exist?(binary)
13
+ File.open(binary, 'wb', 0o755) { |fp| Zlib::GzipReader.open("#{binary}.gz") { |gz| fp << gz.read } }
14
+ end
15
+ end
16
+ exec *$*.unshift(binary)
Binary file
metadata ADDED
@@ -0,0 +1,70 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pdftotext_binary
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Martin Tournoij
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: minitest
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '0'
19
+ type: :development
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
26
+ - !ruby/object:Gem::Dependency
27
+ name: rake
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ email: martin@arp242.net
41
+ executables:
42
+ - pdftotext
43
+ extensions: []
44
+ extra_rdoc_files: []
45
+ files:
46
+ - bin/pdftotext
47
+ - bin/pdftotext_bin.gz
48
+ homepage: https://github.com/olyticoIE/pdftotext_binary
49
+ licenses:
50
+ - GPL-2.0-or-later
51
+ metadata:
52
+ source_code_uri: https://github.com/olyticoIE/pdftotext_binary
53
+ rdoc_options: []
54
+ require_paths:
55
+ - "."
56
+ required_ruby_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 3.2.0
61
+ required_rubygems_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ requirements: []
67
+ rubygems_version: 4.0.20
68
+ specification_version: 4
69
+ summary: Statically linked pdftotext binary from Poppler
70
+ test_files: []