html2pdf 0.0.5 → 0.0.6
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.
- checksums.yaml +4 -4
- data/{Changelogs.md → CHANGELOGS.md} +5 -0
- data/{LICENSE.txt → LICENSE} +0 -0
- data/README.md +9 -16
- data/html2pdf.gemspec +12 -6
- data/lib/html2pdf/utils.rb +1 -1
- data/lib/html2pdf/version.rb +1 -1
- metadata +14 -30
- data/.ruby-version +0 -1
- data/Guardfile +0 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7477b49881238ef957e71d7a61cf27fdbbfa38f8
|
|
4
|
+
data.tar.gz: 3ff70b4a6aeddfaf081793b5449e3b5a1704dca1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59d359154a59830d99b40e376005bec32041aa22691856fb4f602a5f881439289349871c2d5a3df69e4ba969b144b6be2a30d87c70c6510128775dfd1a16abab
|
|
7
|
+
data.tar.gz: 307ed5f8b36f5002b09438a642de6933ab331fc304dc1ecb688821b8f59cb641c37b7753fbe1006e162a105ee733a5d08bbc29e54490cc8554ed50576868d593
|
data/{LICENSE.txt → LICENSE}
RENAMED
|
File without changes
|
data/README.md
CHANGED
|
@@ -3,39 +3,34 @@
|
|
|
3
3
|
[](http://badge.fury.io/rb/html2pdf)
|
|
4
4
|
[](https://gemnasium.com/agilecreativity/html2pdf)
|
|
5
5
|
[](https://codeclimate.com/github/agilecreativity/html2pdf)
|
|
6
|
+
[](https://coderwall.com/agilecreativity)
|
|
6
7
|
|
|
7
|
-
Convert multiple html or xhtml files to pdfs using the power of
|
|
8
|
-
[Ghostscript][] and [Wkhtmltopdf][].
|
|
8
|
+
Convert multiple html or xhtml files to pdfs using the power of [Wkhtmltopdf][].
|
|
9
9
|
|
|
10
10
|
### Installation
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
### Mandatory Requirement
|
|
13
13
|
|
|
14
|
-
- [
|
|
15
|
-
- [Wkhtmltopdf][]
|
|
16
|
-
|
|
17
|
-
This gem is built on top of my other gems
|
|
18
|
-
|
|
19
|
-
- [agile_utils][] gem
|
|
20
|
-
- [code_lister][] gem
|
|
14
|
+
- [Wkhtmltopdf][] - please follow the simple instruction on [https://github.com/pdfkit/pdfkit/wiki/Installing-WKHTMLTOPDF][]
|
|
21
15
|
|
|
22
16
|
### Dependencies
|
|
23
17
|
|
|
24
18
|
- wkhtmltopdf (Linux/OSX)
|
|
25
|
-
-
|
|
26
|
-
- OSX or Linux (no Windows sorry)
|
|
19
|
+
- OSX or Linux
|
|
27
20
|
|
|
28
21
|
## Usage
|
|
22
|
+
|
|
29
23
|
```sh
|
|
30
24
|
gem install html2pdf
|
|
31
25
|
```
|
|
26
|
+
|
|
32
27
|
For list of usage type
|
|
33
28
|
|
|
34
29
|
```sh
|
|
35
30
|
html2pdf
|
|
36
31
|
```
|
|
37
32
|
|
|
38
|
-
Which should give the following
|
|
33
|
+
Which should give the following output
|
|
39
34
|
|
|
40
35
|
```
|
|
41
36
|
Usage:
|
|
@@ -103,11 +98,9 @@ the pdf version of it.
|
|
|
103
98
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
104
99
|
5. Create new Pull Request
|
|
105
100
|
|
|
106
|
-
[Ghostscript]: http://www.ghostscript.com/
|
|
107
101
|
[Wkhtmltopdf]: http://wkhtmltopdf.org/
|
|
108
|
-
[agile_utils]: https://github.com/agilecreativity/agile_utils
|
|
109
|
-
[code_lister]: https://github.com/agilecreativity/code_lister
|
|
110
102
|
[vim_printer]: https://github.com/agilecreativity/vim_printer
|
|
111
103
|
[pdfs2pdf]: https://github.com/agilecreativity/pdfs2pdf
|
|
112
104
|
[gemnasium]: https://gemnasium.com/agilecreativity/html2pdf
|
|
113
105
|
[codeclimate]: https://codeclimate.com/github/agilecreativity/html2pdf
|
|
106
|
+
[https://github.com/pdfkit/pdfkit/wiki/Installing-WKHTMLTOPDF]: https://github.com/pdfkit/pdfkit/wiki/Installing-WKHTMLTOPDF
|
data/html2pdf.gemspec
CHANGED
|
@@ -8,13 +8,21 @@ Gem::Specification.new do |spec|
|
|
|
8
8
|
spec.version = Html2Pdf::VERSION
|
|
9
9
|
spec.authors = ['Burin Choomnuan']
|
|
10
10
|
spec.email = ['agilecreativity@gmail.com']
|
|
11
|
-
spec.summary = %q
|
|
12
|
-
spec.description = %q
|
|
11
|
+
spec.summary = %q(Export html or xhtml file to pdfs with using the power of 'wkhtmltopdf')
|
|
12
|
+
spec.description = %q(Export html or xhtml file to pdfs with 'wkhtmltopdf')
|
|
13
13
|
spec.homepage = 'https://github.com/agilecreativity/html2pdf'
|
|
14
14
|
spec.license = 'MIT'
|
|
15
|
-
spec.files =
|
|
15
|
+
spec.files = Dir.glob('{bin,lib}/**/*') + %w(Gemfile
|
|
16
|
+
Rakefile
|
|
17
|
+
html2pdf.gemspec
|
|
18
|
+
README.md
|
|
19
|
+
CHANGELOGS.md
|
|
20
|
+
LICENSE
|
|
21
|
+
.rubocop.yml
|
|
22
|
+
.gitignore
|
|
23
|
+
rubocop-todo.yml)
|
|
16
24
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
17
|
-
spec.test_files =
|
|
25
|
+
spec.test_files = Dir.glob('{test}/**/*')
|
|
18
26
|
spec.require_paths = ["lib"]
|
|
19
27
|
spec.add_runtime_dependency 'thor'
|
|
20
28
|
spec.add_runtime_dependency 'agile_utils', '~> 0.0.9'
|
|
@@ -25,11 +33,9 @@ Gem::Specification.new do |spec|
|
|
|
25
33
|
spec.add_development_dependency 'guard', '~> 2.6'
|
|
26
34
|
spec.add_development_dependency 'guard-minitest', '~> 2.2'
|
|
27
35
|
spec.add_development_dependency 'minitest', '~> 5.3'
|
|
28
|
-
spec.add_development_dependency 'minitest-filesystem', '~> 1.2.0'
|
|
29
36
|
spec.add_development_dependency 'minitest-spec-context', '~> 0.0.3'
|
|
30
37
|
spec.add_development_dependency 'pry', '~> 0.9'
|
|
31
38
|
spec.add_development_dependency 'rake', '~> 10.1'
|
|
32
39
|
spec.add_development_dependency 'rubocop', '~> 0.20'
|
|
33
40
|
spec.add_development_dependency 'yard', '~> 0.8'
|
|
34
|
-
|
|
35
41
|
end
|
data/lib/html2pdf/utils.rb
CHANGED
data/lib/html2pdf/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: html2pdf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Burin Choomnuan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-05-
|
|
11
|
+
date: 2014-05-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|
|
@@ -136,20 +136,6 @@ dependencies:
|
|
|
136
136
|
- - "~>"
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
138
|
version: '5.3'
|
|
139
|
-
- !ruby/object:Gem::Dependency
|
|
140
|
-
name: minitest-filesystem
|
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
|
142
|
-
requirements:
|
|
143
|
-
- - "~>"
|
|
144
|
-
- !ruby/object:Gem::Version
|
|
145
|
-
version: 1.2.0
|
|
146
|
-
type: :development
|
|
147
|
-
prerelease: false
|
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
-
requirements:
|
|
150
|
-
- - "~>"
|
|
151
|
-
- !ruby/object:Gem::Version
|
|
152
|
-
version: 1.2.0
|
|
153
139
|
- !ruby/object:Gem::Dependency
|
|
154
140
|
name: minitest-spec-context
|
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -220,7 +206,7 @@ dependencies:
|
|
|
220
206
|
- - "~>"
|
|
221
207
|
- !ruby/object:Gem::Version
|
|
222
208
|
version: '0.8'
|
|
223
|
-
description:
|
|
209
|
+
description: Export html or xhtml file to pdfs with 'wkhtmltopdf'
|
|
224
210
|
email:
|
|
225
211
|
- agilecreativity@gmail.com
|
|
226
212
|
executables:
|
|
@@ -230,11 +216,9 @@ extra_rdoc_files: []
|
|
|
230
216
|
files:
|
|
231
217
|
- ".gitignore"
|
|
232
218
|
- ".rubocop.yml"
|
|
233
|
-
-
|
|
234
|
-
- Changelogs.md
|
|
219
|
+
- CHANGELOGS.md
|
|
235
220
|
- Gemfile
|
|
236
|
-
-
|
|
237
|
-
- LICENSE.txt
|
|
221
|
+
- LICENSE
|
|
238
222
|
- README.md
|
|
239
223
|
- Rakefile
|
|
240
224
|
- bin/html2pdf
|
|
@@ -281,20 +265,20 @@ rubyforge_project:
|
|
|
281
265
|
rubygems_version: 2.2.2
|
|
282
266
|
signing_key:
|
|
283
267
|
specification_version: 4
|
|
284
|
-
summary: Export
|
|
268
|
+
summary: Export html or xhtml file to pdfs with using the power of 'wkhtmltopdf'
|
|
285
269
|
test_files:
|
|
286
|
-
- test/
|
|
270
|
+
- test/lib/html2pdf/test_utils.rb
|
|
271
|
+
- test/test_helper.rb
|
|
287
272
|
- test/fixtures/samples/demo1_xxx.rb.xhtml
|
|
288
|
-
- test/fixtures/samples/demo1_xxx.rb.xhtml.pdf
|
|
289
273
|
- test/fixtures/samples/demo2_xxx.rb
|
|
290
|
-
- test/fixtures/samples/demo2_xxx.rb.xhtml
|
|
291
274
|
- test/fixtures/samples/demo2_xxx.rb.xhtml.pdf
|
|
292
|
-
- test/fixtures/samples/
|
|
275
|
+
- test/fixtures/samples/demo2_xxx.rb.xhtml
|
|
293
276
|
- test/fixtures/samples/sub_dir/demo3_xxx.rb.xhtml
|
|
277
|
+
- test/fixtures/samples/sub_dir/demo4_xxx.rb.xhtml.pdf
|
|
294
278
|
- test/fixtures/samples/sub_dir/demo3_xxx.rb.xhtml.pdf
|
|
295
|
-
- test/fixtures/samples/sub_dir/demo4_xxx.rb
|
|
296
279
|
- test/fixtures/samples/sub_dir/demo4_xxx.rb.xhtml
|
|
297
|
-
- test/fixtures/samples/sub_dir/demo4_xxx.rb
|
|
298
|
-
- test/
|
|
299
|
-
- test/
|
|
280
|
+
- test/fixtures/samples/sub_dir/demo4_xxx.rb
|
|
281
|
+
- test/fixtures/samples/sub_dir/demo3_xxx.rb
|
|
282
|
+
- test/fixtures/samples/demo1_xxx.rb
|
|
283
|
+
- test/fixtures/samples/demo1_xxx.rb.xhtml.pdf
|
|
300
284
|
has_rdoc:
|
data/.ruby-version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.1.1
|
data/Guardfile
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# A sample Guardfile
|
|
2
|
-
# More info at https://github.com/guard/guard#readme
|
|
3
|
-
guard 'minitest' do
|
|
4
|
-
|
|
5
|
-
# with Minitest::Unit
|
|
6
|
-
watch(%r|^test/(.*)\/?test_(.*)\.rb|)
|
|
7
|
-
watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
|
|
8
|
-
watch(%r|^test/test_helper\.rb|) { "test" }
|
|
9
|
-
|
|
10
|
-
# with Minitest::Spec
|
|
11
|
-
# watch(%r|^spec/(.*)_spec\.rb|)
|
|
12
|
-
# watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
|
|
13
|
-
# watch(%r|^spec/spec_helper\.rb|) { "spec" }
|
|
14
|
-
|
|
15
|
-
end
|