-----Messaggio originale-----
Da: Ryan Davis [mailto:ryand-ruby / zenspider.com] 
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:

> Ryan Davis wrote in post #1031481:
>> On Nov 11, 2011, at 08:35 , FraníÐis 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 `<main>': 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.




 
 
 --
 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