-
Notifications
You must be signed in to change notification settings - Fork 69
Fix file permissions instead of just checking them. #35
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
Fix file permissions instead of just checking them. #35
Conversation
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
608496a to
4a98122
Compare
|
CLAs look good, thanks! |
862491b to
acf32ba
Compare
acf32ba to
8282535
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ![]()
| files = [ | ||
| 'lib/fluent/plugin/exception_detector.rb', | ||
| 'lib/fluent/plugin/out_detect_exceptions.rb' | ||
| ].flat_map do |file| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This flat_map seems to be an no-op? It's equivalent to:
files = [
'lib/fluent/plugin/exception_detector.rb',
'lib/fluent/plugin/out_detect_exceptions.rb'
]
Right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a good pattern to have in case we decide to add wildcards to the list of files (and it's consistent with fluent-plugin-google-cloud/Rakefile). But I'll leave it up to you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want a wild card, we can change it to:
files = [
'lib/fluent/plugin/*.rb'
].flat_map do |file|
file.include?('*') ? Dir.glob(file) : [file]
end
The way it is right now is a bit confusing to read.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, the gemspec uses a wildcard to select the files to package, so your suggestion makes sense. Let's go with that, then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
8c188d5 to
7540461
Compare
|
CLAs look good, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
This doesn't appear to be working in 0.0.11: |
i need this fix for issue #32