wkhtmltox-binaries 0.12.3

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: 58019b226a871e0230e488cc72436630ef95fb5e
4
+ data.tar.gz: 76e2815143b2bba116991fa11412583168d84069
5
+ SHA512:
6
+ metadata.gz: 56c4ac50567f7be709f5f70515bd15d4b53bab4eab5a03cbfd8a8f4fdfd5a745bc2240179f11bcb4f2930df937a31ea020a4458adaa3301c65855272e0524ad4
7
+ data.tar.gz: da189c3ccd1a5dcb2c2bd5f2e4690710df1cc6592447e5c68e5a6f7f1f44f96ff938e7a2a6f80a963619e948013221868c0065276f729f9d1b81fafa8436e059
@@ -0,0 +1,36 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ ## Specific to RubyMotion:
14
+ .dat*
15
+ .repl_history
16
+ build/
17
+
18
+ ## Documentation cache and generated files:
19
+ /.yardoc/
20
+ /_yardoc/
21
+ /doc/
22
+ /rdoc/
23
+
24
+ ## Environment normalization:
25
+ /.bundle/
26
+ /vendor/bundle
27
+ /lib/bundler/man/
28
+
29
+ # for a library or gem, you might want to ignore these files since the code is
30
+ # intended to run in multiple environments; otherwise, check them in:
31
+ # Gemfile.lock
32
+ .ruby-version
33
+ .ruby-gemset
34
+
35
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
36
+ .rvmrc
@@ -0,0 +1,26 @@
1
+ sudo: false
2
+ bundler_args: --jobs=3 --retry=3
3
+ language: ruby
4
+ cache: bundler
5
+ before_install:
6
+ - gem update --remote bundler
7
+ rvm:
8
+ - 1.9.3
9
+ - 2.0.0
10
+ - 2.1
11
+ - 2.2
12
+ - jruby-19mode
13
+ - jruby-9.0.0.0
14
+ - ruby-head
15
+ - jruby-head
16
+ matrix:
17
+ allow_failures:
18
+ - rvm: ruby-head
19
+ - rvm: jruby-head
20
+ fast_finish: true
21
+ notifications:
22
+ email:
23
+ on_success: change
24
+ on_failure: always
25
+ script:
26
+ - bundle exec rake
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Phlegx Systems OG
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,60 @@
1
+ # Wkhtmltox Binaries
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/wkhtmltox-binaries.svg)](https://rubygems.org/gems/wkhtmltox-binaries)
4
+ [![Build Status](https://secure.travis-ci.org/phlegx/wkhtmltox-binaries.svg?branch=master)](https://travis-ci.org/phlegx/wkhtmltox-binaries)
5
+ [![Code Climate](http://img.shields.io/codeclimate/github/phlegx/wkhtmltox-binaries.svg)](https://codeclimate.com/github/phlegx/wkhtmltox-binaries)
6
+ [![Inline Docs](http://inch-ci.org/github/phlegx/wkhtmltox-binaries.svg?branch=master)](http://inch-ci.org/github/phlegx/wkhtmltox-binaries)
7
+ [![Dependency Status](https://gemnasium.com/phlegx/wkhtmltox-binaries.svg)](https://gemnasium.com/phlegx/wkhtmltox-binaries)
8
+ [![License](https://img.shields.io/github/license/phlegx/wkhtmltox-binaries.svg)](http://opensource.org/licenses/MIT)
9
+
10
+ A gem that provides Linux and Mac binaries for wkhtmltoimage
11
+ and wkhtmltopdf project in an easily accessible package from
12
+ [wkhtmltopdf.org](http://wkhtmltopdf.org).
13
+
14
+ ## Features
15
+
16
+ * Linux generic 64-bit
17
+ * Linux generic 32-bit
18
+ * Mac OS cocoa 64-bit
19
+ * Mac OS carbon 32-bit
20
+ * The gem version is the same as the binary files version of wkhtmltox.
21
+
22
+ ## Install
23
+
24
+ Using Rubygems
25
+
26
+ ```
27
+ gem install wkhtmltox-binaries
28
+ ```
29
+
30
+ Using Gemfile
31
+
32
+ ```
33
+ gem 'wkhtmltox-binaries', '~>0.12.3'
34
+ ```
35
+
36
+ ## Refs
37
+
38
+ * Binaries [wkhtmltopdf.org](http://wkhtmltopdf.org/)
39
+ * Wkhtmltopdf Source [github.com/wkhtmltopdf/wkhtmltopdf](https://github.com/wkhtmltopdf/wkhtmltopdf)
40
+
41
+ ## Contributors
42
+
43
+ * Inspired by [github.com/nicholasklick/wkhtmltoimage-binary](https://github.com/nicholasklick/wkhtmltoimage-binary).
44
+
45
+ ## Contributing
46
+
47
+ 1. Fork it ( https://github.com/[your-username]/wkhtmltox-binaries/fork )
48
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
49
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
50
+ 4. Push to the branch (`git push origin my-new-feature`)
51
+ 5. Create a new Pull Request
52
+
53
+ ## License
54
+
55
+ The MIT License
56
+
57
+ All binaries of Wkhtmltopdf are under [LGPL License](https://github.com/wkhtmltopdf/wkhtmltopdf/blob/master/LICENSE)
58
+
59
+ Copyright (c) 2016 Phlegx Systems OG
60
+
@@ -0,0 +1,4 @@
1
+ require 'rake/testtask'
2
+
3
+ Rake::TestTask.new
4
+ task default: :test
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'os'
4
+
5
+ arch = case RUBY_PLATFORM
6
+ when /linux/
7
+ case OS.bits
8
+ when 64
9
+ 'generic-amd64'
10
+ when 32
11
+ 'generic-i386'
12
+ else
13
+ raise 'Linux bit system cannot be recognized.'
14
+ end
15
+ when /mac|darwin/
16
+ case OS.bits
17
+ when 64
18
+ 'cocoa-x86-64'
19
+ when 32
20
+ 'carbon-i386'
21
+ else
22
+ raise 'Mac bit system cannot be recognized.'
23
+ end
24
+ else
25
+ raise 'Invalid platform. Must be a Linux or Mac 32 or 64 bit system.'
26
+ end
27
+
28
+ args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
29
+ cmd = File.expand_path "#{File.dirname(__FILE__)}/../libexec/wkhtmltoimage-#{arch}"
30
+
31
+ exec "#{cmd} #{args.join(' ')}"
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'os'
4
+
5
+ arch = case RUBY_PLATFORM
6
+ when /linux/
7
+ case OS.bits
8
+ when 64
9
+ 'generic-amd64'
10
+ when 32
11
+ 'generic-i386'
12
+ else
13
+ raise 'Linux bit system cannot be recognized.'
14
+ end
15
+ when /mac|darwin/
16
+ case OS.bits
17
+ when 64
18
+ 'cocoa-x86-64'
19
+ when 32
20
+ 'carbon-i386'
21
+ else
22
+ raise 'Mac bit system cannot be recognized.'
23
+ end
24
+ else
25
+ raise 'Invalid platform. Must be a Linux or Mac 32 or 64 bit system.'
26
+ end
27
+
28
+ args = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
29
+ cmd = File.expand_path "#{File.dirname(__FILE__)}/../libexec/wkhtmltopdf-#{arch}"
30
+
31
+ exec "#{cmd} #{args.join(' ')}"
@@ -0,0 +1,7 @@
1
+ # Module Wkhtmltox
2
+ module Wkhtmltox
3
+ # Module Binaries
4
+ module Binaries
5
+ # For the moment there is no more code.
6
+ end
7
+ end
@@ -0,0 +1,21 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'wkhtmltox-binaries'
3
+ s.version = '0.12.3'
4
+ s.date = Time.now.utc.strftime('%Y-%m-%d')
5
+ s.homepage = "http://github.com/phlegx/#{s.name}"
6
+ s.authors = ['Egon Zemmer']
7
+ s.email = 'office@phlegx.com'
8
+ s.description = 'A gem that provides Linux and Mac binaries for wkhtmltoimage ' \
9
+ 'and wkhtmltopdf project in an easily accessible package from ' \
10
+ 'http://wkhtmltopdf.org.'
11
+ s.summary = 'Provides Linux and Mac binaries for wkhtmltoimage and wkhtmltopdf ' \
12
+ 'in an easily accessible package. '
13
+ s.extra_rdoc_files = %w(README.md)
14
+ s.files = `git ls-files`.split($/)
15
+ s.executables = s.files.grep(%r{^bin/}).map { |f| File.basename(f) }
16
+ s.license = 'MIT'
17
+ s.require_paths = ['lib']
18
+ s.rubygems_version = '1.3.7'
19
+ s.add_dependency 'os', '~> 0.9.6'
20
+ s.add_development_dependency 'rake', '~> 0'
21
+ end
metadata ADDED
@@ -0,0 +1,94 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wkhtmltox-binaries
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.12.3
5
+ platform: ruby
6
+ authors:
7
+ - Egon Zemmer
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-02-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: os
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.9.6
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.9.6
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: A gem that provides Linux and Mac binaries for wkhtmltoimage and wkhtmltopdf
42
+ project in an easily accessible package from http://wkhtmltopdf.org.
43
+ email: office@phlegx.com
44
+ executables:
45
+ - wkhtmltoimage
46
+ - wkhtmltopdf
47
+ extensions: []
48
+ extra_rdoc_files:
49
+ - README.md
50
+ files:
51
+ - ".gitignore"
52
+ - ".travis.yml"
53
+ - Gemfile
54
+ - LICENSE
55
+ - README.md
56
+ - Rakefile
57
+ - bin/wkhtmltoimage
58
+ - bin/wkhtmltopdf
59
+ - lib/wkhtmltox-binaries.rb
60
+ - libexec/wkhtmltoimage-carbon-i386
61
+ - libexec/wkhtmltoimage-cocoa-x86-64
62
+ - libexec/wkhtmltoimage-generic-amd64
63
+ - libexec/wkhtmltoimage-generic-i386
64
+ - libexec/wkhtmltopdf-carbon-i386
65
+ - libexec/wkhtmltopdf-cocoa-x86-64
66
+ - libexec/wkhtmltopdf-generic-amd64
67
+ - libexec/wkhtmltopdf-generic-i386
68
+ - wkhtmltox-binaries.gemspec
69
+ homepage: http://github.com/phlegx/wkhtmltox-binaries
70
+ licenses:
71
+ - MIT
72
+ metadata: {}
73
+ post_install_message:
74
+ rdoc_options: []
75
+ require_paths:
76
+ - lib
77
+ required_ruby_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ requirements: []
88
+ rubyforge_project:
89
+ rubygems_version: 2.4.8
90
+ signing_key:
91
+ specification_version: 4
92
+ summary: Provides Linux and Mac binaries for wkhtmltoimage and wkhtmltopdf in an easily
93
+ accessible package.
94
+ test_files: []