dti_nitf 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
data/dti_nitf.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dti_nitf}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mark Turner"]
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
35
35
  s.homepage = %q{http://github.com/amerine/dti_nitf}
36
36
  s.rdoc_options = ["--charset=UTF-8"]
37
37
  s.require_paths = ["lib"]
38
- s.rubygems_version = %q{1.3.5}
38
+ s.rubygems_version = %q{1.3.6}
39
39
  s.summary = %q{Process DTI's XML export into valid NITF documents or Story & Media objects}
40
40
  s.test_files = [
41
41
  "test/helper.rb",
data/lib/dti_nitf.rb CHANGED
@@ -3,7 +3,9 @@ dir = File.dirname(__FILE__)
3
3
  require File.join(dir, 'dti_nitf/nitf')
4
4
  require File.join(dir, 'dti_nitf/story')
5
5
 
6
- #file_contents = File.read('/tmp/02/CORREX 021410.xml')
7
- #story = DTI::Story.new(file_contents)
8
-
9
- #pp story
6
+ # require 'pp'
7
+ #
8
+ # file_contents = File.read('/tmp/02/a1furn 020810.xml')
9
+ # story = DTI::Story.new(file_contents)
10
+ #
11
+ # pp story
@@ -35,11 +35,11 @@ module DTI
35
35
  self.body = fix_quotes(self.body)
36
36
 
37
37
  if !self.correction?
38
- self.byline = doc_body["body.head"]["byline"]["person"].gsub!(/^By\s/, '').rstrip!
39
- self.paper = doc_body["body.head"]["byline"]["byttl"].rstrip!
40
- self.hl1 = doc_body["body.head"]["hedline"]["hl1"].to_s.rstrip
41
- self.hl2 = doc_body["body.head"]["hedline"]["hl2"].to_s.lstrip.rstrip
42
- self.tagline = doc_body["body.end"]["tagline"].to_s.lstrip.rstrip
38
+ self.byline = doc_body["body.head"]["byline"]["person"].gsub!(/^By\s/, '').rstrip if doc_body["body.head"]["byline"]
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
+ self.hl2 = doc_body["body.head"]["hedline"]["hl2"].to_s.lstrip.rstrip if doc_body["body.head"]["hedline"]
42
+ self.tagline = doc_body["body.end"]["tagline"].to_s.lstrip.rstrip if doc_body["body.end"]
43
43
  end
44
44
  end
45
45
 
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dti_nitf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 1
9
+ version: 0.2.1
5
10
  platform: ruby
6
11
  authors:
7
12
  - Mark Turner
@@ -14,24 +19,30 @@ default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: thoughtbot-shoulda
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
23
29
  version: "0"
24
- version:
30
+ type: :development
31
+ version_requirements: *id001
25
32
  - !ruby/object:Gem::Dependency
26
33
  name: crack
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
34
+ prerelease: false
35
+ requirement: &id002 !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - ">="
32
38
  - !ruby/object:Gem::Version
39
+ segments:
40
+ - 0
41
+ - 1
42
+ - 6
33
43
  version: 0.1.6
34
- version:
44
+ type: :runtime
45
+ version_requirements: *id002
35
46
  description: Helps you processes the 'XML' (Quotes intentional) from DTI's XML export into valid NITF documents or Story & Media objects
36
47
  email: mark@amerine.net
37
48
  executables: []
@@ -69,18 +80,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
69
80
  requirements:
70
81
  - - ">="
71
82
  - !ruby/object:Gem::Version
83
+ segments:
84
+ - 0
72
85
  version: "0"
73
- version:
74
86
  required_rubygems_version: !ruby/object:Gem::Requirement
75
87
  requirements:
76
88
  - - ">="
77
89
  - !ruby/object:Gem::Version
90
+ segments:
91
+ - 0
78
92
  version: "0"
79
- version:
80
93
  requirements: []
81
94
 
82
95
  rubyforge_project:
83
- rubygems_version: 1.3.5
96
+ rubygems_version: 1.3.6
84
97
  signing_key:
85
98
  specification_version: 3
86
99
  summary: Process DTI's XML export into valid NITF documents or Story & Media objects