rubocop --auto-correct

This commit is contained in:
Gonzalo Rodriguez 2018-06-29 15:41:36 -03:00
parent e50bfbebaa
commit b40b5718dc
No known key found for this signature in database
GPG key ID: 5DB8B81B049B8AB1
3 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
# This file was generated by Appraisal
source "https://rubygems.org"

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'delegate'
module Rack
@ -16,7 +18,7 @@ module Rack
get(key)
end
def write(key, value, options={})
def write(key, value, options = {})
if (expires_in = options[:expires_in])
setex(key, expires_in, value)
else
@ -24,7 +26,7 @@ module Rack
end
end
def increment(key, amount, options={})
def increment(key, amount, options = {})
count = nil
pipelined do
@ -35,7 +37,7 @@ module Rack
count.value if count
end
def delete(key, options={})
def delete(key, _options = {})
del(key)
end
end

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require_relative "../../spec_helper"
if defined?(::Redis)