wicked_pdf 1.0.5 → 1.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/CHANGELOG.md +6 -1
- data/lib/wicked_pdf.rb +2 -3
- data/lib/wicked_pdf/version.rb +1 -1
- data/test/unit/wicked_pdf_test.rb +0 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c95f5e0cfe79095b9afde68450e7c5a4ffa8e003
|
|
4
|
+
data.tar.gz: 778a71b7ca2186a1dbd2bc3082f2687880143252
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76fe365657188e7e7b37ab1bdfec591d4908309e0322b38817ebe4f678aac81b4301ce65d2ff4c4cb6ab1fbb8b6cba12a389763980431534493dff446b76ef40
|
|
7
|
+
data.tar.gz: 3b5be736f73b1a217725cb1e0bcb21b40daae9f721f57f284590dc593930e5312fef134093414b4f7c9166798ca3f50f52da8b29c244c75fcb9816b18e95b4b7
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
4
|
|
|
5
|
+
## [1.0.6] - 2016-04-04
|
|
6
|
+
### Changed
|
|
7
|
+
- Revert shellescaping of options. The fix was causing more issues than it solved (like "[page] of [topage]" being escaped, and thus not parsed by `wkhtmltopdf`). See #514 for details.
|
|
8
|
+
|
|
5
9
|
## [1.0.5] - 2016-03-28
|
|
6
10
|
### Changed
|
|
7
11
|
- Numerous RuboCop style violation fixes, spelling errors, and test-setup issues from [indyrb.org](http://indyrb.org/) hack night. Thank you all for your contributions!
|
|
@@ -65,7 +69,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
65
69
|
- Asset helpers no longer add a file extension if it already is specified with one
|
|
66
70
|
|
|
67
71
|
# Compare Releases
|
|
68
|
-
- [1.0.
|
|
72
|
+
- [1.0.6...HEAD](https://github.com/mileszs/wicked_pdf/compare/1.0.6...HEAD)
|
|
73
|
+
- [1.0.5...1.0.6](https://github.com/mileszs/wicked_pdf/compare/1.0.5...1.0.6)
|
|
69
74
|
- [1.0.4...1.0.5](https://github.com/mileszs/wicked_pdf/compare/1.0.4...1.0.5)
|
|
70
75
|
- [1.0.3...1.0.4](https://github.com/mileszs/wicked_pdf/compare/1.0.3...1.0.4)
|
|
71
76
|
- [1.0.2...1.0.3](https://github.com/mileszs/wicked_pdf/compare/1.0.2...1.0.3)
|
data/lib/wicked_pdf.rb
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
require 'logger'
|
|
5
5
|
require 'digest/md5'
|
|
6
6
|
require 'rbconfig'
|
|
7
|
-
require 'shellwords'
|
|
8
7
|
|
|
9
8
|
if (RbConfig::CONFIG['target_os'] =~ /mswin|mingw/) && (RUBY_VERSION < '1.9')
|
|
10
9
|
require 'win32/open3'
|
|
@@ -162,12 +161,12 @@ class WickedPdf
|
|
|
162
161
|
return value.collect { |v| make_option(name, v, type) }
|
|
163
162
|
end
|
|
164
163
|
if type == :name_value
|
|
165
|
-
parts = value.to_s.split(' ')
|
|
164
|
+
parts = value.to_s.split(' ')
|
|
166
165
|
["--#{name.tr('_', '-')}", *parts]
|
|
167
166
|
elsif type == :boolean
|
|
168
167
|
["--#{name.tr('_', '-')}"]
|
|
169
168
|
else
|
|
170
|
-
["--#{name.tr('_', '-')}", value.to_s
|
|
169
|
+
["--#{name.tr('_', '-')}", value.to_s]
|
|
171
170
|
end
|
|
172
171
|
end
|
|
173
172
|
|
data/lib/wicked_pdf/version.rb
CHANGED
|
@@ -218,9 +218,4 @@ class WickedPdfTest < ActiveSupport::TestCase
|
|
|
218
218
|
cover_option = @wp.get_valid_option('cover')
|
|
219
219
|
assert_equal @wp.get_parsed_options(options), "--disable-javascript --header-center 3 #{cover_option} http://example.org"
|
|
220
220
|
end
|
|
221
|
-
|
|
222
|
-
test 'options are shellescaped' do
|
|
223
|
-
options = { :header => { :left => "That's crazy" } }
|
|
224
|
-
assert_equal "--header-left That\\'s\\ crazy", @wp.get_parsed_options(options)
|
|
225
|
-
end
|
|
226
221
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wicked_pdf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Miles Z. Sterrett
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-04-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|