Skip to content

Commit

Permalink
Merge pull request #215 from chubchenko/fix-build
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmestad authored Oct 29, 2024
2 parents 9445064 + 0010394 commit 67f5ba6
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ jobs:
strategy:
matrix:
ruby: [ '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3' ]
gemfile:
- "rack_2"
- "rack_3"
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
name: Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v4
Expand Down
7 changes: 1 addition & 6 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
# frozen_string_literal: true

source 'https://rubygems.org'

gemspec

gem 'rake'
gem 'pry'

group :test do
gem 'rspec', '~> 3'
gem 'rack-test'
gem 'rack-session'
end
7 changes: 7 additions & 0 deletions gemfiles/rack_2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem "rack", "~> 2.2"

gemspec path: "../"
7 changes: 7 additions & 0 deletions gemfiles/rack_3.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem "rack", "~> 3.0"

gemspec path: "../"
2 changes: 1 addition & 1 deletion spec/warden/manager_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def authenticate!
result = @app.call(env_with_params)
expect(result.status).to eq(201)
expect(result.body).to eq(['body'])
expect(result.header['Content-Type']).to eq('text/plain')
expect(result.headers['Content-Type']).to eq('text/plain')
end
end

Expand Down
5 changes: 5 additions & 0 deletions warden.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,9 @@ Gem::Specification.new do |spec|
end
spec.require_paths = ["lib"]
spec.add_dependency "rack", ">= 2.2.3"

spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3"
spec.add_development_dependency "rack-test"
spec.add_development_dependency "rack-session"
end

0 comments on commit 67f5ba6

Please sign in to comment.