See the log below.  Ruby's generator (externalizing iterators) is part of
core ruby and is required just fine in irb.  I can't require it in merb.

Why is a vanilla merb app overriding my require 'path'?

How can I tell merb to require the original generate (without hardcoding a
different path per platform), or see what file merb is actually requiring?

I bet the blame goes partially onto Merb::Generators::Generator.

I hope there's an easy fix for this that's not lame.

-Gary


~> irb
>> Generator
NameError: uninitialized constant Generator
from (irb):1
>> require 'generator'
=> true
>> Generator
=> Generator
>> ^D~> merb-gen app demo
Generating with app generator:
...
~> cd demo
demo> vi config/dependencies.rb  (fix a DM/DO inconsistency on my system)
demo> merb -i
Loading init file from /Users/gyngve/demo/config/init.rb
Loading /Users/gyngve/demo/config/environments/development.rb
 ~ Connecting to database...
 ~ Loaded slice 'MerbAuthSlicePassword' ...
 ~ Parent pid: 93373
 ~ Compiling routes...
 ~ Activating slice 'MerbAuthSlicePassword' ...
irb: warn: can't alias context from irb_context.
>> Generator
NameError: uninitialized constant Generator
from (irb):1
from :0
>> require 'generator'
=> true
>> Generator
NameError: uninitialized constant Generator
from (irb):3
from :0
>> require
'/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/generator'
=> true
>> Generator
=> Generator

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to