hflr 1.5.3 → 1.5.4

Sign up to get free protection for your applications and to get access to all the features.
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.5.3"
5
+ s.version = "1.5.4"
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", "Wade Stebbings"]
@@ -23,7 +23,7 @@ def self.create(record_layouts, record_type_symbols, first_column_location, extr
23
23
  extra_columns = empty_extra_columns(record_layouts.keys) if extra_columns.is_a? Array
24
24
  templates = {}
25
25
  self.check_record_layouts(record_layouts)
26
-
26
+ begin
27
27
  record_layouts.each_pair do |record_type, vars|
28
28
  record_label = record_type_symbols == :none ? :none : record_type_symbols[record_type]
29
29
  templates[record_type] =
@@ -33,6 +33,11 @@ def self.create(record_layouts, record_type_symbols, first_column_location, extr
33
33
  first_column_location,
34
34
  extra_columns[record_type])
35
35
  end
36
+
37
+ rescue Exception=>msg
38
+ raise " Problem building record templates, record types: #{record_type_symbols.inspect} and layouts: #{record_layouts.inspect}, initial exception was #{msg.to_s}"
39
+ end
40
+
36
41
  return templates
37
42
  end
38
43
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hflr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.5.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: