Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,14 @@ permissions:
jobs:
test:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
ruby: ['2.7', '3.0', '3.1', '3.2', 'head']
rails: [ '6.0', '6.1', '7.0', 'edge' ]
script: [test]
experimental: [false]
include:
- ruby: '2.7'
rails: '7.0'
script: templates:test
experimental: true
ruby: ['3.2', 'head']
rails: [ '8.0', '8.1', 'edge' ]
exclude:
- ruby: '3.2'
rails: 'edge'

env:
RAILS_VERSION: ${{ matrix.rails }}
Expand All @@ -35,4 +30,4 @@ jobs:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake ${{ matrix.script }}
run: bundle exec rake test
3 changes: 3 additions & 0 deletions CHANGELOG.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## main (unreleased)

* Drop Rails 7.2 support
* Drop Ruby 3.1 support

# 4.2.1

* Support to Rails 7.1
Expand Down
9 changes: 2 additions & 7 deletions lib/web_console/source_location.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ def initialize(binding)
@binding = binding
end

if RUBY_VERSION >= "2.6"
def path() @binding.source_location.first end
def lineno() @binding.source_location.last end
else
def path() @binding.eval("__FILE__") end
def lineno() @binding.eval("__LINE__") end
end
def path() @binding.source_location.first end
def lineno() @binding.source_location.last end
end
end
4 changes: 2 additions & 2 deletions web-console.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Gem::Specification.new do |s|

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

s.required_ruby_version = ">= 2.5"
s.required_ruby_version = ">= 3.2"

rails_version = ">= 6.0.0"
rails_version = ">= 8.0.0"

s.add_dependency "railties", rails_version
s.add_dependency "actionview", rails_version
Expand Down
Loading