flexy-odf-report 0.4.2 → 0.4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,12 +16,13 @@ module ODFReport
16
16
  cell = block1.call(data_item) || ''
17
17
  fields_with_values[field_name] = cell unless !force_fill_with_empty_string && (cell.nil? || cell.strip.blank?) && @skip_empty_rows
18
18
  end
19
- if row.empty?
19
+ if fields_with_values.empty?
20
20
  break
21
21
  else
22
- # If - finally - the row is *not* empty all template variables in
23
- # all empty cells must be replaced by the empty string. Otherwise
24
- # the template variable is rendered ("[some-template-var]")...
22
+ # If - finally - the row (that is, all cells) is *not* empty, all
23
+ # template variables in all empty cells must be replaced by the
24
+ # empty string. Otherwise the template variable is rendered
25
+ # ("[some-template-var]")...
25
26
  force_fill_with_empty_string = true
26
27
  end
27
28
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{flexy-odf-report}
5
- s.version = "0.4.2"
5
+ s.version = "0.4.2.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Sandro Duarte"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexy-odf-report
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-10-04 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubyzip
16
- requirement: &70232150011140 !ruby/object:Gem::Requirement
16
+ requirement: &70342779042580 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -24,10 +24,10 @@ dependencies:
24
24
  version: 0.9.4
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *70232150011140
27
+ version_requirements: *70342779042580
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: nokogiri
30
- requirement: &70232150010300 !ruby/object:Gem::Requirement
30
+ requirement: &70342779041680 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
33
  - - ! '>='
@@ -38,7 +38,7 @@ dependencies:
38
38
  version: 1.5.0
39
39
  type: :runtime
40
40
  prerelease: false
41
- version_requirements: *70232150010300
41
+ version_requirements: *70342779041680
42
42
  description: ! 'Generates ODF files, given a template (.odt) and data, replacing tags.
43
43
  Matches Sandro''s version 0.4.1 but adds support for automatic omitting of empty
44
44
  table rows. '