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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- beardley (0.3.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.0.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.5)
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.22)
24
- multi_json (1.7.2)
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)
@@ -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
@@ -3,7 +3,7 @@ module Beardley
3
3
  module VERSION
4
4
  MAJOR = 0
5
5
  MINOR = 4
6
- PATCH = 0
6
+ PATCH = 1
7
7
  PRE = nil
8
8
 
9
9
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join(".")
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.0
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-04-10 00:00:00.000000000 Z
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: