Gem release management. (#614)

* Use `bake-gem` for release management.

* Prefer `require_relative` for loading `version.rb` in gemspec.
This commit is contained in:
Samuel Williams 2023-07-26 16:37:35 +12:00 committed by GitHub
parent b708de32f3
commit 02ef216788
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -3,3 +3,8 @@
source 'https://rubygems.org'
gemspec
group :maintenance, optional: true do
gem "bake"
gem "bake-gem"
end

View file

@ -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'