openils-mapper 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/edi/mapper.rb +3 -1
- data/lib/openils/mapper.rb +1 -1
- metadata +4 -4
data/lib/edi/mapper.rb
CHANGED
@@ -205,7 +205,9 @@ module EDI::E
|
|
205
205
|
|
206
206
|
private
|
207
207
|
def add_segment(seg_name, value)
|
208
|
-
if seg_name =~ /^[
|
208
|
+
if seg_name =~ /^SG[0-9]+$/
|
209
|
+
value.each { |v| self.add(*v) }
|
210
|
+
elsif seg_name =~ /^[A-Z]{3}$/
|
209
211
|
if seg_name !~ /^UN[HT]$/
|
210
212
|
seg = @message.new_segment(seg_name)
|
211
213
|
@message.add(seg)
|
data/lib/openils/mapper.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openils-mapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 61
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 3
|
10
|
+
version: 0.9.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael B. Klein
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-07-
|
18
|
+
date: 2010-07-09 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|