Merge pull request #653 from Shopify/fix-rubocop-offenses

Fix offenses from the new version of rubocop.
This commit is contained in:
Dylan Thacker-Smith
2015-09-25 19:48:09 -04:00
9 changed files with 19 additions and 17 deletions
+3 -1
View File
@@ -118,6 +118,8 @@ Style/ClassVars:
Style/PerlBackrefs: Style/PerlBackrefs:
Enabled: false Enabled: false
Style/TrivialAccessors:
AllowPredicates: true
Style/WordArray: Style/WordArray:
Enabled: false Enabled: false
+1 -1
View File
@@ -6,7 +6,7 @@ gem 'stackprof', platforms: :mri_21
group :test do group :test do
gem 'spy', '0.4.1' gem 'spy', '0.4.1'
gem 'benchmark-ips' gem 'benchmark-ips'
gem 'rubocop', '>=0.32.0' gem 'rubocop', '0.34.2'
platform :mri do platform :mri do
gem 'liquid-c', github: 'Shopify/liquid-c', ref: '2570693d8d03faa0df9160ec74348a7149436df3' gem 'liquid-c', github: 'Shopify/liquid-c', ref: '2570693d8d03faa0df9160ec74348a7149436df3'
+1 -1
View File
@@ -42,7 +42,7 @@ module Liquid
end end
def url_encode(input) def url_encode(input)
CGI.escape(input) rescue input CGI.escape(input) unless input.nil?
end end
def slice(input, offset, length = nil) def slice(input, offset, length = nil)