flexy-odf-report 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/odf-report/table.rb +2 -2
- data/odf-report.gemspec +1 -1
- metadata +1 -1
data/lib/odf-report/table.rb
CHANGED
@@ -33,8 +33,8 @@ class Table
|
|
33
33
|
def add_column_if(condition, name, field=nil, &block)
|
34
34
|
if condition
|
35
35
|
# Only render the column if condition holds true...
|
36
|
-
if field.nil? && condition == :
|
37
|
-
#
|
36
|
+
if (field.nil? || field.strip.blank?) && condition == :skip_blank_fields
|
37
|
+
# Do nothing!
|
38
38
|
elsif field
|
39
39
|
@fields[name] = lambda { |item| item.send(field)}
|
40
40
|
elsif block_given?
|
data/odf-report.gemspec
CHANGED
@@ -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.1.
|
5
|
+
s.version = "0.1.2"
|
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", "Mark von Zeschau"]
|