dti_nitf 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/dti_nitf.gemspec +1 -1
- data/lib/dti_nitf/story.rb +4 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/dti_nitf.gemspec
CHANGED
data/lib/dti_nitf/story.rb
CHANGED
@@ -37,8 +37,10 @@ module DTI
|
|
37
37
|
if !self.correction?
|
38
38
|
self.byline = doc_body["body.head"]["byline"]["person"].gsub!(/^By\s/, '').rstrip if doc_body["body.head"]["byline"]
|
39
39
|
self.paper = doc_body["body.head"]["byline"]["byttl"].rstrip if doc_body["body.head"]["byline"]
|
40
|
-
self.hl1 = doc_body["body.head"]["hedline"]["hl1"].to_s.rstrip if doc_body["body.head"]["hedline"]
|
41
|
-
|
40
|
+
self.hl1 = doc_body["body.head"]["hedline"]["hl1"].to_s.rstrip if doc_body["body.head"]["hedline"]
|
41
|
+
if doc_body["body.head"]["hedline"] && doc_body["body.head"]["hedline"]["hl2"]
|
42
|
+
self.hl2 = doc_body["body.head"]["hedline"]["hl2"].to_s.lstrip.rstrip
|
43
|
+
end
|
42
44
|
self.tagline = doc_body["body.end"]["tagline"].to_s.lstrip.rstrip if doc_body["body.end"]
|
43
45
|
end
|
44
46
|
end
|