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

Bug in the "s.files" glob #3

Merged
4 commits merged into from
Nov 19, 2010
Merged

Bug in the "s.files" glob #3

4 commits merged into from
Nov 19, 2010

Conversation

matthewrudy
Copy link
Contributor

Example:
https://github.com/matthewrudy/i18n_scope/blob/5b55497cc3c15098cc441676b2f18264aa29a251/Rakefile#L61

Dir.glob("{test,lib/*/}")
doesn't pull in the test files

Dir.glob("{test,lib}/*/") is correct

I also took the liberty of removing some method missing magic from the tests.
(notably the spec tests fail, but they did before..)

(use "touch", rather than a method missing hack, to specific directory contents)
{test,lib}/**/*
not {test,lib/**/*}
@matthewrudy
Copy link
Contributor Author

unless your plan was to ignore the test dirs...
but I don't think the code makes that clear.

@lazyatom
Copy link
Owner

Spot on - good catch. I've merged this along with some other fixes in 232dbc9, and pushed a new gem to rubygems.org

@matthewrudy
Copy link
Contributor Author

cool, thanks James.
the spec tests now work after your changes.

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

Successfully merging this pull request may close these issues.

2 participants