gedcom 0.9.2 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,11 @@
1
- #!/usr/bin/env ruby
1
+ #!/usr/local/bin/ruby
2
+ ##!/usr/bin/ruby1.8
2
3
  #Or 1.9 version at
3
4
  #!/usr/local/bin/ruby
4
- require '../lib/gedcom.rb'
5
- require 'ruby_version.rb'
6
-
7
-
5
+ require 'rubygems'
6
+ require '../pkg/gedcom-0.9.3/lib/gedcom.rb'
7
+ require 'versioncheck'
8
8
 
9
- puts RubyVersion.to_s
10
9
 
11
10
  #Parses the LDS GEDCOM test files and them dumps them back out as GEDCOM.
12
11
  #This allows me to test for errors in parsing and output. The two files will
@@ -14,7 +13,7 @@ puts RubyVersion.to_s
14
13
  #and user defined tags will get converted to NOTES.
15
14
 
16
15
  puts "parse TGC551LF.ged"
17
- if RubyVersion.have_at_least_version?(1,9)
16
+ if VersionCheck.rubyversion.have_at_least_version?(1,9)
18
17
  g = Gedcom.file("../test_data/TGC551LF.ged", "r:ASCII-8BIT") #OK with LF line endings.
19
18
  else
20
19
  g = Gedcom.file("../test_data/TGC551LF.ged", "r") #OK with LF line endings.
@@ -41,7 +40,7 @@ puts
41
40
  #Note CONT and CONC breaks may end up in different places
42
41
  #Note Order of TAGS at the same level may be different
43
42
  #Note User TAGS are output as Notes.
44
- if RubyVersion.have_at_least_version?(1,9)
43
+ if VersionCheck.rubyversion.have_at_least_version?(1,9)
45
44
  File.open( "../test_data/TGC551LF.out", "w:ASCII-8BIT") do |file|
46
45
  file.print g.transmissions[0].to_gedcom
47
46
  end
data/test/ruby_version.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ #RubyVersion provides checking for the running Ruby interpreter version
4
+ #Superceded by the VersionCheck gem
5
+
3
6
  class RubyVersion
4
7
  #self.have_version tests that the versien of RUBY is the one we want.
5
8
  def self.have_version?(major, minor, update = nil, build = nil)
data/test/test_gedcom.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require "test/unit"
2
2
  require "parser.rb"
3
3
 
4
+ #TestGedcom is work in progress for automated testing after a build.
4
5
  class TestGedcom < Test::Unit::TestCase
5
6
  def test_sanity
6
7
  end
@@ -18,6 +18,8 @@
18
18
  2 DATA Name of source data
19
19
  3 DATE 1 JAN 1998
20
20
  3 COPR Copyright of source data
21
+ 4 CONT Test of Gedcom 5.5.1 CONT in COPR
22
+ 4 CONC and Test of Gedcom 5.5.1 CONC in COPR
21
23
  1 SUBM @SUBMITTER@
22
24
  1 SUBN @SUBMISSION@
23
25
  1 _HME @PERSON1@
@@ -1426,6 +1428,12 @@
1426
1428
  2 FORM jpeg
1427
1429
  2 NOTE @N14@
1428
1430
  2 FILE ImgFile.JPG
1431
+ 1 OBJE
1432
+ 2 TITL JPEG image file link 2
1433
+ 2 FILE ImgFile2.JPG
1434
+ 3 FORM jpeg
1435
+ 4 MEDI Film
1436
+ 2 NOTE TEST of MEDI in OBJE in GED 5.5.1
1429
1437
  1 REFN User Reference Number
1430
1438
  2 TYPE User Reference Type
1431
1439
  1 RIN 1
@@ -2159,4 +2167,11 @@
2159
2167
  1 CHAN
2160
2168
  2 DATE 14 Jan 2001
2161
2169
  3 TIME 14:10:31
2170
+ 0 @M2@ OBJE
2171
+ 1 FILE http://www.somewhere.com/file.jpg
2172
+ 2 FORM jpg
2173
+ 3 TYPE WWW
2174
+ 2 TITL The picture
2175
+ 1 NOTE New Gedcom 5.5.1 file reference Multimedia record format
2176
+ 1 SOUR This great web page.
2162
2177
  0 TRLR
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gedcom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-04 00:00:00.000000000 Z
12
+ date: 2013-01-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
@@ -105,6 +105,14 @@ files:
105
105
  - lib/gedcom/transmission.rb
106
106
  - lib/gedcom/transmission_base.rb
107
107
  - lib/gedcom/xref.rb
108
+ - lib/gedcom/multimedia_file_record.rb
109
+ - lib/gedcom/multimedia_format_record.rb
110
+ - lib/gedcom/placename_map_record.rb
111
+ - lib/gedcom/placename_phonetic_record.rb
112
+ - lib/gedcom/placename_romanized_record.rb
113
+ - lib/gedcom/name_phonetic_record.rb
114
+ - lib/gedcom/name_romanized_record.rb
115
+ - lib/gedcom/copyright_record.rb
108
116
  - lib/gedcom.rb
109
117
  - lib/parser/class_tracker.rb
110
118
  - lib/parser/ged_line.rb