acts_as_flying_saucer 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown
CHANGED
@@ -3,7 +3,7 @@ acts\_as\_flying\_saucer
|
|
3
3
|
|
4
4
|
acts\_as\_flying\_saucer is a library that allows to save rendered views as pdf documents using the [Flying Saucer][1] java library.
|
5
5
|
|
6
|
-
[1]: https://
|
6
|
+
[1]: https://code.google.com/p/flying-saucer/
|
7
7
|
|
8
8
|
Install
|
9
9
|
-------
|
@@ -116,6 +116,7 @@ Sinatra
|
|
116
116
|
end
|
117
117
|
Ruby
|
118
118
|
----
|
119
|
+
require 'digest/sha1'
|
119
120
|
class Pdf
|
120
121
|
include ActsAsFlyingSaucer::Controller
|
121
122
|
acts_as_flying_saucer
|
@@ -21,7 +21,7 @@ module ActsAsFlyingSaucer
|
|
21
21
|
if options[:nailgun]
|
22
22
|
command = "#{Nailgun::NgCommand::NGPATH} --nailgun-server #{ActsAsFlyingSaucer::Config.options[:nailgun_host]} --nailgun-port #{ ActsAsFlyingSaucer::Config.options[:nailgun_port]} Xhtml2Pdf #{options[:input_file]} #{options[:output_file]}"
|
23
23
|
else
|
24
|
-
command = "#{options[:java_bin]} -
|
24
|
+
command = "#{options[:java_bin]} -Xmx#{options[:max_memory_mb]}m -Djava.awt.headless=true -cp #{class_path} acts_as_flying_saucer.Xhtml2Pdf #{options[:input_file]} #{options[:output_file]}"
|
25
25
|
end
|
26
26
|
system(command)
|
27
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_flying_saucer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-04-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nailgun
|
@@ -86,9 +86,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
88
88
|
rubyforge_project: acts_as_flying_saucer
|
89
|
-
rubygems_version: 1.8.
|
89
|
+
rubygems_version: 1.8.24
|
90
90
|
signing_key:
|
91
91
|
specification_version: 3
|
92
92
|
summary: XHTML to PDF using Flying Saucer java library
|
93
93
|
test_files: []
|
94
|
-
has_rdoc:
|