beardley 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 +4 -4
- data/lib/beardley/report.rb +2 -2
- data/lib/beardley/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c3aeef01dd90ceea08aa06b038fd097c45c2abc
|
4
|
+
data.tar.gz: 60ca844ad8342083adf97c5138ab51ed19bff017
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fb50b5f96132879069d5c63320507d0d83315b60f597cc9222442ca24b76cbc13da8e6bd6ab8619e425165cf4e608c75cb840eb1d34d38423353f420eedec1a
|
7
|
+
data.tar.gz: 4b9b8511f074ce44d395477d7fffd060ae2d9eeefb13ea1bfa153662a8cd90b3abfd57ad636895f3561443d7989dd4fcf3a6de360f5603bd421d00110ac9ebb6
|
data/lib/beardley/report.rb
CHANGED
@@ -89,17 +89,17 @@ module Beardley
|
|
89
89
|
if format == :pdf
|
90
90
|
_JasperPrint = Rjb::import('net.sf.jasperreports.engine.JasperPrint')
|
91
91
|
_JasperExportManager = Rjb::import('net.sf.jasperreports.engine.JasperExportManager')
|
92
|
-
|
92
|
+
_JasperExportManager._invoke('exportReportToPdfFile', 'Lnet.sf.jasperreports.engine.JasperPrint;Ljava.lang.String;', prepare(datasource), Rjb::import('java.lang.String').new(path.to_s))
|
93
93
|
elsif Beardley.exporters[format]
|
94
94
|
exporter = Beardley.with_warnings { Rjb::import(Beardley.exporters[format]) }.new
|
95
95
|
_JRExporterParameter = Rjb::import('net.sf.jasperreports.engine.JRExporterParameter')
|
96
96
|
exporter.setParameter(_JRExporterParameter.JASPER_PRINT, prepare(datasource))
|
97
97
|
exporter.setParameter(_JRExporterParameter.OUTPUT_FILE_NAME, path.to_s)
|
98
98
|
exporter.exportReport
|
99
|
-
return path
|
100
99
|
else
|
101
100
|
raise "Invalid export format: #{format.inspect}"
|
102
101
|
end
|
102
|
+
return path
|
103
103
|
end
|
104
104
|
|
105
105
|
|
data/lib/beardley/version.rb
CHANGED