pdfkit 0.8.0 → 0.8.7.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pdfkit might be problematic. Click here for more details.
- checksums.yaml +5 -5
- data/.github/workflows/release-drafter.yml +19 -0
- data/.github/workflows/stale.yml +19 -0
- data/.github/workflows/test.yml +59 -0
- data/.ruby-version +1 -1
- data/.travis.yml +42 -8
- data/CHANGELOG.md +71 -1
- data/Gemfile +1 -1
- data/README.md +36 -10
- data/lib/pdfkit/configuration.rb +38 -3
- data/lib/pdfkit/html_preprocessor.rb +25 -0
- data/lib/pdfkit/middleware.rb +53 -43
- data/lib/pdfkit/os.rb +21 -0
- data/lib/pdfkit/pdfkit.rb +55 -96
- data/lib/pdfkit/source.rb +36 -7
- data/lib/pdfkit/version.rb +3 -1
- data/lib/pdfkit/wkhtmltopdf.rb +82 -0
- data/lib/pdfkit.rb +6 -0
- data/pdfkit.gemspec +9 -7
- data/spec/configuration_spec.rb +85 -12
- data/spec/html_preprocessor_spec.rb +71 -0
- data/spec/middleware_spec.rb +240 -107
- data/spec/os_spec.rb +67 -0
- data/spec/pdfkit_spec.rb +132 -52
- data/spec/source_spec.rb +67 -13
- data/spec/spec_helper.rb +5 -1
- metadata +45 -48
metadata
CHANGED
@@ -1,112 +1,98 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdfkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jared Pace
|
8
8
|
- Relevance
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-10-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 4.1.11
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 4.1.11
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: mocha
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 0.9.10
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: 0.9.10
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rack-test
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: 0.5.6
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 0.5.6
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: i18n
|
58
|
-
requirement: !ruby/object:Gem::Requirement
|
59
|
-
requirements:
|
60
|
-
- - ~>
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: 0.6.11
|
63
|
-
type: :development
|
64
|
-
prerelease: false
|
65
|
-
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - ~>
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 0.6.11
|
70
56
|
- !ruby/object:Gem::Dependency
|
71
57
|
name: rake
|
72
58
|
requirement: !ruby/object:Gem::Requirement
|
73
59
|
requirements:
|
74
|
-
- -
|
60
|
+
- - ">="
|
75
61
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
62
|
+
version: 12.3.3
|
77
63
|
type: :development
|
78
64
|
prerelease: false
|
79
65
|
version_requirements: !ruby/object:Gem::Requirement
|
80
66
|
requirements:
|
81
|
-
- -
|
67
|
+
- - ">="
|
82
68
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
69
|
+
version: 12.3.3
|
84
70
|
- !ruby/object:Gem::Dependency
|
85
71
|
name: rdoc
|
86
72
|
requirement: !ruby/object:Gem::Requirement
|
87
73
|
requirements:
|
88
|
-
- -
|
74
|
+
- - ">="
|
89
75
|
- !ruby/object:Gem::Version
|
90
76
|
version: 4.0.1
|
91
77
|
type: :development
|
92
78
|
prerelease: false
|
93
79
|
version_requirements: !ruby/object:Gem::Requirement
|
94
80
|
requirements:
|
95
|
-
- -
|
81
|
+
- - ">="
|
96
82
|
- !ruby/object:Gem::Version
|
97
83
|
version: 4.0.1
|
98
84
|
- !ruby/object:Gem::Dependency
|
99
85
|
name: rspec
|
100
86
|
requirement: !ruby/object:Gem::Requirement
|
101
87
|
requirements:
|
102
|
-
- - ~>
|
88
|
+
- - "~>"
|
103
89
|
- !ruby/object:Gem::Version
|
104
90
|
version: '3.0'
|
105
91
|
type: :development
|
106
92
|
prerelease: false
|
107
93
|
version_requirements: !ruby/object:Gem::Requirement
|
108
94
|
requirements:
|
109
|
-
- - ~>
|
95
|
+
- - "~>"
|
110
96
|
- !ruby/object:Gem::Version
|
111
97
|
version: '3.0'
|
112
98
|
description: Uses wkhtmltopdf to create PDFs using HTML
|
@@ -116,12 +102,15 @@ executables: []
|
|
116
102
|
extensions: []
|
117
103
|
extra_rdoc_files: []
|
118
104
|
files:
|
119
|
-
- .document
|
120
|
-
- .
|
121
|
-
- .
|
122
|
-
- .
|
123
|
-
- .
|
124
|
-
- .
|
105
|
+
- ".document"
|
106
|
+
- ".github/workflows/release-drafter.yml"
|
107
|
+
- ".github/workflows/stale.yml"
|
108
|
+
- ".github/workflows/test.yml"
|
109
|
+
- ".gitignore"
|
110
|
+
- ".rspec"
|
111
|
+
- ".ruby-gemset"
|
112
|
+
- ".ruby-version"
|
113
|
+
- ".travis.yml"
|
125
114
|
- CHANGELOG.md
|
126
115
|
- Gemfile
|
127
116
|
- LICENSE
|
@@ -130,40 +119,46 @@ files:
|
|
130
119
|
- Rakefile
|
131
120
|
- lib/pdfkit.rb
|
132
121
|
- lib/pdfkit/configuration.rb
|
122
|
+
- lib/pdfkit/html_preprocessor.rb
|
133
123
|
- lib/pdfkit/middleware.rb
|
124
|
+
- lib/pdfkit/os.rb
|
134
125
|
- lib/pdfkit/pdfkit.rb
|
135
126
|
- lib/pdfkit/source.rb
|
136
127
|
- lib/pdfkit/version.rb
|
128
|
+
- lib/pdfkit/wkhtmltopdf.rb
|
137
129
|
- pdfkit.gemspec
|
138
130
|
- spec/configuration_spec.rb
|
139
131
|
- spec/fixtures/example.css
|
140
132
|
- spec/fixtures/example.html
|
141
133
|
- spec/fixtures/example_with_hex_symbol.css
|
134
|
+
- spec/html_preprocessor_spec.rb
|
142
135
|
- spec/middleware_spec.rb
|
136
|
+
- spec/os_spec.rb
|
143
137
|
- spec/pdfkit_spec.rb
|
144
138
|
- spec/source_spec.rb
|
145
139
|
- spec/spec_helper.rb
|
146
140
|
homepage: https://github.com/pdfkit/pdfkit
|
147
|
-
licenses:
|
141
|
+
licenses:
|
142
|
+
- MIT
|
148
143
|
metadata: {}
|
149
|
-
post_install_message:
|
144
|
+
post_install_message:
|
150
145
|
rdoc_options: []
|
151
146
|
require_paths:
|
152
147
|
- lib
|
153
148
|
required_ruby_version: !ruby/object:Gem::Requirement
|
154
149
|
requirements:
|
155
|
-
- -
|
150
|
+
- - ">="
|
156
151
|
- !ruby/object:Gem::Version
|
157
|
-
version: '
|
152
|
+
version: '2.5'
|
158
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
154
|
requirements:
|
160
|
-
- -
|
155
|
+
- - ">="
|
161
156
|
- !ruby/object:Gem::Version
|
162
157
|
version: '0'
|
163
|
-
requirements:
|
164
|
-
|
165
|
-
rubygems_version:
|
166
|
-
signing_key:
|
158
|
+
requirements:
|
159
|
+
- wkhtmltopdf
|
160
|
+
rubygems_version: 3.0.3.1
|
161
|
+
signing_key:
|
167
162
|
specification_version: 4
|
168
163
|
summary: HTML+CSS -> PDF
|
169
164
|
test_files:
|
@@ -171,7 +166,9 @@ test_files:
|
|
171
166
|
- spec/fixtures/example.css
|
172
167
|
- spec/fixtures/example.html
|
173
168
|
- spec/fixtures/example_with_hex_symbol.css
|
169
|
+
- spec/html_preprocessor_spec.rb
|
174
170
|
- spec/middleware_spec.rb
|
171
|
+
- spec/os_spec.rb
|
175
172
|
- spec/pdfkit_spec.rb
|
176
173
|
- spec/source_spec.rb
|
177
174
|
- spec/spec_helper.rb
|