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

enforce new hash syntax by rubocop --only HashSyntax --auto-correct #795

Merged
merged 1 commit into from
Feb 9, 2016

Conversation

tagomoris
Copy link
Member

I did syntax check for all .rb files by find . -name '*.rb' | xargs -n 1 ruby -c

:log => log,
:auto_typecast => @auto_typecast,
log: log,
auto_typecast: @auto_typecast,
Copy link
Contributor

Choose a reason for hiding this comment

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

Breaks align. Is this ok?

Copy link
Member Author

Choose a reason for hiding this comment

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

it has just 2 fields and these are far different from each other. There seems no problem.

@tagomoris
Copy link
Member Author

@repeatedly I'm about to merge this change after confirmation for green. Are you ok?

@repeatedly
Copy link
Member

Dows this syntax work on ruby 1.9?
We sometimes backport master changes to v0.12 and v0.12 should work on ruby 1.9.
I know ruby 1.9 is dead but some users use it on production.

@tagomoris
Copy link
Member Author

It's the new feature for Ruby 1.9.
http://effectif.com/ruby/update-your-project-for-ruby-19-hash-syntax

@repeatedly
Copy link
Member

I see. Okay.

tagomoris added a commit that referenced this pull request Feb 9, 2016
enforce new hash syntax by `rubocop --only HashSyntax --auto-correct`
@tagomoris tagomoris merged commit 27c37ad into master Feb 9, 2016
@tagomoris
Copy link
Member Author

Merged.

cosmo0920 pushed a commit to cosmo0920/fluentd that referenced this pull request Feb 16, 2016
enforce new hash syntax by `rubocop --only HashSyntax --auto-correct`
@repeatedly repeatedly deleted the hash-syntax branch February 16, 2016 08:05
repeatedly added a commit that referenced this pull request Feb 16, 2016
 Back port enforce new hash syntax by `rubocop --only HashSyntax --auto-correct` (#795)
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.

3 participants