Skip to content

Commit

Permalink
Support rack/rack v3 (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrHeinz authored Aug 4, 2023
1 parent 748e906 commit e77e628
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 11 deletions.
60 changes: 51 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,62 @@
name: build

on: [push, pull_request]
on:
push:
schedule:
- cron: '20 5 * * 1'
workflow_dispatch:

jobs:
test:

runs-on: ubuntu-20.04

strategy:
fail-fast: false
matrix:
ruby-version:
- 3.0.0
- 2.7.2
- 2.6.6
- 2.5.8
- 2.4.10
- 2.3.8
- 2.2.10
- 3.2
- 3.1
- 3.0
- 2.7
- 2.6
- 2.5
- 2.4
- 2.3
- 2.2
- jruby-9.4.3.0
- jruby-9.2.14.0
- truffleruby-21.0.0
- truffleruby-23.0.0
- truffleruby-22.1.0
rack-version:
- # default Rack version

include:
- ruby-version: 2.7
rack-version: ~>1.2.0
- ruby-version: 2.7
rack-version: ~>1.2
- ruby-version: 2.7
rack-version: ~>2.0.0
- ruby-version: 2.7
rack-version: ~>2.0
- ruby-version: 2.7
rack-version: ~>3.0
- ruby-version: 2.7
rack-version: ~>3.0.0

- ruby-version: 3.2
rack-version: ~>1.2.0
- ruby-version: 3.2
rack-version: ~>1.2
- ruby-version: 3.2
rack-version: ~>2.0.0
- ruby-version: 3.2
rack-version: ~>2.0
- ruby-version: 3.2
rack-version: ~>3.0
- ruby-version: 3.2
rack-version: ~>3.0.0

steps:
- uses: actions/checkout@v2
Expand All @@ -29,5 +67,9 @@ jobs:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- name: Specify "rack" gem version ${{ matrix.rack-version }}
if: ${{ matrix.rack-version }}
run: bundle add rack --version="${{ matrix.rack-version }}"

- name: Run tests
run: bundle exec rspec --format documentation
2 changes: 1 addition & 1 deletion lib/logtail-rack/version.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Logtail
module Integrations
module Rack
VERSION = "0.2.0"
VERSION = "0.2.1"
end
end
end
2 changes: 1 addition & 1 deletion logtail-ruby-rack.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]

spec.add_dependency "logtail", "~> 0.1"
spec.add_runtime_dependency "rack", ">= 1.2", "< 3.0"
spec.add_runtime_dependency "rack", ">= 1.2", "< 4.0"

spec.add_development_dependency "bundler", ">= 0.0"
spec.add_development_dependency "rake", "~> 10.0"
Expand Down

0 comments on commit e77e628

Please sign in to comment.