mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
style: attempt to improve gemspec legibility
This commit is contained in:
parent
d508e21483
commit
9d2e66e4eb
2 changed files with 12 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue