wisepdf 1.2.9 → 1.2.10

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.
@@ -1,31 +1,31 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- actionmailer (3.2.11)
5
- actionpack (= 3.2.11)
4
+ actionmailer (3.2.12)
5
+ actionpack (= 3.2.12)
6
6
  mail (~> 2.4.4)
7
- actionpack (3.2.11)
8
- activemodel (= 3.2.11)
9
- activesupport (= 3.2.11)
7
+ actionpack (3.2.12)
8
+ activemodel (= 3.2.12)
9
+ activesupport (= 3.2.12)
10
10
  builder (~> 3.0.0)
11
11
  erubis (~> 2.7.0)
12
12
  journey (~> 1.0.4)
13
- rack (~> 1.4.0)
13
+ rack (~> 1.4.5)
14
14
  rack-cache (~> 1.2)
15
15
  rack-test (~> 0.6.1)
16
16
  sprockets (~> 2.2.1)
17
- activemodel (3.2.11)
18
- activesupport (= 3.2.11)
17
+ activemodel (3.2.12)
18
+ activesupport (= 3.2.12)
19
19
  builder (~> 3.0.0)
20
- activerecord (3.2.11)
21
- activemodel (= 3.2.11)
22
- activesupport (= 3.2.11)
20
+ activerecord (3.2.12)
21
+ activemodel (= 3.2.12)
22
+ activesupport (= 3.2.12)
23
23
  arel (~> 3.0.2)
24
24
  tzinfo (~> 0.3.29)
25
- activeresource (3.2.11)
26
- activemodel (= 3.2.11)
27
- activesupport (= 3.2.11)
28
- activesupport (3.2.11)
25
+ activeresource (3.2.12)
26
+ activemodel (= 3.2.12)
27
+ activesupport (= 3.2.12)
28
+ activesupport (3.2.12)
29
29
  i18n (~> 0.6)
30
30
  multi_json (~> 1.0)
31
31
  arel (3.0.2)
@@ -35,47 +35,47 @@ GEM
35
35
  erubis (2.7.0)
36
36
  git (1.2.5)
37
37
  hike (1.2.1)
38
- i18n (0.6.1)
38
+ i18n (0.6.4)
39
39
  jeweler (1.6.4)
40
40
  bundler (~> 1.0)
41
41
  git (>= 1.2.5)
42
42
  rake
43
43
  journey (1.0.4)
44
- json (1.7.6)
44
+ json (1.7.7)
45
45
  mail (2.4.4)
46
46
  i18n (>= 0.4.0)
47
47
  mime-types (~> 1.16)
48
48
  treetop (~> 1.4.8)
49
49
  metaclass (0.0.1)
50
- mime-types (1.19)
50
+ mime-types (1.21)
51
51
  mocha (0.10.5)
52
52
  metaclass (~> 0.0.1)
53
- multi_json (1.5.0)
53
+ multi_json (1.6.1)
54
54
  polyglot (0.3.3)
55
- rack (1.4.3)
55
+ rack (1.4.5)
56
56
  rack-cache (1.2)
57
57
  rack (>= 0.4)
58
- rack-ssl (1.3.2)
58
+ rack-ssl (1.3.3)
59
59
  rack
60
60
  rack-test (0.6.2)
61
61
  rack (>= 1.0)
62
- rails (3.2.11)
63
- actionmailer (= 3.2.11)
64
- actionpack (= 3.2.11)
65
- activerecord (= 3.2.11)
66
- activeresource (= 3.2.11)
67
- activesupport (= 3.2.11)
62
+ rails (3.2.12)
63
+ actionmailer (= 3.2.12)
64
+ actionpack (= 3.2.12)
65
+ activerecord (= 3.2.12)
66
+ activeresource (= 3.2.12)
67
+ activesupport (= 3.2.12)
68
68
  bundler (~> 1.0)
69
- railties (= 3.2.11)
70
- railties (3.2.11)
71
- actionpack (= 3.2.11)
72
- activesupport (= 3.2.11)
69
+ railties (= 3.2.12)
70
+ railties (3.2.12)
71
+ actionpack (= 3.2.12)
72
+ activesupport (= 3.2.12)
73
73
  rack-ssl (~> 1.3.2)
74
74
  rake (>= 0.8.7)
75
75
  rdoc (~> 3.4)
76
76
  thor (>= 0.14.6, < 2.0)
77
77
  rake (10.0.3)
78
- rdoc (3.12)
78
+ rdoc (3.12.2)
79
79
  json (~> 1.4)
