Skip to content

Commit

Permalink
Prefer require_relative for loading version.rb in gemspec.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jul 25, 2023
1 parent 66602e5 commit 69726f5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rack-attack.gemspec
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# frozen_string_literal: true

lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'rack/attack/version'
require_relative 'lib/rack/attack/version'

Gem::Specification.new do |s|
s.name = 'rack-attack'
Expand Down

0 comments on commit 69726f5

Please sign in to comment.