Skip to content

Commit

Permalink
Require Ruby 3.1+, bump version to 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dentarg committed Jul 31, 2024
1 parent 09c1d6d commit c6f7e3d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 28 deletions.
24 changes: 3 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,13 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04 ]
ruby: [ 1.9, '2.0', 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, '3.0', 3.1, 3.2, 3.3, ruby-head, jruby, truffleruby ]
os: [ ubuntu-latest ]
ruby: [ 3.1, 3.2, 3.3, ruby-head, jruby, truffleruby ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

- name: Install Ruby 1.9
if: matrix.ruby == '1.9'
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}

# Ruby 1.9 comes with RubyGems 1.8.23.2 but arbitrary metadata support in
# gemspec was added in RubyGems 2.0.0.
# RubyGems 2.7.11 is the last version to support Ruby 1.9.
- name: Update RubyGems for Ruby 1.9
if: matrix.ruby == '1.9'
run: gem update --system 2.7.11

- name: Install dependencies for Ruby 1.9
if: matrix.ruby == '1.9'
run: bundle install

- name: Install Ruby ${{ matrix.ruby }}, install and cache dependencies
if: matrix.ruby != '1.9'
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand All @@ -50,6 +32,6 @@ jobs:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
ruby-version: ruby
- run: gem build spinels-rack-ssl-enforcer
- run: gem install *.gem
6 changes: 1 addition & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ gemspec
gem 'rake'

group :test do
if RUBY_VERSION < '2.3'
gem 'rack-test'
else
gem 'rack-test', '~> 1.0'
end
gem 'rack-test'
gem 'test-unit'
gem 'shoulda'
end
2 changes: 1 addition & 1 deletion lib/rack/ssl-enforcer/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Rack
class SslEnforcer
VERSION = "0.3.0"
VERSION = "1.0.0"
end
end
2 changes: 1 addition & 1 deletion spinels-rack-ssl-enforcer.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Gem::Specification.new do |s|
s.description = 'Rack::SslEnforcer is a simple Rack middleware to enforce ssl connections'

s.required_rubygems_version = '>= 1.3.6'
s.required_ruby_version = '>= 1.9.3'
s.required_ruby_version = '>= 3.1.0'

s.metadata = { 'rubygems_mfa_required' => 'true' }
s.files = Dir.glob('{lib}/**/*') + %w[LICENSE README.md]
Expand Down

0 comments on commit c6f7e3d

Please sign in to comment.