80
80
  shoulda (3.3.2)
81
81
  shoulda-context (~> 1.0.1)
@@ -89,13 +89,13 @@ GEM
89
89
  multi_json (~> 1.0)
90
90
  rack (~> 1.0)
91
91
  tilt (~> 1.1, != 1.3.0)
92
- sqlite3 (1.3.6)
93
- thor (0.16.0)
94
- tilt (1.3.3)
92
+ sqlite3 (1.3.7)
93
+ thor (0.17.0)
94
+ tilt (1.3.5)
95
95
  treetop (1.4.12)
96
96
  polyglot
97
97
  polyglot (>= 0.3.1)
98
- tzinfo (0.3.35)
98
+ tzinfo (0.3.36)
99
99
  wkhtmltopdf-binary (0.9.9.1)
100
100
 
101
101
  PLATFORMS
data/README.md CHANGED
@@ -1,4 +1,8 @@
1
- [![Build Status](https://secure.travis-ci.org/igor-alexandrov/wisepdf.png)](http://travis-ci.org/igor-alexandrov/wisepdf)
1
+ [![Gem Version](https://badge.fury.io/rb/wisepdf.png)](http://badge.fury.io/rb/wiselinks)
2
+ [![Build Status](https://travis-ci.org/igor-alexandrov/wisepdf.png?branch=master)](https://travis-ci.org/igor-alexandrov/wiselinks)
3
+ [![Dependency Status](https://gemnasium.com/igor-alexandrov/wisepdf.png)](https://gemnasium.com/igor-alexandrov/wiselinks)
4
+
5
+
2
6
  [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/igor-alexandrov/wisepdf)
3
7
 
4
8
  # wisepdf
@@ -208,6 +212,19 @@ You can put your default configuration, applied to all pdf's at "configure_wisep
208
212
 
209
213
  end
210
214
 
215
+ ### Problems with with wkhtmltopdf-0.10 and above?
216
+
217
+ If you experience problems with wkhtmltopdf-0.10 and above like getting `Broken Pipe` error or something similar, then you probably should compile wkhtmltopdf from source.
218
+
219
+ To do this you will have to:
220
+
221
+ * download the latest sources from wkhtmltopdf repository [https://github.com/antialize/wkhtmltopdf](https://github.com/antialize/wkhtmltopdf).
222
+ * install needed dependencies (libXrender-devel, libXext-devel, libXft-devel, openssl-devel, development tools)
223
+ * install QT
224
+ * run `qmake` in your wkhtmltopdf sources folder
225
+ * run `make && make install`
226
+
227
+ After this all should as expected.
211
228
 
212
229
  ### Debugging
213
230
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.9
1
+ 1.2.10
@@ -1,5 +1,3 @@
1
- require 'shellwords'
2
-
3
1
  module Wisepdf
4
2
  class Writer
5
3
  def initialize(wkhtmltopdf = nil, options = {})
@@ -40,7 +38,8 @@ module Wisepdf
40
38
  self.options.merge!(Wisepdf::Parser.parse(value))
41
39
  end
42
40
 
43
- protected
41
+ protected
42
+
44
43
  def command(options = {})
45
44
  options = Wisepdf::Parser.parse(options)
46
45
 
@@ -51,7 +50,7 @@ module Wisepdf
51
50
  args << '-'
52
51
  args << '-'
53
52
 
54
- args.map {|arg| %Q{"#{arg.shellescape}"}}
53
+ args.map {|arg| %Q{"#{arg.gsub('"', '\"')}"}}
55
54
  end
56
55
 
57
56
  def log(command)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "wisepdf"
8
- s.version = "1.2.9"
8
+ s.version = "1.2.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Igor Alexandrov"]
12
- s.date = "2013-02-22"
12
+ s.date = "2013-03-11"
13
13
  s.description = "wisepdf uses the shell utility wkhtmltopdf to serve a PDF file to a user from HTML. In other words, rather than dealing with a PDF generation DSL of some sort, you simply write an HTML view as you would normally, and let pdf take care of the hard stuff."
14
14
  s.email = "igor.alexandrov@gmail.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wisepdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.9
4
+ version: 1.2.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-22 00:00:00.000000000 Z
12
+ date: 2013-03-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sqlite3
@@ -201,7 +201,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
201
201
  version: '0'
202
202
  segments:
203
203
  - 0
204
- hash: 3865899014457371657
204
+ hash: -868628363535648497
205
205
  required_rubygems_version: !ruby/object:Gem::Requirement
206
206
  none: false
207
207
  requirements: