gedcom 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
 
@@ -55,7 +55,6 @@ lib/parser/instruction.rb
55
55
  lib/parser/parse_state.rb
56
56
  test/ruby_version.rb
57
57
  test/lds_gedcom_test.rb
58
- test/test_gedcom.rb
59
58
  test_data/Document.RTF
60
59
  test_data/Document.tex
61
60
  test_data/ImgFile.BMP
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.1 grammar, and will handle
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
- puts
49
- puts "parse TGC55CLF.ged"
50
- g.file("../test_data/TGC55CLF.ged", "r:ASCII-8BIT") #Ok with CR LF line endings.
51
- g.transmissions[1].summary
52
-
53
-
54
- #print the parsed file to see if it matches the source file.
55
- #Note CONT and CONC breaks may end up in different places
56
- #Note Order of TAGS at the same level may be different
57
- #Note User TAGS are output as Notes.
58
- File.open( "../test_data/TGC551LF.out", "w:ASCII-8BIT") do |file|
59
- file.print g.transmissions[0].to_gedcom
60
- end
61
- File.open( "../test_data/TGC55CLF.out", "w:ASCII-8BIT") do |file|
62
- file.print g.transmissions[1].to_gedcom
63
- end
64
- puts "\nComplete"
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:
@@ -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.1'
67
+ VERSION = '0.9.2'
68
68
  attr_accessor :transmissions
69
69
 
70
70
  def initialize(transmission = nil)
@@ -55,7 +55,7 @@ end
55
55
  # file.print g.transmissions[1].to_gedcom
56
56
  #end
57
57
  puts "\nComplete"
58
- c = Chart.new
58
+ #c = Chart.new
59
59
  #puts c.output_pedigree_name( f, 10, nil, nil, Bit.new, '', '', nil, '', 0 )
60
60
 
61
61
 
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
- hash: 57
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
- date: 2012-09-28 00:00:00 Z
19
- dependencies:
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
- prerelease: false
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
- hash: 19
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
- requirement: &id002 !ruby/object:Gem::Requirement
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
- hash: 5
44
- segments:
45
- - 3
46
- - 1
47
- version: "3.1"
36
+ - !ruby/object:Gem::Version
37
+ version: '3.1'
48
38
  type: :development
49
- version_requirements: *id002
50
- description: |-
51
- A Ruby GEDCOM text file parser and producer, that produces a tree of objects from each of the
52
- GEDCOM file types and subtypes. Understands the full GEDCOM 5.5.1 grammar, and will handle
53
- unknown tags hierarchies as a Note class.
54
- email:
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
- hash: 3
160
- segments:
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
- hash: 3
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 from each of the GEDCOM file types and subtypes
179
- test_files:
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