beardley 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +5 -5
- data/lib/beardley/report.rb +4 -1
- data/lib/beardley/version.rb +1 -1
- metadata +2 -3
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
beardley (0.
|
4
|
+
beardley (0.4.1)
|
5
5
|
beardley-barcode (>= 0.0.1)
|
6
6
|
beardley-core (>= 5.0.0)
|
7
7
|
beardley-groovy (>= 1.7.5)
|
@@ -11,17 +11,17 @@ GEM
|
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
13
|
beardley-barcode (0.0.1)
|
14
|
-
beardley-core (5.0.
|
14
|
+
beardley-core (5.0.4.0)
|
15
15
|
beardley-groovy (1.7.5.1)
|
16
16
|
colorize (0.5.8)
|
17
|
-
coveralls (0.6.
|
17
|
+
coveralls (0.6.7)
|
18
18
|
colorize
|
19
19
|
multi_json (~> 1.3)
|
20
20
|
rest-client
|
21
21
|
simplecov (>= 0.7)
|
22
22
|
thor
|
23
|
-
mime-types (1.
|
24
|
-
multi_json (1.7.
|
23
|
+
mime-types (1.23)
|
24
|
+
multi_json (1.7.6)
|
25
25
|
rake (10.0.4)
|
26
26
|
rest-client (1.6.7)
|
27
27
|
mime-types (>= 1.16)
|
data/lib/beardley/report.rb
CHANGED
@@ -32,7 +32,7 @@ module Beardley
|
|
32
32
|
@parameters = options.delete(:report) || {}
|
33
33
|
@source_file, @object_file = nil, nil
|
34
34
|
if report.is_a?(Pathname)
|
35
|
-
@source_file = report if report.extname.downcase == ".jrxml"
|
35
|
+
@source_file = report if report.extname.downcase == ".jrxml" or report.extname.downcase == ".xml"
|
36
36
|
@object_file = report if report.extname.downcase == ".jasper"
|
37
37
|
elsif report.is_a?(String)
|
38
38
|
hash = Digest::SHA256.hexdigest(report)
|
@@ -77,6 +77,9 @@ module Beardley
|
|
77
77
|
return to(:xlsx, *args)
|
78
78
|
end
|
79
79
|
|
80
|
+
# XLS and RTF are not suitable anymore
|
81
|
+
# NOTE: JasperReports can not produce DOC files
|
82
|
+
|
80
83
|
private
|
81
84
|
|
82
85
|
# Generic method to export to some format like ODT and DOCX
|
data/lib/beardley/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beardley
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
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: 2013-
|
12
|
+
date: 2013-06-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rjb
|
@@ -169,4 +169,3 @@ signing_key:
|
|
169
169
|
specification_version: 3
|
170
170
|
summary: JasperReports integration
|
171
171
|
test_files: []
|
172
|
-
has_rdoc:
|