flexy-odf-report 0.1.1 → 0.1.2

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.
@@ -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 == :no_render_nil
37
- # Nix
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?
@@ -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.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"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: flexy-odf-report
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Sandro Duarte