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

Shoes::DIR is 'lib', but should be 'lib/..', like Shoes 3 #152

Closed
wasnotrice opened this issue Nov 15, 2012 · 1 comment · Fixed by #153
Closed

Shoes::DIR is 'lib', but should be 'lib/..', like Shoes 3 #152

wasnotrice opened this issue Nov 15, 2012 · 1 comment · Fixed by #153
Labels

Comments

@wasnotrice
Copy link
Member

The main reason for this constant is so we can get assets packaged with Shoes. It works better like this:

"#{Shoes::DIR}/static"

instead of

"#{Shoes::DIR}/../static"

This change will also allow Shoes 3 scripts to run simply by changing DIR to Shoes::DIR. See samples/simple-bounce.rb for a (currently broken) example.

@wasnotrice
Copy link
Member Author

(See #105 for original discussion)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant