beardley 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/beardley.rb +11 -13
- 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: 824a9d8ed5e910165e1d4eb44d408859eafe188b
|
4
|
+
data.tar.gz: 3c3a85e52fe14eab16313ae3b7ea4022c02cdb8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5f3936989a8d1ebddf63582be36bdd5e5aa83c9131e039d0966830235ecb7fafb9b26bd130acc168013b3aacd6872c231e83a4241a3a880fcbaab02425cf4cb
|
7
|
+
data.tar.gz: 7d8e9daa3c3df57e2cebd138914fae4099663108f81ac5ef216680694e196c9eeac28aa86a14e3baaa485c73c2d515266e750188ba9f4c5d5fd368b2c48d5dd7
|
data/lib/beardley.rb
CHANGED
@@ -25,7 +25,7 @@ require 'beardley/version'
|
|
25
25
|
require 'pathname'
|
26
26
|
require 'digest'
|
27
27
|
require 'rjb'
|
28
|
-
require 'rjb-loader'
|
28
|
+
require 'rjb-loader'
|
29
29
|
|
30
30
|
module Beardley
|
31
31
|
class << self
|
@@ -53,20 +53,18 @@ module Beardley
|
|
53
53
|
xlsx: 'net.sf.jasperreports.engine.export.ooxml.JRXlsxExporter'
|
54
54
|
}
|
55
55
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
config.classpath << File::PATH_SEPARATOR + File.expand_path(path)
|
60
|
-
end
|
56
|
+
RjbLoader.before_load do |config|
|
57
|
+
Dir[Pathname.new(__FILE__).dirname.join('..', 'vendor', 'java', '*.jar')].each do |path|
|
58
|
+
config.classpath << File::PATH_SEPARATOR + File.expand_path(path)
|
61
59
|
end
|
60
|
+
end
|
62
61
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
end
|
62
|
+
RjbLoader.after_load do |_config|
|
63
|
+
_Locale = Rjb.import('java.util.Locale')
|
64
|
+
Beardley.config[:report_params]['REPORT_LOCALE'] = _Locale.new('en', 'US')
|
65
|
+
Beardley.config[:report_params]['XML_LOCALE'] = _Locale.new('en', 'US')
|
66
|
+
Beardley.config[:report_params]['XML_DATE_PATTERN'] = "yyyy-MM-dd'T'HH:mm:ss"
|
67
|
+
Beardley.config[:report_params]['XML_NUMBER_PATTERN'] = '###0.00'
|
70
68
|
end
|
71
69
|
|
72
70
|
autoload :Report, 'beardley/report'
|
data/lib/beardley/version.rb
CHANGED