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

# frozen string literal: true #269

Merged
merged 7 commits into from
Apr 17, 2018
Merged

# frozen string literal: true #269

merged 7 commits into from
Apr 17, 2018

Conversation

ericproulx
Copy link
Contributor

Added the # frozen_string_literal: true magic comment for ruby 2.3 and higher

@@ -57,9 +61,9 @@ def invisible_recaptcha_tags(options = {})
end

def self.recaptcha_components(options = {})
html = ""
html = StringIO.new
Copy link
Collaborator

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/**/*'
Copy link
Collaborator

@grosser grosser Apr 17, 2018

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'
Copy link
Collaborator

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

@grosser grosser merged commit c1dfc9e into ambethia:master Apr 17, 2018
@grosser
Copy link
Collaborator

grosser commented Apr 17, 2018

FYI pushed an update to rubocop to display by default and move All to the top

@ericproulx ericproulx deleted the frozen_string_literal branch April 17, 2018 04:05
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