-
Notifications
You must be signed in to change notification settings - Fork 102
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
Load path problem #53
Comments
Yeah, I'm seeing the same issue here with Ruby 1.9.2p290 as well. |
Is this a problem you noticed with the code that GLI generated, or with code Dave On Wed, Oct 26, 2011 at 12:49 PM, Barry Ezell <
|
Ah, I didn't catch the tronification of your name. :0 It's just GLI. The commit "experimentally removing messing with load path" on 10/05/11 seems to have broken app scaffolding. The commit before that is working without error. To reproduce just 'gem install gli' > 'gli scaffold todo new list done' > 'bin/todo new' and it will throw an error due to lib/todo_version.rb not being found. |
Sorry, accidentally closed the issue. |
Ah, OK. I think I might know the problem. I remove the load path stuff, because it's not really needed when you deploy I think the right thing to do is fix the book, but it might make the
I think that will work. Dave On Wed, Oct 26, 2011 at 4:03 PM, Barry Ezell <
|
Try 1.3.5, just released. I put back the load-path stuff. I don't know of a clean way to solve it for now, and it's pretty frustrating for development. Re-open if it's still a problem and thanks for pointing it out! |
Thanks for being quick on the fix for this one. |
Thanks Dave! |
Can you provide some more details? Are you trying to run the .gem file? I Dave Buy My Book: http://www.awesomecommandlineapps.com On Sun, Dec 18, 2011 at 4:52 PM, Matthew Sedlacek <
|
Sorry. Dumb mistake by me. I forgot to add the version file to the s.files in the gem spec. All is well. Thanks for the fast reply though! |
I installed gli to follow along with David Copeland's "Command-Line Apps" book. The example fails with "no such file to load -- todo_version.rb". It works when I change line 4 of bin/todo to...
I verified this behavior on ruby 1.9.2p290 and 1.8.7. I also cloned the repo and did a hard reset to Oct. 5, "updated dep on simplecov", before the load path change and it worked without modification.
Thanks for the great library. I wanted to share in case this is useful.
The text was updated successfully, but these errors were encountered: