style: attempt to improve gemspec legibility

This commit is contained in:
Gonzalo Rodriguez 2019-08-02 12:12:39 -03:00
parent d508e21483
commit 9d2e66e4eb
No known key found for this signature in database
GPG key ID: 5DB8B81B049B8AB1
2 changed files with 12 additions and 3 deletions

View file

@ -52,6 +52,9 @@ Style/ConditionalAssignment:
Style/Encoding:
Enabled: true
Style/ExpandPathArguments:
Enabled: true
Style/EmptyMethod:
Enabled: true
@ -81,3 +84,9 @@ Style/Semicolon:
Style/SingleLineMethods:
Enabled: true
Style/SpecialGlobalVars:
Enabled: true
Style/UnneededPercentQ:
Enabled: true

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'rack/attack/version'
@ -18,7 +18,7 @@ Gem::Specification.new do |s|
s.homepage = 'https://github.com/kickstarter/rack-attack'
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.summary = %q{Block & throttle abusive requests}
s.summary = 'Block & throttle abusive requests'
s.test_files = Dir.glob("spec/**/*")
s.metadata = {