gedcom 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +1 -0
- data/Manifest.txt +0 -1
- data/README.txt +25 -23
- data/lib/gedcom.rb +2 -2
- data/test/lds_gedcom_test.rb +1 -1
- metadata +52 -66
data/History.txt
CHANGED
@@ -6,5 +6,6 @@
|
|
6
6
|
Checks the gedcom file FAMC, FAMS, HUSB, WIFE, CHIL and SUBM xrefs resolve to valid records.
|
7
7
|
Required adding IndividualRecord.child? and IndividualRecord.spouse? for tests.
|
8
8
|
Fixed bug in IndividualRecord.spouses and IndividualRecord.parents_family as neither worked and were used by tests.
|
9
|
+
* Removed 'require chart.rb' which was left in production code by mistake
|
9
10
|
|
10
11
|
|
data/Manifest.txt
CHANGED
data/README.txt
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
== DESCRIPTION:
|
6
6
|
|
7
7
|
A Ruby GEDCOM text file parser and producer, that produces a tree of objects from each of the
|
8
|
-
GEDCOM file types and subtypes. Understands the full GEDCOM 5.5
|
8
|
+
GEDCOM file types and subtypes. Understands the full GEDCOM 5.5 grammar, and will handle
|
9
9
|
unknown tags hierarchies as a Note class.
|
10
10
|
|
11
11
|
|
@@ -40,28 +40,30 @@ unknown tags hierarchies as a Note class.
|
|
40
40
|
|
41
41
|
== SYNOPSIS:
|
42
42
|
|
43
|
-
require 'gedcom'
|
44
|
-
|
45
|
-
puts "parse TGC551LF.ged"
|
46
|
-
g = Gedcom.file("../test_data/TGC551LF.ged", "r:ASCII-8BIT") #OK with LF line endings.
|
47
|
-
g.transmissions[0].summary
|
48
|
-
|
49
|
-
puts
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
#
|
55
|
-
|
56
|
-
#
|
57
|
-
#Note
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
43
|
+
require 'gedcom'
|
44
|
+
|
45
|
+
puts "parse TGC551LF.ged"
|
46
|
+
g = Gedcom.file("../test_data/TGC551LF.ged", "r:ASCII-8BIT") #OK with LF line endings.
|
47
|
+
g.transmissions[0].summary
|
48
|
+
g.transmission[0].self_check #validate the gedcom file just loaded, printing errors found.
|
49
|
+
puts
|
50
|
+
|
51
|
+
puts "parse TGC55CLF.ged"
|
52
|
+
g.file("../test_data/TGC55CLF.ged", "r:ASCII-8BIT") #Ok with CR LF line endings.
|
53
|
+
g.transmissions[1].summary #Prints numbers of each level 1 record type found.
|
54
|
+
g.transmission[1].self_check #validate the gedcom file just loaded, printing errors found.
|
55
|
+
|
56
|
+
#print the parsed file to see if it matches the source file.
|
57
|
+
#Note CONT and CONC breaks may end up in different places
|
58
|
+
#Note Order of TAGS at the same level may be different
|
59
|
+
#Note User TAGS are output as Notes.
|
60
|
+
File.open( "../test_data/TGC551LF.out", "w:ASCII-8BIT") do |file|
|
61
|
+
file.print g.transmissions[0].to_gedcom
|
62
|
+
end
|
63
|
+
File.open( "../test_data/TGC55CLF.out", "w:ASCII-8BIT") do |file|
|
64
|
+
file.print g.transmissions[1].to_gedcom
|
65
|
+
end
|
66
|
+
puts "\nComplete"
|
65
67
|
|
66
68
|
|
67
69
|
== REQUIREMENTS:
|
data/lib/gedcom.rb
CHANGED
@@ -61,10 +61,10 @@ $: << "#{path(__FILE__)}parser"
|
|
61
61
|
$: << "#{path(__FILE__)}chart"
|
62
62
|
|
63
63
|
require 'gedcom_parser.rb'
|
64
|
-
require 'chart.rb'
|
64
|
+
#require 'chart.rb'
|
65
65
|
|
66
66
|
class Gedcom
|
67
|
-
VERSION = '0.9.
|
67
|
+
VERSION = '0.9.2'
|
68
68
|
attr_accessor :transmissions
|
69
69
|
|
70
70
|
def initialize(transmission = nil)
|
data/test/lds_gedcom_test.rb
CHANGED
metadata
CHANGED
@@ -1,68 +1,61 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: gedcom
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.2
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 9
|
9
|
-
- 1
|
10
|
-
version: 0.9.1
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Rob Burrowes
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-01-04 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: rdoc
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
18
|
+
requirements:
|
26
19
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 3
|
31
|
-
- 10
|
32
|
-
version: "3.10"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '3.10'
|
33
22
|
type: :development
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: hoe
|
37
23
|
prerelease: false
|
38
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.10'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: hoe
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
39
33
|
none: false
|
40
|
-
requirements:
|
34
|
+
requirements:
|
41
35
|
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
segments:
|
45
|
-
- 3
|
46
|
-
- 1
|
47
|
-
version: "3.1"
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '3.1'
|
48
38
|
type: :development
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '3.1'
|
46
|
+
description: ! "A Ruby GEDCOM text file parser and producer, that produces a tree
|
47
|
+
of objects from each of the\nGEDCOM file types and subtypes. Understands the full
|
48
|
+
GEDCOM 5.5 grammar, and will handle \nunknown tags hierarchies as a Note class."
|
49
|
+
email:
|
55
50
|
- r.burrowes@auckland.ac.nz
|
56
51
|
executables: []
|
57
|
-
|
58
52
|
extensions: []
|
59
|
-
|
60
|
-
extra_rdoc_files:
|
53
|
+
extra_rdoc_files:
|
61
54
|
- History.txt
|
62
55
|
- Manifest.txt
|
63
56
|
- README.txt
|
64
57
|
- test_data/README.txt
|
65
|
-
files:
|
58
|
+
files:
|
66
59
|
- History.txt
|
67
60
|
- Manifest.txt
|
68
61
|
- README.txt
|
@@ -120,7 +113,6 @@ files:
|
|
120
113
|
- lib/parser/parse_state.rb
|
121
114
|
- test/ruby_version.rb
|
122
115
|
- test/lds_gedcom_test.rb
|
123
|
-
- test/test_gedcom.rb
|
124
116
|
- test_data/Document.RTF
|
125
117
|
- test_data/Document.tex
|
126
118
|
- test_data/ImgFile.BMP
|
@@ -141,41 +133,35 @@ files:
|
|
141
133
|
- test_data/force.wav
|
142
134
|
- test_data/suntun.mov
|
143
135
|
- test_data/top.mpg
|
136
|
+
- test/test_gedcom.rb
|
144
137
|
- .gemtest
|
145
138
|
homepage: http://rubyforge.org/projects/gedcom/
|
146
139
|
licenses: []
|
147
|
-
|
148
140
|
post_install_message:
|
149
|
-
rdoc_options:
|
141
|
+
rdoc_options:
|
150
142
|
- --main
|
151
143
|
- README.txt
|
152
|
-
require_paths:
|
144
|
+
require_paths:
|
153
145
|
- lib
|
154
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
146
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
155
147
|
none: false
|
156
|
-
requirements:
|
157
|
-
- -
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
|
160
|
-
|
161
|
-
- 0
|
162
|
-
version: "0"
|
163
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ! '>='
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
153
|
none: false
|
165
|
-
requirements:
|
166
|
-
- -
|
167
|
-
- !ruby/object:Gem::Version
|
168
|
-
|
169
|
-
segments:
|
170
|
-
- 0
|
171
|
-
version: "0"
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
172
158
|
requirements: []
|
173
|
-
|
174
159
|
rubyforge_project: gedcom
|
175
160
|
rubygems_version: 1.8.24
|
176
161
|
signing_key:
|
177
162
|
specification_version: 3
|
178
|
-
summary: A Ruby GEDCOM text file parser and producer, that produces a tree of objects
|
179
|
-
|
163
|
+
summary: A Ruby GEDCOM text file parser and producer, that produces a tree of objects
|
164
|
+
from each of the GEDCOM file types and subtypes
|
165
|
+
test_files:
|
180
166
|
- test/test_gedcom.rb
|
181
167
|
- test/lds_gedcom_test.rb
|