Beginner: how to use gedcom parser

Hi,

I am beginner with Ruby and I would like to use gedcom parser.
First, I install it with gem install gedcom.
The documentation is not very useful for me since I don’t where to
begin.
I tried examples from
https://github.com/jslade/gedcom-ruby/tree/master/samples but theses two
samples don’t work.
Does anyone could give me a simple example to start?

Thank you very much
François

On Nov 11, 2011, at 08:35 , François Boone wrote:

I am beginner with Ruby and I would like to use gedcom parser.
First, I install it with gem install gedcom.
The documentation is not very useful for me since I don’t where to
begin.
I tried examples from
https://github.com/jslade/gedcom-ruby/tree/master/samples but theses two
samples don’t work.
Does anyone could give me a simple example to start?

I usually look at the tests. A quick glance at tests/parser_spec.rb
seems to have some usable examples.

Ryan D. wrote in post #1031481:

On Nov 11, 2011, at 08:35 , François Boone wrote:

I usually look at the tests. A quick glance at tests/parser_spec.rb
seems to have some usable examples.

Thank you Ryan for your hint.
However, it doesn’t work

What I did:
I installed gedcom gem with: gem install gedcom
All seems ok

I use Ruby:
$ruby --version
ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-darwin10.2.0]

I try date_spec.rb: (from tests/date_spec.rb)
$ ruby date_spec.rb

and I get
date_spec.rb:2:in `’: uninitialized constant GEDCOM (NameError)

Do I miss something? What don’t I understand?
I am sorry if these questions are too basic.

Thank you for replies.
François

On Nov 12, 2011, at 09:15 , François Boone wrote:

I installed gedcom gem with: gem install gedcom
date_spec.rb:2:in `’: uninitialized constant GEDCOM (NameError)

Do I miss something? What don’t I understand?
I am sorry if these questions are too basic.

My guess is that you need to be in the root directory of the project and
type ‘rake’. Let the rakefile take care of pathing and how to run the
spec.

That said, I was suggesting that you READ the specs so you can
understand how the code is to be used.

-----Messaggio originale-----
Da: François Boone [mailto:[email protected]]
Inviato: venerd 11 novembre 2011 17:35
A: ruby-talk ML
Oggetto: Beginner: how to use gedcom parser

Hi,

I am beginner with Ruby and I would like to use gedcom parser.
First, I install it with gem install gedcom.
The documentation is not very useful for me since I don’t where to
begin.
I tried examples from
https://github.com/jslade/gedcom-ruby/tree/master/samples but theses two
samples don’t work.
Does anyone could give me a simple example to start?

Thank you very much
Franois


Posted via http://www.ruby-forum.com/.


Caselle da 1GB, trasmetti allegati fino a 3GB e in piu’ IMAP, POP3 e
SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f

Sponsor:
Conto Arancio al 4,20%. Soldi sempre disponibili, zero spese, aprilo in
due minuti!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid923&d)-12

-----Messaggio originale-----
Da: Ryan D. [mailto:[email protected]]
Inviato: domenica 13 novembre 2011 04:11
A: ruby-talk ML
Oggetto: Re: Beginner: how to use gedcom parser

On Nov 12, 2011, at 09:15 , François Boone wrote:

I installed gedcom gem with: gem install gedcom All seems ok
Do I miss something? What don’t I understand?
I am sorry if these questions are too basic.

My guess is that you need to be in the root directory of the project and
type ‘rake’. Let the rakefile take care of pathing and how to run the
spec.

That said, I was suggesting that you READ the specs so you can
understand
how the code is to be used.


Caselle da 1GB, trasmetti allegati fino a 3GB e in piu’ IMAP, POP3 e
SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f

Sponsor:
Riccione Hotel 3 stelle in centro: Pacchetto Capodanno mezza pensione,
animazione bimbi, zona relax, parcheggio. Scopri l’offerta solo per
oggi…
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid983&d)-12

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs