wicked_pdf 1.0.5 → 1.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: 47fe2d6d38cc265b92a54aaba23756bd4ecfcf30
4
- data.tar.gz: 914991dd1656d0fb326ebf2e38a8f013ce8357b4
3
+ metadata.gz: c95f5e0cfe79095b9afde68450e7c5a4ffa8e003
4
+ data.tar.gz: 778a71b7ca2186a1dbd2bc3082f2687880143252
5
5
  SHA512:
6
- metadata.gz: 166e1621757930e9ac10846569c28cc6e215eb4e81f2a8280789f9b2ffa8ba4d4a7fc53140f898dcb591c0890561e25e5f996af5c1f70a0ff81e4625a565ab7b
7
- data.tar.gz: 58c3dfe3876a9941da002de9aca24283a217ebbc1da024f1caef83c92a9c1be845186382a2e7955d539c3e1bde73486219dd66eab26bf16d61be3c053365f119
6
+ metadata.gz: 76fe365657188e7e7b37ab1bdfec591d4908309e0322b38817ebe4f678aac81b4301ce65d2ff4c4cb6ab1fbb8b6cba12a389763980431534493dff446b76ef40
7
+ data.tar.gz: 3b5be736f73b1a217725cb1e0bcb21b40daae9f721f57f284590dc593930e5312fef134093414b4f7c9166798ca3f50f52da8b29c244c75fcb9816b18e95b4b7
@@ -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.5...HEAD](https://github.com/mileszs/wicked_pdf/compare/1.0.5...HEAD)
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)
@@ -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(' ').map { |part| part.shellescape }
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.shellescape]
169
+ ["--#{name.tr('_', '-')}", value.to_s]
171
170
  end
172
171
  end
173
172
 
@@ -1,3 +1,3 @@
1
1
  class WickedPdf
2
- VERSION = '1.0.5'.freeze
2
+ VERSION = '1.0.6'.freeze
3
3
  end
@@ -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.5
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-03-28 00:00:00.000000000 Z
11
+ date: 2016-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails