I was able to implement a hack:
# if module has no name, try to parse out a namespace from #insepct.
# (yes, this is a hack!)
unless parent
if name.nil?
if /#<Class:(.*?)>/ =~ self.inspect
parent = Object.const_get($1) rescue nil
end
end
end
That seems to do the trick for loading, but for some reason I get an even
odder error:
/home/trans/.gem/ruby/1.9.3/gems/bundler-1.2.3/lib/bundler/dsl.rb:128:in
`initialize': wrong number of arguments(1 for 0) (ArgumentError)
/home/trans/.gem/ruby/1.9.3/gems/bundler-1.2.3/lib/bundler/dsl.rb:128:in
`new'
/home/trans/.gem/ruby/1.9.3/gems/bundler-1.2.3/lib/bundler/dsl.rb:128:in
`path'
/home/trans/.gem/ruby/1.9.3/gems/bundler-1.2.3/lib/bundler/dsl.rb:244:in
`block in _normalize_options'
/home/trans/.gem/ruby/1.9.3/gems/bundler-1.2.3/lib/bundler/dsl.rb:237:in
`each'
/home/trans/.gem/ruby/1.9.3/gems/bundler-1.2.3/lib/bundler/dsl.rb:237:in
`_normalize_options'
/home/trans/.gem/ruby/1.9.3/gems/bundler-1.2.3/lib/bundler/dsl.rb:70:in
`gem'
/home/trans/.gem/ruby/1.9.3/gems/bundler-1.2.3/lib/bundler/dsl.rb:49:in
`gemspec'
/home/rubyworks/Projects/all/autoload/Gemfile:2:in `eval_gemfile'
Note the Gemfile is jsut the typical `source :rubygems; gemspec`.
-- You received this message because you are subscribed to the Google Groups
ruby-talk-google 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 https://groups.google.com/d/forum/ruby-talk-google?hl=en