wkhtmltopdf_binary_provider 0.12.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8d7c77cd66228389074120ef7834727e7c13fae8
4
+ data.tar.gz: f5f61e146640298eea90e496c6634c6275a5ebce
5
+ SHA512:
6
+ metadata.gz: 1906ac2920341c9e9a8a2aa996a72ad71a474b9cb7e1bee395cd00782b2982e3c87433675256ccf94eba55d395829d2d30e7733f8bd1cb9063c335c1ad21705f
7
+ data.tar.gz: 120c14cb935fa17df351c309fb00785a271bcee156a5ec6ce9e8ab463b0676ebbcfa9bef39eceb2f63c8c6560538550080fffe6c2d1d38f700c5ce2f3bb69853
@@ -0,0 +1,20 @@
1
+ *.sw?
2
+ *.gem
3
+ *.rbc
4
+ .bundle
5
+ .config
6
+ .DS_Store
7
+ .yardoc
8
+ Gemfile.lock
9
+ InstalledFiles
10
+ _yardoc
11
+ coverage
12
+ doc/
13
+ lib/bundler/man
14
+ pkg
15
+ rdoc
16
+ spec/reports
17
+ test/tmp
18
+ test/version_tmp
19
+ tmp
20
+ vendor/bundle
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in wkhtmltopdf_binary_provider_gem.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Shou Takenaka
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,30 @@
1
+ # wkhtmltopdf\_binary\_provider
2
+
3
+ This gem providers wkhtmltopdf binaries (for Linux and Mac OS X)
4
+ and dispatch script.
5
+
6
+ This version contains wkhtmltopdf 0.12.0 for Linux, and 0.12.1-fef236e for Mac OS X.
7
+
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ gem 'wkhtmltopdf_binary_provider'
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install wkhtmltopdf_binary_provider
22
+
23
+
24
+ ## Use with wicked\_pdf
25
+
26
+ You can use WkhtmltopdfBinaryProvider::Dispatcher.path helper method.
27
+
28
+ WickedPdf.config = {
29
+ exe_path: WkhtmltopdfBinaryProvider::Dispatcher.path
30
+ }
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ case RUBY_PLATFORM
4
+ when /64.*linux/
5
+ filename = "wkhtmltopdf_linux_amd64"
6
+ when /linux/
7
+ filename = "wkhtmltopdf_linux_i386"
8
+ when /darwin/
9
+ filename = "wkhtmltopdf_macosx"
10
+ else
11
+ raise "This platform isn't supported."
12
+ end
13
+
14
+ path = Pathname.new(__FILE__).dirname.join(filename).to_s
15
+ args = $*.map {|o| o.include?(" ") ? "'#{o}'" : o }
16
+
17
+ exec "#{path} #{args.join(' ')}"
Binary file
@@ -0,0 +1,5 @@
1
+ require "wkhtmltopdf_binary_provider/version"
2
+ require "wkhtmltopdf_binary_provider/dispatcher"
3
+
4
+ module WkhtmltopdfBinaryProvider
5
+ end
@@ -0,0 +1,7 @@
1
+ class WkhtmltopdfBinaryProvider::Dispatcher
2
+ # Returns path of wkhtmltopdf dispatch script.
3
+ # @return [String] Path of wkhtmltopdf dispatch script.
4
+ def self.path()
5
+ Pathname.new(__FILE__).join("..", "..", "..", "bin", "wkhtmltopdf").realpath.to_s
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ module WkhtmltopdfBinaryProvider
2
+ VERSION = "0.12.0"
3
+ end
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'wkhtmltopdf_binary_provider/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "wkhtmltopdf_binary_provider"
8
+ spec.version = WkhtmltopdfBinaryProvider::VERSION
9
+ spec.authors = ["Shou Takenaka"]
10
+ spec.email = ["shou_takenaka@guihua.jp"]
11
+ spec.summary = "Provides wkhtmltopdf binaries"
12
+ spec.description = "Provides wkhtmltopdf binaries"
13
+ spec.homepage = "https://github.com/shoutakenaka/wkhtmltopdf_binary_provider_gem"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.5"
22
+ spec.add_development_dependency "rake"
23
+ end
metadata ADDED
@@ -0,0 +1,89 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wkhtmltopdf_binary_provider
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.12.0
5
+ platform: ruby
6
+ authors:
7
+ - Shou Takenaka
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-04-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.5'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Provides wkhtmltopdf binaries
42
+ email:
43
+ - shou_takenaka@guihua.jp
44
+ executables:
45
+ - wkhtmltopdf
46
+ - wkhtmltopdf_linux_amd64
47
+ - wkhtmltopdf_linux_i386
48
+ - wkhtmltopdf_macosx
49
+ extensions: []
50
+ extra_rdoc_files: []
51
+ files:
52
+ - .gitignore
53
+ - Gemfile
54
+ - LICENSE.txt
55
+ - README.md
56
+ - Rakefile
57
+ - bin/wkhtmltopdf
58
+ - bin/wkhtmltopdf_linux_amd64
59
+ - bin/wkhtmltopdf_linux_i386
60
+ - bin/wkhtmltopdf_macosx
61
+ - lib/wkhtmltopdf_binary_provider.rb
62
+ - lib/wkhtmltopdf_binary_provider/dispatcher.rb
63
+ - lib/wkhtmltopdf_binary_provider/version.rb
64
+ - wkhtmltopdf_binary_provider.gemspec
65
+ homepage: https://github.com/shoutakenaka/wkhtmltopdf_binary_provider_gem
66
+ licenses:
67
+ - MIT
68
+ metadata: {}
69
+ post_install_message:
70
+ rdoc_options: []
71
+ require_paths:
72
+ - lib
73
+ required_ruby_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ required_rubygems_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ requirements: []
84
+ rubyforge_project:
85
+ rubygems_version: 2.1.11
86
+ signing_key:
87
+ specification_version: 4
88
+ summary: Provides wkhtmltopdf binaries
89
+ test_files: []