-
Notifications
You must be signed in to change notification settings - Fork 444
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
# frozen string literal: true #269
Conversation
lib/recaptcha/client_helper.rb
Outdated
@@ -57,9 +61,9 @@ def invisible_recaptcha_tags(options = {}) | |||
end | |||
|
|||
def self.recaptcha_components(options = {}) | |||
html = "" | |||
html = StringIO.new |
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.
should be "".dup
?
.rubocop.yml
Outdated
Include: | ||
- 'Rakefile' | ||
- 'Gemfile' | ||
- 'Rakefile' | ||
Exclude: | ||
- 'vendor/**/*' | ||
- 'demo/**/*' | ||
- 'test/**/*' |
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.
prefer test exclude for only frozen strings formatting, since sanity checks should still run in test folder
module Recaptcha | ||
VERSION = "4.8.0".freeze | ||
VERSION = '4.8.0' |
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.
FYI this makes it un-frozen on <2.3 ... but does not matter much
replaced StringIO by ''.dup
FYI pushed an update to rubocop to display by default and move |
Added the
# frozen_string_literal: true
magic comment for ruby 2.3 and higher