pdf_gem 1.1.0 → 1.1.1

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
  SHA256:
3
- metadata.gz: 82f55cd6cf198ed27cc138949492e9c5ff5d6a5fc8303e846f8c6e424c5ed75e
4
- data.tar.gz: c0245db08984bb5ceda9960a2543bea69c788c6c6669a0b78b7647a16d982984
3
+ metadata.gz: d54ca3662a3eec994cb6db848726b581322d9dc3d59049b463b09faa241dbca2
4
+ data.tar.gz: 6eb2168b46f4a6ac7ce9fe374159254250626e24868ea428d11e7836bea4c152
5
5
  SHA512:
6
- metadata.gz: 5857ff4e1b39e6b6624555fc3c1be761a88615a5a694690b73a95e9f37e76f642d051d7de227d56977d1a84b2eade4bb0cabba9ce70578eb54cff477a8d8b686
7
- data.tar.gz: d614d15897d2b8eb795573fe6606fdc6aeef3aea0414267316d04b28bb2728187513f27acfb8f8b7db8918e6b4436ff1a8a54d898402fb2441379ddb4e57f451
6
+ metadata.gz: 7621b4253713b87a757d95a2f1c6a9b4a3b22c3f4b554a2a955e2ddc16e2acb21cb35e80b459bdaeed4b17dffac3b81404949a25c923d67a1eee8bbc2421039c
7
+ data.tar.gz: effa187152a74ba3e94a6362b600fdb1b793b2c2f0c0da3bc5809c470a4adca16d8cc1b818ef43bba9513adc0929b7d07e576a4a50283b6f203ca13235e73aec
@@ -1,3 +1,3 @@
1
1
  module PdfGem
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
data/lib/pdf_gem.rb CHANGED
@@ -20,7 +20,7 @@ module PdfGem
20
20
  end
21
21
 
22
22
  def self.pdf_from_string(params)
23
- tmp = File.join(File.dirname(__FILE__), 'tmp')
23
+ tmp = File.join('/', 'tmp')
24
24
  Dir.mkdir(tmp) unless File.exist?(tmp)
25
25
  html_file = File.join(tmp, "#{rand(36**40).to_s(36)}.html")
26
26
  File.open(html_file, "w+") do |f|
data/lib/pdf_generator.js CHANGED
@@ -7,7 +7,7 @@ const path = require('path');
7
7
 
8
8
  var stdinBuffer = fs.readFileSync(0);
9
9
 
10
- var tmp = path.join(path.dirname(__filename), 'tmp');
10
+ var tmp = path.join('/', 'tmp');
11
11
 
12
12
  if (!fs.existsSync(tmp)){
13
13
  fs.mkdirSync(tmp);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdf_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Blasina
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-06 00:00:00.000000000 Z
11
+ date: 2022-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -53,9 +53,6 @@ files:
53
53
  - lib/pdf_gem/version.rb
54
54
  - lib/pdf_generator.js
55
55
  - lib/renderer.rb
56
- - lib/tmp/7d5de811543153dac4c2146cdd00647d71bced27665b7463437d2dc30ad6efb08bf5c4625768b483.pdf
57
- - lib/tmp/b3f46a28a790a1b1baa1a8e3ba73e23203f03207d612f861060604b7a6fa4bcb33d1f42058264233.pdf
58
- - lib/tmp/yt2g01tvjh8p6qu2dpk950s443kckym9ke2s6opv.html
59
56
  homepage: https://github.com/blasko03/pdf_gem
60
57
  licenses:
61
58
  - Apache-2.0
@@ -76,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
73
  - !ruby/object:Gem::Version
77
74
  version: '0'
78
75
  requirements: []
79
- rubygems_version: 3.1.2
76
+ rubygems_version: 3.2.16
80
77
  signing_key:
81
78
  specification_version: 4
82
79
  summary: Gem for creating pdf from html
@@ -1,13 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
-
3
- <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4
- <title>Test HTML File</title>
5
-
6
- </head>
7
- <body>
8
-
9
- <p>This is a simple HTML file.</p>
10
-
11
-
12
-
13
- </body></html>