Skip to content

Conversation

@mobilesfinks
Copy link
Contributor

i need this fix for issue #32

@googlebot
Copy link

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.
In order to pass this check, please resolve this problem and have the pull request author add another comment and the bot will run again. If the bot doesn't comment, it means it doesn't think anything has changed.

@mobilesfinks mobilesfinks force-pushed the fix_file_permissions branch from 608496a to 4a98122 Compare April 19, 2018 10:58
@googlebot
Copy link

CLAs look good, thanks!

@mobilesfinks mobilesfinks force-pushed the fix_file_permissions branch 2 times, most recently from 862491b to acf32ba Compare April 19, 2018 11:08
Copy link
Contributor

@igorpeshansky igorpeshansky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

files = [
'lib/fluent/plugin/exception_detector.rb',
'lib/fluent/plugin/out_detect_exceptions.rb'
].flat_map do |file|
Copy link
Contributor

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?

Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed

@googlebot
Copy link

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.
In order to pass this check, please resolve this problem and have the pull request author add another comment and the bot will run again. If the bot doesn't comment, it means it doesn't think anything has changed.

@mobilesfinks mobilesfinks force-pushed the fix_file_permissions branch from 8c188d5 to 7540461 Compare April 23, 2018 14:23
@googlebot
Copy link

CLAs look good, thanks!

Copy link
Contributor

@qingling128 qingling128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@qingling128 qingling128 merged commit 143a998 into GoogleCloudPlatform:master Apr 23, 2018
@mobilesfinks mobilesfinks deleted the fix_file_permissions branch April 26, 2018 08:03
@tomelliff
Copy link

This doesn't appear to be working in 0.0.11:

/ # gem list

*** LOCAL GEMS ***

cool.io (1.5.3)
dig_rb (1.0.1)
elasticsearch (6.0.2)
elasticsearch-api (6.0.2)
elasticsearch-transport (6.0.2)
excon (0.62.0)
faraday (0.15.1)
fluent-plugin-detect-exceptions (0.0.11)
fluent-plugin-elasticsearch (2.10.1)
fluentd (1.1.3)
http_parser.rb (0.6.0)
json (2.1.0)
msgpack (1.2.4)
multi_json (1.13.1)
multipart-post (2.0.0)
oj (3.3.10)
openssl (default: 2.0.7)
psych (default: 2.2.2)
serverengine (2.0.6)
sigdump (0.2.4)
strptime (0.2.3)
thread_safe (0.3.6)
tzinfo (1.2.5)
tzinfo-data (1.2018.4)
yajl-ruby (1.3.1)
/ # ls -la /usr/lib/ruby/gems/2.4.0/gems/fluent-plugin-detect-exceptions-0.0.11/lib/fluent/plugin/
total 28
drwxr-xr-x    2 root     root          4096 May 15 17:47 .
drwxr-xr-x    3 root     root          4096 May 15 17:47 ..
-rw-r-----    1 root     root         11514 May 15 17:47 exception_detector.rb
-rw-r--r--    1 root     root          4449 May 15 17:47 out_detect_exceptions.rb

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.

5 participants