polyrex 0.7.9 → 0.7.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/polyrex.rb +6 -1
  2. metadata +2 -2
data/lib/polyrex.rb CHANGED
@@ -124,7 +124,12 @@ class Polyrex
124
124
 
125
125
  a.each do |x|
126
126
 
127
- tag_name = @recordx[i].to_s
127
+ unless @recordx[i] then
128
+ @recordx[i] = @recordx[-1].clone
129
+ @format_masks[i] = @format_masks[-1]
130
+ end
131
+
132
+ tag_name = @recordx[i].to_s
128
133
  line = x.shift
129
134
 
130
135
  @field_names = @format_masks[i].to_s.scan(/\[!(\w+)\]/).flatten.map(&:to_sym)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.9
4
+ version: 0.7.10
5
5
  platform: ruby
6
6
  authors: []
7
7
 
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-12-25 00:00:00 +00:00
12
+ date: 2010-12-27 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency