I''m a Ruby/Rails newbie. I''ve just created my first Ruby gem called GameFake. It''s like Faker for video games. Anyway, the gem works great in the irb. But when I fire up the Rails console (./script/console) and try to require ''gamefake'', I get all kinds of syntax errors. Once again, the code works great in the Ruby console. The gem can be found here: http://github.com/cbmeeks/gamefake/tree/master (sorry, not trying to do a shameless plug). The actual syntax error is in the middle of the "SMS_Games" array. I''ve looked over this array a million times. It''s large but should be ok. Any suggestions on what I''m doing wrong? Thanks for any help! PS, anyone else type Ryby a million times when they are trying to type Ruby? lol -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
The only thing that jumped out at me with that were the missing characters - so for instance, the accented e in Asterix doesn''t show up correctly on github. Without a listing of the ''all kinds of syntax errors'', it''s hard to tell. BTW, for storing arrays like this, Yaml might be more efficient... --Matt Jones On Feb 8, 10:22 am, Cb Meeks <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I''m a Ruby/Rails newbie. > > I''ve just created my first Ruby gem called GameFake. It''s like Faker > for video games. > > Anyway, the gem works great in the irb. But when I fire up the Rails > console (./script/console) and try to require ''gamefake'', I get all > kinds of syntax errors. > > Once again, the code works great in the Ruby console. > > The gem can be found here:http://github.com/cbmeeks/gamefake/tree/master > > (sorry, not trying to do a shameless plug). > > The actual syntax error is in the middle of the "SMS_Games" array. I''ve > looked over this array a million times. It''s large but should be ok. > > Any suggestions on what I''m doing wrong? > > Thanks for any help! > > PS, anyone else type Ryby a million times when they are trying to type > Ruby? lol > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Matt Jones wrote:> The only thing that jumped out at me with that were the missing > characters - so for instance, > the accented e in Asterix doesn''t show up correctly on github. Without > a listing of the ''all > kinds of syntax errors'', it''s hard to tell. > > BTW, for storing arrays like this, Yaml might be more efficient... > > --Matt JonesThat''s a good point. I loaded the array into komoto edit but never noticed the accent marks. I will scan the list more thoroughly for things like that. Oh, and good idea on the Yaml tip! Thanks!! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---