Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generator fails with Active Fedora 10.1.0 #30

Closed
jonathandixon opened this issue Aug 1, 2016 · 5 comments
Closed

Generator fails with Active Fedora 10.1.0 #30

jonathandixon opened this issue Aug 1, 2016 · 5 comments
Labels

Comments

@jonathandixon
Copy link

Running rails generate active_fedora:noid:install results in the following error:

[WARNING] Could not load generator "generators/active_fedora/noid/install_generator". Error: undefined method `expand_path' for ActiveFedora::File:Class.
/Users/dixonj16/.rvm/gems/ruby-2.3.0/gems/active_fedora-noid-2.0.0.beta1/lib/generators/active_fedora/noid/install_generator.rb:4:in `<class:InstallGenerator>'
/Users/dixonj16/.rvm/gems/ruby-2.3.0/gems/active_fedora-noid-2.0.0.beta1/lib/generators/active_fedora/noid/install_generator.rb:3:in `<module:Noid>'

This can be reproduced by creating a new rails app and adding the following gems.

gem 'active_fedora-noid', '2.0.0.beta1'
gem 'active-fedora', '10.1.0'
@mjgiarlo
Copy link
Member

mjgiarlo commented Aug 1, 2016

@jonathandixon I added a commit to master that may help you here. Try it out?

Thanks for reporting this. Also, do note that the 2.0.0.beta1 release has other known bugs, such as #29. Until that issue is resolved, YMMV with the beta release; you may want to stick with an earlier release.

@jonathandixon
Copy link
Author

@mjgiarlo Thanks!

The same issue pops up in generators/active_fedora/noid/seed_generator.

mjgiarlo added a commit that referenced this issue Aug 2, 2016
@mjgiarlo
Copy link
Member

mjgiarlo commented Aug 2, 2016

@jonathandixon OK, try again. ;) I don't see any other references to File in the generators. Let's see where that gets you. If that doesn't sort you out, you may want to use a 1.x version of the gem until we spruce up the beta.

@jonathandixon
Copy link
Author

Thanks, the generator now completes without error.

@mjgiarlo
Copy link
Member

mjgiarlo commented Aug 2, 2016

Most excellent. I'll close this issue, but feel free to create others if you run into anything else.

@mjgiarlo mjgiarlo closed this as completed Aug 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants