beardley 1.2.0 → 1.3.0

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: b446dc165844d5b27f173ea1d8b0439ca6102ff1
4
- data.tar.gz: 5abd6b917d01c4037c8478bd8538f5d51d74dc95
3
+ metadata.gz: 5fb39c7d9e87727cb784ba5a0aa657a958d2dea5
4
+ data.tar.gz: 2afddcefe455d1d62763c475115f3636be3916c9
5
5
  SHA512:
6
- metadata.gz: cdb2889df179f5475f6c38f9336e26283dc4f463e474db938fbb52a977e3688fc9ebb9ec207943739413ab930ea734dd8ebf4b59bd447e1219b0314e5b4edac7
7
- data.tar.gz: 776875b7058b3e79d6c96a9cc2ba7a099e42bbe20f02ff1fcbc68cbf9dbeaab27f6bf94d787c5d8159715e121130b8c83074c965d31e03dd41d572952aa81886
6
+ metadata.gz: a64f8932195186124df96d11742b8cc257212368d20d2c67f89ef3eaca05f21bd2dd15d2299023e1009143d279a6ff86892ba1f05b32e46b2fd8286cd84020ad
7
+ data.tar.gz: a2a7af806fac157475365bb2e16c83d10e7f195fbba48cf6c62778334cb1b3fbca5b019ef4acce62ec30a2f89f7154f043712c6c8aa6e2941e193d0b0c5ef06a
@@ -41,6 +41,11 @@ module Beardley
41
41
  f.write(report)
42
42
  end
43
43
  end
44
+ if locale = options.delete(:locale)
45
+ locale_parts = locale.split("-")[0..2]
46
+ _Locale = Rjb::import('java.util.Locale')
47
+ @parameters["REPORT_LOCALE"] = _Locale.new(*locale_parts)
48
+ end
44
49
  @object_file ||= @source_file.dirname.join(@source_file.basename.to_s + ".jasper")
45
50
  unless @object_file.is_a?(Pathname)
46
51
  raise ArgumentError, "An object must be given at least"
@@ -1,7 +1,7 @@
1
1
  module Beardley
2
2
  module VERSION
3
3
  MAJOR = 1
4
- MINOR = 2
4
+ MINOR = 3
5
5
  PATCH = 0
6
6
  PRE = nil
7
7
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beardley
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brice Texier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-11 00:00:00.000000000 Z
11
+ date: 2015-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rjb
@@ -138,3 +138,4 @@ signing_key:
138
138
  specification_version: 4
139
139
  summary: JasperReports integration
140
140
  test_files: []
141
+ has_rdoc: