Skip to content

Commit

Permalink
Drop support for Ruby 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
PanisSupraOmnia committed May 4, 2022
1 parent e384e4a commit 562c4aa
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 19 deletions.
18 changes: 3 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,6 @@ commands:
- ./vendor/bundle

jobs:
test_ruby_26:
docker:
- image: ruby:2.6-alpine
steps:
- setup-env
- run:
name: Run RSpec
command: bundle exec rspec --format progress --format RspecJunitFormatter -o ~/rspec/rspec.xml
- store_test_results:
path: ~/rspec

test_ruby_27:
docker:
- image: ruby:2.7-alpine
Expand Down Expand Up @@ -68,11 +57,11 @@ jobs:
- setup-env
- run:
name: Run RSpec
command: bundle exec rspec
command: bundle exec rspec --format progress --format RspecJunitFormatter -o ~/rspec/rspec.xml

rubocop:
docker:
- image: ruby:2.6-alpine
- image: ruby:2.7-alpine
steps:
- setup-env
- run:
Expand All @@ -81,7 +70,7 @@ jobs:

yard:
docker:
- image: ruby:2.6-alpine
- image: ruby:2.7-alpine
steps:
- setup-env
- attach_workspace:
Expand Down Expand Up @@ -136,7 +125,6 @@ jobs:
workflows:
test:
jobs:
- test_ruby_26
- test_ruby_27
- test_ruby_30
- test_ruby_31
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inherit_mode:

AllCops:
NewCops: enable
TargetRubyVersion: 2.6
TargetRubyVersion: 2.7

# Disable line length checks
Layout/LineLength:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ If you enjoy using the library, consider getting involved with the community to

## Dependencies

* Ruby >= 2.6 supported
* Ruby >= 2.7 supported
* An installed build system for native extensions (on Windows, make sure you download the "Ruby+Devkit" version of [RubyInstaller](https://rubyinstaller.org/downloads/))

### Voice dependencies
Expand Down
2 changes: 1 addition & 1 deletion discordrb-webhooks.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gem::Specification.new do |spec|

spec.add_dependency 'rest-client', '>= 2.0.0'

spec.required_ruby_version = '>= 2.6'
spec.required_ruby_version = '>= 2.7'
spec.metadata = {
'rubygems_mfa_required' => 'true'
}
Expand Down
2 changes: 1 addition & 1 deletion discordrb.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Gem::Specification.new do |spec|

spec.add_dependency 'discordrb-webhooks', '~> 3.4.2'

spec.required_ruby_version = '>= 2.6'
spec.required_ruby_version = '>= 2.7'

spec.add_development_dependency 'bundler', '>= 1.10', '< 3'
spec.add_development_dependency 'rake', '~> 13.0'
Expand Down

0 comments on commit 562c4aa

Please sign in to comment.