#179 invalid
Daniel Meyer

'generate resource' fails after updating to 0.30

Reported by Daniel Meyer | March 9th, 2008 @ 09:19 PM

I'm using merb-0.5.3 and was using the 0.25 gem, however I encountered a HABTM issue that prevented saves, and checked out the source for 0.30, patched per the diff below and installed the gem.

remote:associations daniel$ diff has_and_belongs_to_many_association.rb.orig has_and_belongs_to_many_association.rb

231c231

< if dirty?(cleared)

---

if dirty?(cleared.dup)

My original problem was resolved, however now './script/generate resource' is failing as follows:

remote:gazetteer daniel$ ./script/generate resource -t host

/Library/Ruby/Gems/1.8/gems/merb-0.5.3/lib/merb/version.rb:45: warning: already initialized constant RELEASE

Connecting to database...

resource-thost dependency model

exists app/models

identical app/models/host.rb

dependency merb_model_test

can't convert nil into String

(eval):3:in `__send__'

(eval):3:in `destination_path'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/commands.rb:325:in `directory'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/manifest.rb:46:in `send'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/manifest.rb:46:in `send_actions'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/manifest.rb:45:in `each'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/manifest.rb:45:in `send_actions'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/manifest.rb:30:in `replay'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/commands.rb:41:in `invoke!'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/commands.rb:46:in `dependency'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/simple_logger.rb:21:in `call'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/simple_logger.rb:21:in `indent'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/simple_logger.rb:14:in `log'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/simple_logger.rb:41:in `method_missing'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/commands.rb:45:in `dependency'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/manifest.rb:46:in `send'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/manifest.rb:46:in `send_actions'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/manifest.rb:45:in `each'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/manifest.rb:45:in `send_actions'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/manifest.rb:30:in `replay'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/commands.rb:41:in `invoke!'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/commands.rb:46:in `dependency'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/simple_logger.rb:21:in `call'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/simple_logger.rb:21:in `indent'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/simple_logger.rb:14:in `log'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/simple_logger.rb:41:in `method_missing'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/commands.rb:45:in `dependency'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/manifest.rb:46:in `send'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/manifest.rb:46:in `send_actions'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/manifest.rb:45:in `each'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/manifest.rb:45:in `send_actions'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/manifest.rb:30:in `replay'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/commands.rb:41:in `invoke!'

/Library/Ruby/Gems/1.8/gems/rubigen-1.2.4/lib/rubigen/scripts/../scripts.rb:30:in `run'

./script/generate:33

Once the 0.30 gem is removed, the issue goes away. I've tested 0.30 with and without the patch and the same behavior occurs for both. Other generators do not seem to be affected.

Comments and changes to this ticket

  • Dan Kubb (dkubb)
  • Sam Smoot

    Sam Smoot May 21st, 2008 @ 12:07 AM

    • State changed from “new” to “invalid”

    Does not apply to current Merb or DM. Will not fix. Be happy to apply a patch though. Or help out with any DM 0.9.0 questions.

    It's a tough choice, but too much has changed in both to expend the effort. Would be happy to discuss paid support options if this is mission critical however.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages