Skip to content

Commit 22e6cce

Browse files
committed
Fix CI
1 parent 859bc60 commit 22e6cce

File tree

4 files changed

+10
-20
lines changed

4 files changed

+10
-20
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,11 @@ permissions:
1010
jobs:
1111
test:
1212
runs-on: ubuntu-latest
13-
continue-on-error: ${{ matrix.experimental }}
1413
strategy:
1514
fail-fast: false
1615
matrix:
17-
ruby: ['2.7', '3.0', '3.1', '3.2', 'head']
18-
rails: [ '6.0', '6.1', '7.0', 'edge' ]
19-
script: [test]
20-
experimental: [false]
21-
include:
22-
- ruby: '2.7'
23-
rails: '7.0'
24-
script: templates:test
25-
experimental: true
16+
ruby: ['3.2', 'head']
17+
rails: [ '8.0', '8.1', 'edge' ]
2618

2719
env:
2820
RAILS_VERSION: ${{ matrix.rails }}
@@ -35,4 +27,4 @@ jobs:
3527
ruby-version: ${{ matrix.ruby }}
3628
bundler-cache: true
3729
- name: Run tests
38-
run: bundle exec rake ${{ matrix.script }}
30+
run: bundle exec rake test

CHANGELOG.markdown

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## main (unreleased)
44

5+
* Drop Rails 7.2 support
6+
* Drop Ruby 3.1 support
7+
58
# 4.2.1
69

710
* Support to Rails 7.1

lib/web_console/source_location.rb

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@ def initialize(binding)
66
@binding = binding
77
end
88

9-
if RUBY_VERSION >= "2.6"
10-
def path() @binding.source_location.first end
11-
def lineno() @binding.source_location.last end
12-
else
13-
def path() @binding.eval("__FILE__") end
14-
def lineno() @binding.eval("__LINE__") end
15-
end
9+
def path() @binding.source_location.first end
10+
def lineno() @binding.source_location.last end
1611
end
1712
end

web-console.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Gem::Specification.new do |s|
1515

1616
s.files = Dir["lib/**/*", "MIT-LICENSE", "Rakefile", "README.markdown", "CHANGELOG.markdown"]
1717

18-
s.required_ruby_version = ">= 2.5"
18+
s.required_ruby_version = ">= 3.2"
1919

20-
rails_version = ">= 6.0.0"
20+
rails_version = ">= 8.0.0"
2121

2222
s.add_dependency "railties", rails_version
2323
s.add_dependency "actionview", rails_version

0 commit comments

Comments
 (0)