Skip to content

Commit

Permalink
Remove official support for Ruby 2.5 and 2.6 (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
markets authored Oct 8, 2024
1 parent 888e1a6 commit 3a6aa46
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CI

on: [push, pull_request]
on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
test:
Expand All @@ -9,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: ["3.3", "3.2", "3.1", "3.0", "2.7", "2.6", "2.5"]
ruby-version: ["3.3", "3.2", "3.1", "3.0", "2.7"]
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
Expand Down
13 changes: 7 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ gem 'rake', '~> 13.1', require: false
gem 'yard', '~> 0.9', require: false

# Test tools
gem 'pry', '~> 0.10', group: :development
gem 'aruba', '~> 1.0.0'
gem 'rspec', '~> 3.0'
gem 'cucumber', '~> 2.0'
gem 'capybara', '~> 2.5.0'
gem 'aruba'
gem 'cucumber'
gem 'capybara'

# Optional dependencies, included for tests
gem 'haml', RUBY_VERSION > '3.0' ? '< 7' : '< 6'
gem 'slim', '>= 3', '< 5'
gem 'kramdown'
gem "redcarpet"
gem 'redcarpet'
gem 'rack', '< 3'
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ require 'bundler/gem_tasks'
require 'cucumber/rake/task'

Cucumber::Rake::Task.new(:cucumber, 'Run features that should pass') do |t|
exempt_tags = ""
exempt_tags << "--tags ~@nojava " if RUBY_PLATFORM == "java"
t.cucumber_opts = "--color --tags ~@wip #{exempt_tags} --strict --format #{ENV['CUCUMBER_FORMAT'] || 'pretty'}"
exempt_tags = ["--tags 'not @wip'"]
exempt_tags << "--tags 'not @nojava'" if RUBY_PLATFORM == "java"
t.cucumber_opts = "--require features --color #{exempt_tags.join(' ')} --strict --format #{ENV['CUCUMBER_FORMAT'] || 'pretty'}"
end

task :test => ["cucumber"]
Expand Down
1 change: 0 additions & 1 deletion features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
require "middleman-core"
require "middleman-core/step_definitions"
require File.join(PROJECT_ROOT_PATH, 'lib', 'middleman-syntax')

0 comments on commit 3a6aa46

Please sign in to comment.