pdfkit 0.4.3 → 0.4.4

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bin/pdfkit +4 -0
  3. data/pdfkit.gemspec +2 -2
  4. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.3
1
+ 0.4.4
data/bin/pdfkit CHANGED
@@ -39,6 +39,10 @@ def install(download, arch, install_to)
39
39
  if download =~ /.tar.bz2$/
40
40
  `tar xjvf #{download}`
41
41
  `mv wkhtmltopdf-#{arch} #{install_to}`
42
+ elsif download =~ /.tar.lzma$/
43
+ raise "couldn't extract archive: lzcat not found" unless system("which lzcat > /dev/null 2>/dev/null")
44
+ `lzcat #{download} | tar x`
45
+ `mv wkhtmltopdf-#{arch} #{install_to}`
42
46
  else
43
47
  `mv #{download} #{install_to}`
44
48
  end
data/pdfkit.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pdfkit}
8
- s.version = "0.4.3"
8
+ s.version = "0.4.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jdpace"]
12
- s.date = %q{2010-07-30}
12
+ s.date = %q{2010-08-20}
13
13
  s.default_executable = %q{pdfkit}
14
14
  s.description = %q{Uses wkhtmltopdf to create PDFs using HTML}
15
15
  s.email = %q{jared@codewordstudios.com}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdfkit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 3
10
- version: 0.4.3
9
+ - 4
10
+ version: 0.4.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - jdpace
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-30 00:00:00 -04:00
18
+ date: 2010-08-20 00:00:00 -04:00
19
19
  default_executable: pdfkit
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency