html2pdf 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 680c9a1600d0f850acb98d0c47e12db55f1edab9
4
- data.tar.gz: 8a43bdca268d7505abc6a022b25770b9a21b4151
3
+ metadata.gz: 7477b49881238ef957e71d7a61cf27fdbbfa38f8
4
+ data.tar.gz: 3ff70b4a6aeddfaf081793b5449e3b5a1704dca1
5
5
  SHA512:
6
- metadata.gz: 07798081d31b0fa35945d9189984bfa4cca16fa6190a257d1dd7cd4999e61c0d284ff6099db11018ec94c3f4ae07768995309b5761462ff2f8dd018fbddcba1a
7
- data.tar.gz: 3f4aa861e75a693cdff6749f7776bedd4952a4754d30871bc7f085f922630eecf782f64a147977fbc964d33aed86dd089096c4bf97fb9c1bd2b9a9707da7e5c9
6
+ metadata.gz: 59d359154a59830d99b40e376005bec32041aa22691856fb4f602a5f881439289349871c2d5a3df69e4ba969b144b6be2a30d87c70c6510128775dfd1a16abab
7
+ data.tar.gz: 307ed5f8b36f5002b09438a642de6933ab331fc304dc1ecb688821b8f59cb641c37b7753fbe1006e162a105ee733a5d08bbc29e54490cc8554ed50576868d593
@@ -1,5 +1,10 @@
1
1
  ### Html2Pdf - Changelogs
2
2
 
3
+ #### 0.0.6
4
+
5
+ - Remove the need to have 'Ghostscript' installation
6
+ - Update the gemspec file
7
+
3
8
  #### 0.0.5
4
9
 
5
10
  - Add :rubocop to default rake task
File without changes
data/README.md CHANGED
@@ -3,39 +3,34 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/html2pdf.svg)](http://badge.fury.io/rb/html2pdf)
4
4
  [![Dependency Status](https://gemnasium.com/agilecreativity/html2pdf.png)](https://gemnasium.com/agilecreativity/html2pdf)
5
5
  [![Code Climate](https://codeclimate.com/github/agilecreativity/html2pdf.png)](https://codeclimate.com/github/agilecreativity/html2pdf)
6
+ [![Endorse](https://api.coderwall.com/agilecreativity/endorsecount.png)](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
- #### Mandatory Requirement
12
+ ### Mandatory Requirement
13
13
 
14
- - [Ghostscript][]
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
- - Ghostscript (Linux/OSX)
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 options
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{Export any list of html or xhtml files to pdfs}
12
- spec.description = %q{Batch export html files to pdfs}
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 = `git ls-files`.split($/)
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 = spec.files.grep(%r{^(test|spec|features)/})
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
@@ -44,7 +44,7 @@ module Html2Pdf
44
44
  # Check and verify that the proper softwares are available.
45
45
  #
46
46
  def softwares_installed?
47
- AgileUtils::Helper.which('wkhtmltopdf') && AgileUtils::Helper.which('gs')
47
+ AgileUtils::Helper.which('wkhtmltopdf')
48
48
  end
49
49
  end
50
50
  end
@@ -1,3 +1,3 @@
1
1
  module Html2Pdf
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
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.5
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-03 00:00:00.000000000 Z
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: Batch export html files to pdfs
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
- - ".ruby-version"
234
- - Changelogs.md
219
+ - CHANGELOGS.md
235
220
  - Gemfile
236
- - Guardfile
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 any list of html or xhtml files to pdfs
268
+ summary: Export html or xhtml file to pdfs with using the power of 'wkhtmltopdf'
285
269
  test_files:
286
- - test/fixtures/samples/demo1_xxx.rb
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/sub_dir/demo3_xxx.rb
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.xhtml.pdf
298
- - test/lib/html2pdf/test_utils.rb
299
- - test/test_helper.rb
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