hflr 1.2.5 → 1.2.6

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/hflr.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{hflr}
5
- s.version = "1.2.5"
5
+ s.version = "1.2.6"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Colin Davis"]
@@ -124,7 +124,11 @@ def self.create_template_class(record_type, record_type_label, layout, first_col
124
124
  begin
125
125
  fields << right_format(record[i], width)
126
126
  rescue Exception=>msg
127
+ if record.is_a?(Struct)
127
128
  raise "Output format problem for #{record.members[i].to_s} #{msg.to_s}"
129
+ else
130
+ raise "Output format problem for column #{i.to_s} with value #{record[i].to_s} #{msg.to_s}"
131
+ end
128
132
  end
129
133
  end
130
134
  return fields
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: hflr
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.2.5
5
+ version: 1.2.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Colin Davis