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.
- data/lib/odf-report/nested.rb +5 -4
- data/odf-report.gemspec +1 -1
- metadata +5 -5
data/lib/odf-report/nested.rb
CHANGED
@@ -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
|
19
|
+
if fields_with_values.empty?
|
20
20
|
break
|
21
21
|
else
|
22
|
-
# If - finally - the row is *not* empty all
|
23
|
-
# all empty cells must be replaced by the
|
24
|
-
# the template variable is rendered
|
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
|
data/odf-report.gemspec
CHANGED
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: &
|
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: *
|
27
|
+
version_requirements: *70342779042580
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: nokogiri
|
30
|
-
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: *
|
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. '
|