pdftk-binary 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: bec022015e6e70f4e1105c596b2567c074d2b229
4
+ data.tar.gz: 8fc67990fbaad2835eaac21e0d4e243f19f6c7ac
5
+ SHA512:
6
+ metadata.gz: 7a8afe4943c23ea5181527cd13977824462c9f32810961cc85c03cd02279e428b80b06f89f10d0a7b865b5f247c1fb9149c80c6dcf9224f1c21385c3904668cd
7
+ data.tar.gz: 7a33c88a527aae2ef392d69337230f6810cf76c1720c314c8fbe07dc3a448afc83fc91d5ffb6a92bb0a15c3454d27fc67ac14410c5247fe56d53eee945aa963d
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ arch = case RUBY_PLATFORM
4
+ when /64.*linux/
5
+ 'linux-amd64'
6
+ when /linux/
7
+ 'linux-x86'
8
+ when /darwin/
9
+ 'darwin-x86'
10
+ else
11
+ raise "Invalid platform. Must be running linux or intel-based Mac OS."
12
+ end
13
+
14
+ args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
15
+ cmd = File.expand_path "#{File.dirname(__FILE__)}/../libexec/pdftk-#{arch}"
16
+
17
+ exec "#{cmd} #{args.join(' ')}"
File without changes
Binary file
Binary file
Binary file
metadata ADDED
@@ -0,0 +1,49 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pdftk-binary
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Eduardo Figarola
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-12-04 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: pdftk binary gem
14
+ email: eduardofigarola@gmail.com
15
+ executables:
16
+ - pdftk
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - bin/pdftk
21
+ - lib/pdftk-binary.rb
22
+ - libexec/pdftk-darwin-x86
23
+ - libexec/pdftk-linux-amd64
24
+ - libexec/pdftk-linux-x86
25
+ homepage: https://github.com/efigarolam/pdftk-binary
26
+ licenses:
27
+ - GPL
28
+ metadata: {}
29
+ post_install_message:
30
+ rdoc_options: []
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: 1.8.7
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 1.3.6
43
+ requirements: []
44
+ rubyforge_project:
45
+ rubygems_version: 2.2.2
46
+ signing_key:
47
+ specification_version: 4
48
+ summary: Provides binaries for PDFTK project in an easily accessible package.
49
+ test_files: []