wkhtmltopdf-windows 0.0.1

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
+ SHA256:
3
+ metadata.gz: dedbeb81b72eb50d72ef02c40401b00fbd276d094f53bf07e1e6b42705a2cb12
4
+ data.tar.gz: 7016df79ce8460d10a5bf88affac5497c0d2b5f722031181b65c83124d39c89e
5
+ SHA512:
6
+ metadata.gz: d72358c28ebe954f99ddec37657add094655b62c57fdc3a5753ad1bed0232eb45b48ba88c309b233ee49b2f6b0e7f14f442a99977f2b39f3cc51fbd12fdaf0bd
7
+ data.tar.gz: 3ac73e452e851a9d8fb42e19cfd818d2a94ebb979f689e4b775c420a8cbe720c8d550c7211a90a581dc49bcc655341f89b4022cab5862c6557a6a05263144259
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Mike Gabriel
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,55 @@
1
+ # wkhtmltopdf-windows
2
+
3
+ Provides a [wkhtmltopdf](http://wkhtmltopdf.org/) executable for Windows environment.
4
+
5
+ Preconfigures [pdfkit](https://rubygems.org/gems/pdfkit), [wicked_pdf](https://rubygems.org/gems/wicked_pdf), and [wisepdf](http://rubygems.org/gems/wisepdf) to use this executable if they are loaded.
6
+
7
+ ## Installation
8
+
9
+ In your `Gemfile`:
10
+
11
+ ```ruby
12
+ gem 'wkhtmltopdf-windows'
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ### When using with `wicked_pdf`
18
+
19
+ Since `wicked_pdf` overwrites its `config` hash in the initializer, you
20
+ will need to update it to make sure its `exe_path` is configured
21
+ correctly.
22
+
23
+ If you don't need any extra configurations, you can simply remove the
24
+ initializer. Or you can change it to:
25
+
26
+ ```ruby
27
+ WickedPdf.config ||= {}
28
+ WickedPdf.config.merge!({
29
+ # your extra configurations here
30
+ })
31
+ ```
32
+
33
+ ### When using with `pdf_kit` or `wisepdf`
34
+
35
+ No extra configuration is needed. But please make sure you are not
36
+ re-configuring the binary path again in their initializer files.
37
+
38
+ ### When using with other gems
39
+
40
+ You will need to configure the path manually. You can get the path to
41
+ the executable by using this: `Gem.bin_path('wkhtmltopdf-windows', 'wkhtmltopdf.exe')`
42
+
43
+ ## Current wkhtmltopdf binary Version
44
+
45
+ [0.12.5.0 MSVC 2015 Win64](https://github.com/wkhtmltopdf/wkhtmltopdf/tree/0.12.5)
46
+
47
+ For more details see wkhtmltopdf [Changelog](https://github.com/wkhtmltopdf/wkhtmltopdf/blob/master/CHANGELOG.md)
48
+
49
+ ## Special Thanks
50
+
51
+ This gem is based on [wkhtmltopdf-heroku](https://github.com/rposborne/wkhtmltopdf-heroku)
52
+
53
+ ## Copyright
54
+
55
+ Copyright (c) 2019 Mike Gabriel. See LICENSE.txt for further details.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.1
Binary file
@@ -0,0 +1,26 @@
1
+ WKHTMLTOPDF_PATH = File.expand_path "../../bin/wkhtmltopdf.exe", __FILE__
2
+
3
+ begin
4
+ require 'pdfkit'
5
+
6
+ PDFKit.configure do |config|
7
+ config.wkhtmltopdf = WKHTMLTOPDF_PATH
8
+ end
9
+ rescue LoadError
10
+ end
11
+
12
+ begin
13
+ require 'wicked_pdf'
14
+
15
+ WickedPdf.config[:exe_path] = WKHTMLTOPDF_PATH
16
+ rescue LoadError
17
+ end
18
+
19
+ begin
20
+ require 'wisepdf'
21
+
22
+ Wisepdf::Configuration.configure do |config|
23
+ config.wkhtmltopdf = WKHTMLTOPDF_PATH
24
+ end
25
+ rescue LoadError
26
+ end
@@ -0,0 +1,30 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = "wkhtmltopdf-windows"
3
+ s.version = IO.read('VERSION').strip
4
+
5
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
+ s.required_ruby_version = '>= 1.8.7'
7
+
8
+ s.authors = ["Mike Gabriel"]
9
+ s.date = Time.now.strftime('%Y-%m-%d')
10
+ s.description = "This gem provides a wkhtmltopdf executable and configures wisepdf, wicked_pdf, and pdfkit for ruby based applications running Windows"
11
+ s.email = "mike@flipwire.ca"
12
+ s.executables = ["wkhtmltopdf.exe"]
13
+ s.extra_rdoc_files = [
14
+ "LICENSE",
15
+ "README.md"
16
+ ]
17
+ s.files = [
18
+ "LICENSE",
19
+ "README.md",
20
+ "VERSION",
21
+ "bin/wkhtmltopdf.exe",
22
+ "lib/wkhtmltopdf-windows.rb",
23
+ "wkhtmltopdf-windows.gemspec"
24
+ ]
25
+ s.homepage = "http://github.com/mikegabriel/wkhtmltopdf-windows"
26
+ s.licenses = ["MIT"]
27
+ s.require_paths = ["lib"]
28
+ s.rubygems_version = "0.0.1"
29
+ s.summary = "provides wkhtmltopdf executable for windows"
30
+ end
metadata ADDED
@@ -0,0 +1,53 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wkhtmltopdf-windows
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Mike Gabriel
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-04-20 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: This gem provides a wkhtmltopdf executable and configures wisepdf, wicked_pdf,
14
+ and pdfkit for ruby based applications running Windows
15
+ email: mike@flipwire.ca
16
+ executables:
17
+ - wkhtmltopdf.exe
18
+ extensions: []
19
+ extra_rdoc_files:
20
+ - LICENSE
21
+ - README.md
22
+ files:
23
+ - LICENSE
24
+ - README.md
25
+ - VERSION
26
+ - bin/wkhtmltopdf.exe
27
+ - lib/wkhtmltopdf-windows.rb
28
+ - wkhtmltopdf-windows.gemspec
29
+ homepage: http://github.com/mikegabriel/wkhtmltopdf-windows
30
+ licenses:
31
+ - MIT
32
+ metadata: {}
33
+ post_install_message:
34
+ rdoc_options: []
35
+ require_paths:
36
+ - lib
37
+ required_ruby_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: 1.8.7
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ requirements: []
48
+ rubyforge_project:
49
+ rubygems_version: 2.7.6
50
+ signing_key:
51
+ specification_version: 4
52
+ summary: provides wkhtmltopdf executable for windows
53
+ test_files: []