Skip to content

Commit

Permalink
Gem release management. (#614)
Browse files Browse the repository at this point in the history
* Use `bake-gem` for release management.

* Prefer `require_relative` for loading `version.rb` in gemspec.
  • Loading branch information
ioquatix authored Jul 26, 2023
1 parent b708de3 commit 02ef216
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
source 'https://rubygems.org'

gemspec

group :maintenance, optional: true do
gem "bake"
gem "bake-gem"
end
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 02ef216

Please sign in to comment.