acts_as_pdf 0.1.6 → 0.1.8

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: 07f696acccba5069d6731c64603a9558574bc25d
4
- data.tar.gz: dd2e2b09e636cf7bd159f7aa4df716ef043ccbaa
3
+ metadata.gz: efbe79bd33630df155fe1b5bcfd89a8a391cbba8
4
+ data.tar.gz: cebab696e850ffdd6d6639223068a98806a5bdc6
5
5
  SHA512:
6
- metadata.gz: 0c86878cd3f0af40d38792cf13648b3799ff56777187fd25f46c8fe8fce726bb3dea399bb178cb7d6c88e5ee6d6de2149e92942ddf0e1181202a72a24339829d
7
- data.tar.gz: 283d5e0d4ad9840cc66b1ab11209bdc7779284238c074deb2e4c643b7f58819e53cac18dc01547b3726b3f6f6f3fc3480e812c9dd3696feda3d99db79e488e01
6
+ metadata.gz: a13f463951598559bac7fe74567d4b8645e42efc4c54f1a316dd259cf0aefc4c3417d39af7a7c232b7f40b10bcc790b9bb76aee856bf5730ac81c2d1b39ea63f
7
+ data.tar.gz: 75ffa3127511b2105a5c01dd51192c858d82e7c49ea3646c6b032714875ed24b2f9b7ffe32d9adb9217d2077588ef8b99843ca8ee4b7db4832403b52465f6db8
@@ -1,3 +1,3 @@
1
1
  module ActsAsPdf
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.8'
3
3
  end
data/lib/acts_as_pdf.rb CHANGED
@@ -24,7 +24,7 @@ module ActsAsPdf
24
24
  ::HTML::Pipeline::MarkdownFilter
25
25
  ]
26
26
  result = pipeline.call self.send(ActsAsPdf.pdf_options[self.class.to_s.downcase][:field]).gsub(/[\n|^ ][ |\t]+/){ |m| m.gsub(/ |\t/, '&nbsp;') }.gsub("\n", "<br>")
27
- result[:output].to_s
27
+ result[:output].to_s.gsub(/\"/, "'")
28
28
  end
29
29
 
30
30
  def name_method
@@ -34,7 +34,7 @@ module ActsAsPdf
34
34
  def preview params
35
35
  return self unless params[:preview]
36
36
 
37
- model_name = self.class.to_s.downcase.to_sym
37
+ model_name = self.class.to_s.underscore.to_sym
38
38
  field_name = ActsAsPdf.pdf_options[self.class.to_s.downcase][:field]
39
39
 
40
40
  model = self.class.new
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oren Carta-Lag
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-29 00:00:00.000000000 Z
11
+ date: 2017-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: html-pipeline
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: 2.7.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.7.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: wicked_pdf
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: wkhtmltopdf-binary
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: prawn_rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: Description of ActsAsPdf.
@@ -73,13 +73,13 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - MIT-LICENSE
77
- - README.md
78
- - Rakefile
79
- - lib/acts_as_pdf.rb
80
76
  - lib/acts_as_pdf/version.rb
77
+ - lib/acts_as_pdf.rb
81
78
  - lib/preview_pdf.rb
82
79
  - lib/tasks/acts_as_pdf_tasks.rake
80
+ - MIT-LICENSE
81
+ - Rakefile
82
+ - README.md
83
83
  homepage: http://rubygems.org/gems/acts_as_pdf
84
84
  licenses:
85
85
  - MIT
@@ -90,17 +90,17 @@ require_paths:
90
90
  - lib
91
91
  required_ruby_version: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ">="
93
+ - - '>='
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - ">="
98
+ - - '>='
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
102
  rubyforge_project:
103
- rubygems_version: 2.6.12
103
+ rubygems_version: 2.0.14.1
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: A simple markdown to pdf gem